Claude Code v2.1.143: Plugin Dependency Enforcement, PowerShell Defaults, and Background Session Fixes

✍️ OpenClawRadar📅 Published: May 16, 2026🔗 Source
Claude Code v2.1.143: Plugin Dependency Enforcement, PowerShell Defaults, and Background Session Fixes
Ad

Claude Code v2.1.143 is out, bringing plugin dependency management, PowerShell improvements, and a slew of bug fixes targeting background sessions, Windows usability, and macOS file permissions.

Plugin Dependency Enforcement

claude plugin disable now refuses when another enabled plugin depends on the target. It provides a copy-pasteable disable-chain hint. claude plugin enable force-enables transitive dependencies. The /plugin marketplace browse pane now shows projected context cost (per-turn and per-invocation token estimates).

PowerShell Changes

The PowerShell tool now passes -ExecutionPolicy Bypass by default. Opt out with CLAUDE_CODE_POWERSHELL_RESPECT_EXECUTION_POLICY=1. On Windows, it is enabled by default for Bedrock, Vertex, and Foundry users; opt out with CLAUDE_CODE_USE_POWERSHELL_TOOL=0.

Worktree Isolation

Added worktree.bgIsolation: "none" setting to let background sessions edit the working copy directly without EnterWorktree — useful for repos where worktrees are impractical.

New Flags for claude agents

claude agents now accepts --add-dir, --settings, --mcp-config, --plugin-dir, --permission-mode, --model, --effort, and --dangerously-skip-permissions. These apply to the dashboard and to background sessions dispatched from it.

Background Session Improvements

  • /bg now preserves --mcp-config, --settings, --add-dir, --plugin-dir, --strict-mcp-config, --fallback-model, and --allow-dangerously-skip-permissions across respawn.
  • Background sessions preserve model and effort level after waking from idle.
  • Fixed false-positive worker-stall detection after host sleep or macOS App Nap.
  • Background daemon spawn falls back to the running binary when ~/.local/bin/claude launcher is missing.
Ad

Bug Fixes

  • Fixed corrupt .credentials.json with non-array scopes hanging the CLI on startup.
  • Fixed right-click paste in claude agents on Windows Terminal and WSL.
  • Stop hooks that block repeatedly now end the turn with a warning after 8 consecutive blocks (override via CLAUDE_CODE_STOP_HOOK_BLOCK_CAP).
  • Fixed Esc/Ctrl+C not cancelling a pending /loop wakeup.
  • Fixed /goal evaluator firing while background shells or delegated subagents are running.
  • Fixed NO_COLOR/FORCE_COLOR in settings.json env stripping Claude Code's own UI colors — they now apply to subprocesses only.
  • Fixed agent view spawning repeated PowerShell processes on Windows when listing sessions.
  • Fixed /bg without a prompt sending "continue" — the fork now waits for input.
  • Fixed --agent <name> not finding plugin-contributed agents without plugin: prefix.
  • Fixed deleting a session from agent view not removing its transcript file.
  • Fixed stale-fragment rendering when scrolling in attached background sessions on Windows Terminal.
  • Fixed 5xx error messages pointing at status.claude.com instead of naming the configured gateway.
  • Worktree cleanup no longer falls back to rm -rf when git worktree remove fails.
  • Fixed background-job sessions on macOS getting "Operation not permitted" for ~/Documents, ~/Desktop, ~/Downloads even with Full Disk Access.
  • Fixed background sessions capturing IDE file references into warm spare input.
  • Fixed claude agents --allow-dangerously-skip-permissions defaulting to bypass mode instead of just making it available in the permission cycle.

Shift+Tab Cycle

Shift+Tab in attached agent sessions now includes auto mode in the cycle.

📖 Read the full source: GitHub Claude-Code

Ad

👀 See Also