v2.1.143
Claude CodeSummary
This release introduces significant enhancements to plugin management, including dependency enforcement and cost visibility in the plugin marketplace. Several critical bugs related to session state preservation, Windows terminal input, and background job reliability have been resolved. Users will also benefit from new configuration options for background sessions via the `claude agents` command and a new setting to bypass worktree isolation.
New Features
- Added plugin dependency enforcement, preventing disabling of plugins that are required by other enabled plugins.
- Enabled force-enabling of transitive dependencies when enabling a plugin.
- Added projected context cost estimates (per-turn and per-invocation token) to the /plugin marketplace browse pane.
- Introduced the `worktree.bgIsolation: "none"` setting to allow background sessions to edit the working copy directly without requiring `EnterWorktree`.
- PowerShell tool now passes `-ExecutionPolicy Bypass` by default on Windows, with an option to respect the execution policy.
- Background sessions now preserve the previously set model and effort level after waking from an idle state.
- Shift+Tab in attached agent sessions now includes auto mode in the cycle.
- The PowerShell tool is now enabled by default on Windows for Bedrock, Vertex, and Foundry users.
- The `claude agents` command now accepts `--add-dir`, `--settings`, `--mcp-config`, and `--plugin-dir` arguments to configure background sessions.
- The `claude agents` command now accepts `--permission-mode`, `--model`, `--effort`, and `--dangerously-skip-permissions` to set defaults for dispatched sessions.
- The `--bg --dangerously-skip-permissions` flag now persists across retire and wake cycles.
Bug Fixes
- Fixed corruption of `.credentials.json` when the `scopes` value was not an array, which previously caused CLI hangs or silent OAuth token refresh failures.
- Fixed inability to right-click paste in `claude agents` sessions on Windows Terminal and WSL.
- Fixed stop hooks that could loop indefinitely; turns now end with a warning after 8 consecutive blocks.
- Fixed Esc or Ctrl+C failing to cancel a pending /loop wakeup while Claude was idle between iterations.
- Fixed the /goal evaluator firing prematurely while background shells or delegated subagents were still running.
- Fixed `NO_COLOR`/`FORCE_COLOR` settings in `settings.json` incorrectly stripping Claude Code's UI colors; these settings now only apply to subprocesses.
- Fixed agent view spawning duplicate PowerShell processes on Windows when listing sessions.
- Fixed /bg without a prompt sending "continue" to the forked session; the fork now correctly waits for input.
- Fixed `--agent <name>` failing to find plugin-contributed agents unless the `plugin:` prefix was used.
- Fixed deleting a session from the agent view failing to remove its corresponding transcript file.
- Fixed stale-fragment rendering issues when scrolling in attached background sessions on Windows Terminal.
- Fixed background agents experiencing false-positive worker-stall detection storms after host sleep or macOS App Nap.
- Fixed 5xx error messages incorrectly pointing to status.claude.com instead of the configured gateway or cloud provider.
- Fixed background sessions silently capturing IDE file references into the warm spare's input, causing references to be prepended to subsequent prompts.
- Fixed worktree cleanup falling back to `rm -rf` when `git worktree remove` failed, preventing loss of gitignored or in-progress files.
- Fixed background-job sessions on macOS receiving "Operation not permitted" errors when reading files in protected directories like `~/Documents`, even with Full Disk Access granted.
- Fixed background sessions launched from `claude agents` incorrectly overriding `permissions.defaultMode` from settings.json (it was previously overridden to auto mode).
- Fixed unresponsive agents list on Windows when pressing ← during response streaming.
- Fixed background daemon spawn failing when the `~/.local/bin/claude` launcher was missing or non-executable.
- Fixed `claude agents --allow-dangerously-skip-permissions` incorrectly defaulting dispatched sessions to bypass mode instead of making it available in the permission cycle.
Improvements
- Background sessions now preserve the model and effort level you set after waking from idle.
- Shift+Tab in attached agent sessions now includes auto mode in the cycle.
- The `claude agents` command now applies configuration flags like `--add-dir` and `--settings` to background sessions dispatched from the view.
- The `claude agents` command now accepts flags like `--permission-mode` and `--model` to set defaults for new sessions.
- The /bg and ←-detach commands now preserve `--fallback-model`, allowing backgrounded workers to degrade gracefully on overload.
- The /bg and ←-detach commands now preserve `--allow-dangerously-skip-permissions`, ensuring bypass availability in the forked worker's cycle.
- Background sessions launched from `claude agents` now correctly honor `permissions.defaultMode` from settings.json.
- The /bg command now preserves MCP and settings flags (`--mcp-config`, `--settings`, etc.) so backgrounded sessions maintain their server configurations across respawns.