Claude Code v2.1.187: Structured Output Fixes, Sandbox Security, and Org Model Restrictions

Anthropic released Claude Code v2.1.187 with a batch of practical fixes and additions. The headline items: a sandbox.credentials setting to block sandboxed commands from reading credential files and secret environment variables, and org-configured model restrictions now enforced across the model picker, --model flag, /model command, and ANTHROPIC_MODEL env var. Users see a "restricted by your organization's settings" message when selecting a blocked model.
Key Changes
- Structured output fix:
--json-schemaand workflowagent({schema})no longer allow the model to re-callStructuredOutputindefinitely after a successful call. Follow-up turns now reliably return structured output instead of falling back to free text. - Remote MCP timeout: Tool calls that hang for 5 minutes now abort with an error instead of blocking indefinitely. Override with
CLAUDE_CODE_MCP_TOOL_IDLE_TIMEOUT. - Startup performance: Remote sessions no longer add ~2.7s overhead from the agent proxy CA system-trust install.
- Subagent depth tracking: Resumed subagents restore their original spawn depth; forked subagents now count toward the depth cap instead of possibly bypassing limits.
- Worktree cleanup: Locked
.git/worktrees/entries from killed agents are now cleaned up automatically, preventing leaked registrations. - Mojibake fix: Pasted Korean/CJK text in terminals that deliver paste as per-byte extended-key events no longer turns into garbage.
- Agent stop notifications: Now correctly attribute who stopped the agent and use "finished"/"stopped" wording instead of "came to rest".
/install-github-appimprovement: GitHub Actions workflow setup is now optional — you can install just the GitHub App and skip the workflow/secret steps./btwnavigation: Use←/→arrows to step through earlier answers./pluginimprovement: Surfaces plugins you haven't used recently so you can clean them up.- Mouse click in fullscreen: Select menus (permission prompts,
/model,/config) now support mouse clicks in fullscreen mode. - VS Code: Fixed extension becoming unresponsive when resuming a large session.
--helpfix:claude --helpnow lists the--bg/--backgroundflag.- Other fixes:
--resumefailing with "No conversation found" after-pruns with no turns; background jobs stuck in "working"; channel connection drops after navigating to agents view or after/bg,/tui,/update; Esc/Ctrl-C/Ctrl-D not working during/shareupload;/updatehanging when a startup trust dialog would show; Cmd+click not opening URLs in fullscreen mode in Ghostty on macOS.
This release is primarily for teams using structured output workflows, remote MCP servers, or running sandboxed commands that need credential isolation. The performance regression fix (2.7s startup delay) is significant for anyone using Claude Code Remote.
📖 Read the full source: GitHub Claude-Code
👀 See Also

Research shows personality affects Claude's self-correction, not Llama or Qwen
A researcher ran 23 experiments testing self-correction without guardrails across Claude, Llama, and Qwen. The main finding: personality profiles affect Claude's self-correction ability, with high directness catching all errors and low directness catching none. Llama and Qwen didn't self-correct even with identical prompts.

Claude Consumer Terms Analysis: Data Retention, Liability Caps, and Service Termination
An analysis of Anthropic's Consumer Terms of Service reveals key details for $100/month Max plan subscribers: data training is on by default with 5-year retention for opted-in users, liability is capped at $600 maximum, and service can be terminated without refund for violations.

Gemma 4 Early Signals: Deployment Fit Over Hype for Local Agent Workflows
Gemma 4's launch emphasizes deployment across hardware tiers with official positioning for personal hardware and edge/mobile, NVIDIA's NVFP4 quantization showing 4x compression with 99.7% baseline retention on GPQA, and Arena rankings placing the 31B dense model around #27.

OpenClaw Client Adds Cost Tracking and Per-Agent Spending Limits
New release adds spending caps per agent, live usage UI with circular progress bar, sub-agent management, skill toggling, and per-agent model selection.