{"version":"2.1.330","anchor":"shell-snapshot-can-finish-late-without-blocking-the-first-co","canonical_anchor":"shell-snapshot-can-finish-late-without-blocking-the-first-co","heading":"Shell snapshot can finish after the first command starts, and adds compgen -e on Windows","tier":"notice","area":"Elsewhere","scope":"individual","heads_up":false,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.330\/e\/shell-snapshot-can-finish-late-without-blocking-the-first-co","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.330","markdown":"### Shell snapshot can finish after the first command starts, and adds compgen -e on Windows\n\nClaude Code's shell snapshot can now finish late without holding up the first command, and on Windows it now also runs compgen -e\n\n**What**\n\nWhen Claude Code runs shell commands, it first takes a shell snapshot, a saved copy of your shell's settings and environment, so later commands behave like your own terminal. The snapshot has changed in several ways:\n\n- A command can now start before the snapshot is ready, and the snapshot is adopted once it finishes. Before, Claude Code waited for the whole snapshot first.\n\n- `stopLateSnapshot` is a new hook that cancels a snapshot that is finishing late.\n\n- Commands Claude Code starts now report `sourcesSnapshot`, which says whether they used the snapshot.\n\n- On Windows, the snapshot script now runs `builtin compgen -e`, a shell command that lists environment variables.\n\n- New internal reporting steps were added for late snapshots and snapshot reuse.\n\n**Why**\n\nIf your shell is slow to start, the first command no longer has to wait for the snapshot, which could make it start sooner. On Windows, the change affects which environment settings the snapshot captures.\n\n- Area: Elsewhere\n- Tier: You'll notice\n- Useful: 2\/5\n- Signal: 1\/5\n- Scope: individual\n- Heads-up: no"}