What changed
Claude Code 2.1.187 shipped on June 23, 2026. It adds security controls — sandboxed-credential protection and org-configured model restrictions — and cleans up a large batch of resume, remote, and terminal stability issues, including remote MCP tool calls that hung with no response, mojibake on pasted Korean/CJK text, and --resume failures.
New features
-
sandbox.credentialssettingCommands running in the sandbox could still read credential files and secret environment variables, leaving sensitive values exposed to those commands. The new
sandbox.credentialssetting blocks sandboxed commands from reading credential files and secret environment variables. -
Org-configured model restrictions
Allowed-model policies weren’t enforced consistently across every model-selection path. Org-configured model restrictions now apply to the model picker,
--model,/model, andANTHROPIC_MODEL, with a “restricted by your organization’s settings” message when a restricted model is selected. -
Mouse click support in select menus (fullscreen mode)
In fullscreen mode, select menus such as permission prompts,
/model, and/configcould only be driven from the keyboard. You can now click to pick an item in those select menus.
Key improvements
-
/install-github-app: workflow setup is now optional/install-github-appbundled GitHub App installation with GitHub Actions workflow setup, forcing the workflow and secret steps even on users who only needed the App. You can now install just the GitHub App and skip the workflow/secret steps. -
/btwanswer navigationRevisiting earlier
/btwanswers was awkward. You can now step through earlier answers with ←/→ arrow navigation. -
/pluginsurfaces unused pluginsFinding plugins you no longer use to clean them up took manual effort.
/pluginnow surfaces plugins you haven’t used recently so you can clean them up.
Bug fixes
Sessions & resume
--resumefailing with “No conversation found” — happened when the original-prun produced no model turns. Resume now works.- [VSCode] Extension becoming unresponsive when resuming a large session — fixed.
Agents & structured output
--json-schemaand workflowagent({schema})structured output — the model could re-callStructuredOutputindefinitely after a successful call, and follow-up turns didn’t reliably return structured output. Both fixed.- Background jobs in the agents view getting stuck in “working” indefinitely — happened when the agent ended a turn without producing structured output. Fixed.
- Subagent depth tracking — resumed subagents now restore their original spawn depth, and forked subagents now count toward the depth cap.
- Leaked agent worktree registrations — locked
.git/worktrees/entries from killed agents are now cleaned up automatically.
Remote & MCP
- Remote MCP tool calls hanging with no response for 5 minutes — they now abort with an error instead of blocking indefinitely (override with
CLAUDE_CODE_MCP_TOOL_IDLE_TIMEOUT). - Claude Code Remote sessions taking ~2.7s longer to start after the agent proxy CA system-trust install was added — fixed.
/updateover Remote Control hanging when a startup trust dialog would have shown — fixed.- Channel connections dropping after navigating to the agents view and back, and after
/bg,/tui, or/update— fixed.
Notifications & terminal
- Agent stop notifications not correctly attributing who stopped the agent — fixed, with improved wording (“finished”/“stopped” instead of “came to rest”).
- Pasted Korean/CJK text turning into mojibake in terminals that deliver paste as per-byte extended-key events — fixed.
- Cmd+click not opening URLs in fullscreen mode in Ghostty on macOS — fixed.
claude --helpnot listing the--bg/--backgroundflag — fixed.- Esc, Ctrl-C, and Ctrl-D not working while
/shareis uploading — fixed.
Notes
sandbox.credentialsis opt-in — turn the setting on to block sandboxed commands from reading credential files and secret environment variables.- Remote MCP tool timeout is configurable — the 5-minute default for aborting unresponsive calls can be changed with the
CLAUDE_CODE_MCP_TOOL_IDLE_TIMEOUTenvironment variable. - Korean/CJK paste mojibake resolved — pasted text no longer garbles in affected terminals; users who worked around it can confirm normal behavior after upgrading.
- Check the
--bg/--backgroundflag — the background-run flag that was missing fromclaude --helpnow appears in the list.