Claude Code v2.1.212

Claude Code 2.1.212 makes it easier to manage multiple conversations with /fork creating separate background sessions while you keep working, and adds smart safeguards that prevent runaway searches and task loops from spinning out of control. Long-running tools now move to the...

- /fork now copies your conversation into a new background session (its own row in claude agents) while you keep working; the in-session subagent it used to launch is now /subtask - Added claude auto-mode reset to restore the default auto-mode configuration, with a confirmation prompt (pass --yes to skip) - Added a session-wide limit on WebSearch tool calls (default 200, tunable via CLAUDECODEMAXWEBSEARCHESPERSESSION) to stop runaway search loops - Added a per-session cap on subagent spawns (default 200, override with CLAUDECODEMAXSUBAGENTSPERSESSION) to stop runaway delegation loops; /clear resets the budget - MCP tool calls running longer than 2 minutes now move to the background automatically so the session stays usable; configure the threshold or disable with CLAUDECODEMCPAUTOBACKGROUNDMS - Typing /resume in the agent view now opens a picker of past sessions — including sessions deleted from the list — and resumes your pick as a background session - Fixed plan mode auto-running file-modifying Bash commands (e.g. touch, rm) without a permission prompt or SDK canUseTool callback - Fixed worktree creation following a repository-committed symlink at .claude/worktrees, which could create files outside the repository - Fixed a continue:false hook's halt being dropped when the tool fails or completes mid-stream, and hook infrastructure errors being misreported as user rejections - Fixed SIGTERM during a running Bash tool orphaning the command's process tree in print/SDK mode; the CLI now aborts the turn, kills the tree, and exits 143 - Fixed /background and claude --bg failing with "EUNKNOWN: unknown error, uvspawn" on Windows when Group Policy blocks PowerShell 5.1; the daemon now prefers PowerShell 7 - Fixed shell mode (!) not executing commands containing file paths while the path autocomplete popup was open - Fixed auto-mode denial notifications rendering broken characters when a long denial reason was truncated mid-emoji - Fixed Ctrl+J not inserting a newline in the agent view dispatch input on terminals with extended key reporting, and surfaced the newline shortcut in the ? help overlay - Fixed /ultrareview rejecting PR references like 123, PR 123, and pasted PR URLs; error hints now name the command you actually typed - Fixed /ultrareview not fetching the branch from origin when it exists remotely; it now suggests the closest branch name on typos - Fixed /ultrareview skipping the billing confirmation in a new conversation after /clear - Fixed /ultrareview's "not a git repository" error on Claude Desktop now suggesting the project's repository folder instead of terminal commands - Fixed hosted (host-managed) sessions failing at startup when repository settings configured mTLS certs, extra CA bundles, or OAuth scopes; these transport settings are now ignored with a warning - Fixed a spurious "File has not been read yet" error when editing a file that had been read with offset/limit before resuming a session - Fixed ExitWorktree failing with "no active EnterWorktree session" after resuming a session with --continue/--resume in print/SDK mode - Fixed the workflow agent grid staying empty for Remote Control clients that join a session mid-run - Fixed streaming-mode control requests being marked complete before their handler finished, which could lose the request on session restart - Fixed background sessions created with /fork losing their live-parent protection after a state write failure - Fixed reopening a stopped background session from the agent view failing silently — it now resumes the session, or shows why it can't and lets you force a restart - Fixed agent teams: a stopping teammate could send the leader duplicate idle notifications when team initiali