Claude Code 2.1.143: Plugin Dependencies, Context Costs, Worktree Fixes
Claude Code 2.1.143 adds plugin dependency enforcement, projected context costs in the marketplace, and fixes 20+ issues across background sessions, PowerShell, worktrees, and Windows Terminal compatibility.
TL;DR
- Plugin dependency enforcement now prevents disabling plugins that others depend on
- Projected context costs added to plugin marketplace browse pane
- Multiple background session, PowerShell, and worktree fixes across Windows, macOS, and WSL
New
- Plugin dependency enforcement —
claude plugin disablenow refuses when another enabled plugin depends on the target, with a copy-pasteable disable-chain hint;claude plugin enableforce-enables transitive dependencies - Projected context cost display — per-turn and per-invocation token estimates now shown in the
/pluginmarketplace browse pane - Worktree background isolation option —
worktree.bgIsolation: "none"setting lets background sessions edit the working copy directly withoutEnterWorktree, for repos where worktrees are impractical - PowerShell execution policy bypass — PowerShell tool now passes
-ExecutionPolicy Bypassby default; opt out withCLAUDE_CODE_POWERSHELL_RESPECT_EXECUTION_POLICY=1 - Background session state persistence — model and effort level now preserved after waking from idle
- Shift+Tab agent mode cycling — attached agent sessions now include auto mode in the cycle
- PowerShell tool enabled by default — now enabled on Windows for Bedrock, Vertex, and Foundry users; opt out with
CLAUDE_CODE_USE_POWERSHELL_TOOL=0 - Enhanced
claude agentsflags — now accepts--add-dir,--settings,--mcp-config,--plugin-dir,--permission-mode,--model,--effort, and--dangerously-skip-permissionsfor dashboard and background session defaults
Fixed
- Corrupt
.credentials.jsonwith non-arrayscopesvalue hanging CLI on startup or silently aborting OAuth token refresh - Right-click paste in
claude agentson Windows Terminal and WSL - Stop hooks that block repeatedly looping forever — turn now ends with warning after 8 consecutive blocks (override via
CLAUDE_CODE_STOP_HOOK_BLOCK_CAP) - Esc/Ctrl+C not cancelling pending
/loopwakeup while Claude is idle between iterations /goalevaluator firing while background shells or delegated subagents still runningNO_COLOR/FORCE_COLORin settings.jsonenvstripping Claude Code's UI colors — now apply to subprocesses only- Agent view spawning repeated PowerShell processes on Windows when listing sessions
/bgwithout prompt sending "continue" to forked session — fork now waits for input--agent <name>not finding plugin-contributed agents withoutplugin:prefix- Deleting session from agent view not removing its transcript file
- Stale-fragment rendering when scrolling in attached background sessions on Windows Terminal
- Background agents false-positive worker-stall detection storm after host sleep or macOS App Nap
- 5xx error messages pointing at status.claude.com instead of naming configured gateway or cloud provider
- Background sessions silently capturing IDE file references into warm spare's input, prepending reference to next prompt from
claude agents - Worktree cleanup no longer falls back to
rm -rfwhengit worktree removefails, preventing loss of gitignored or in-progress files - Background-job sessions on macOS getting "Operation not permitted" errors when reading files under
~/Documents,~/Desktop, or~/Downloads, even with Full Disk Access granted - Windows: pressing ← in
claude agentswhile response streaming could leave agents list unresponsive to input - Background daemon spawn now falls back to running binary when
~/.local/bin/claudelauncher missing or non-executable claude agents --allow-dangerously-skip-permissionsdefaulting dispatched sessions to bypass mode instead of making it available in permission cycle
Preserved Across Background Sessions
/bgand ←-detach now preserve--mcp-config,--settings,--add-dir,--plugin-dir, and--strict-mcp-config, so backgrounded sessions keep MCP servers and settings across respawn/bgand ←-detach now preserve--fallback-model, so backgrounded workers degrade to fallback model on overload instead of hard-failing/bgand ←-detach now preserve--allow-dangerously-skip-permissions, so forked worker keeps bypass-permissions available in Shift+Tab cycle--dangerously-skip-permissionsnow persists across retire→wake- Background sessions launched from
claude agentsnow honorpermissions.defaultModefrom settings.json (was previously overridden to auto mode)
Update Claude Code: npm install -g @anthropic-ai/claude-code
Source: Claude Code