Under the hood
Cached shell snapshots are now invalidated when plugin bin/ directories change what's on PATH
What
Claude Code caches a snapshot of your shell environment for performance. New logic now decides whether to drop that cached snapshot whenever plugins refresh, checking for any of these conditions:
- Whether plugin
bin/directories added to yourPATHhave changed - Whether the shell configuration's snapshot has become unusable
- Whether the shell configuration was still in the process of building
One of these specific reasons is logged before the snapshot is invalidated.
Why
This keeps the cached shell snapshot from going stale when plugins change what commands are available on PATH, so Claude Code doesn't keep using outdated shell state after a plugin refresh.
One source agreesOne thing we can check says the same as this entry.
Anthropic's release notes agree
Fixed the Bash tool re-sourcing the shell profile (a multi-second stall on the next command) after every plugin reload; it now does so only…