{"version":"2.1.327","anchor":"shell-env-probe-and-zsh-rc-scan-added","canonical_anchor":"shell-env-probe-and-zsh-rc-scan-added","heading":"Shell start-up checks and working-folder tracking adjusted","tier":"internal","area":"Shell","scope":"individual","heads_up":false,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.327\/e\/shell-env-probe-and-zsh-rc-scan-added","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.327","markdown":"### Shell start-up checks and working-folder tracking adjusted\n\nClaude Code now scans your zsh start-up files for certain settings and keeps the previous working folder when it can't safely follow a link\n\n**What**\n\nWhen Claude Code starts the shell it uses to run commands, it now checks that shell's environment in a separate, detached process and waits for it to finish. It also reads your shell start-up files (the rc files, such as `.zshrc`, that run each time a shell opens). It looks for three things in them:\n\n- references to tty, the terminal the shell is attached to\n\n- `COLUMNS`, the terminal width setting\n\n- `ZDOTDIR`, the setting that tells zsh where its start-up files live\n\nAfter a command runs, Claude Code reads back which folder the shell ended up in. If that folder is reached through a network link, or through a folder or link it could not check, Claude Code now says it is keeping the previous working folder. Before, the message only covered network links and junctions.\n\n**Why**\n\nThese changes affect how Claude Code sets up the shell it runs commands in, and how it keeps track of which folder those commands run from.\n\n- Area: Shell\n- Tier: Under the hood\n- Useful: 2\/5\n- Signal: 2\/5\n- Scope: individual\n- Heads-up: no"}