Anthropic: Claude Code v2.1.140 fixes /goal hang, hot-reload and Read offset validation
Claude Code v2.1.140 is the new Anthropic CLI agent release published on May 12, 2026, which fixes ten bugs including a silent hang in the /goal command with the disableAllHooks setting, a hot-reload regression in symlinked settings files, enterprise endpoint security startup issues, and offset parameter validation in the Read tool. Subagent type matching now accepts case-insensitive values.
This article was generated using artificial intelligence from primary sources.
Anthropic released Claude Code v2.1.140 (commit 6b070c3) on May 12, 2026 — the second consecutive patch release following v2.1.139 published the day before. This release primarily delivers bug fixes and one significant improvement to Agent tool behavior, with no new features.
Which bugs does this version fix?
Version 2.1.140 resolves ten bugs in the Claude Code CLI. The most important is a fix for the /goal command, which was hanging silently when disableAllHooks or allowManagedHooksOnly enterprise settings were active — a clear message is now shown to the user. The second critical fix addresses a hot-reload regression in which symlinked settings.json files produced incorrectly attributed change events and spurious ConfigChange hooks.
Three fixes target enterprise scenarios: claude --bg no longer crashes with “connection dropped mid-request” when the background service enters idle-exit mode, startup on machines with enterprise endpoint security agents gets more time, and managed settings now retry once with a force-refreshed token on 401 errors.
What changed in Agent tool subagent_type matching?
The Agent tool now accepts case- and separator-insensitive values for the subagent_type parameter. The changelog example: "Code Reviewer" correctly resolves to the canonical code-reviewer agent, which was not the case before. Anthropic also updated the agent color palette and added development warnings for plugin configurations where plugin.json silently ignores default component folders such as commands/.
Minor fixes
Other fixes include a Windows event-loop stall on missing executables (e.g. gh) that triggered synchronous where.exe re-spawns, validation of Read calls with the offset parameter as a whitespace-padded or +-prefixed string, native terminal cursor stability when the terminal loses focus, and a /loop performance fix that eliminates redundant wakeup scheduling for background task polling. The extraKnownMarketplaces auto-update policy now correctly persists in known_marketplaces.json.
Frequently Asked Questions
- What does the /goal command fix in version 2.1.140?
- The /goal command no longer hangs silently when disableAllHooks or allowManagedHooksOnly enterprise settings are active; version 2.1.140 displays a clear message instead of an unrecognizable indicator.
- How has the Agent tool subagent_type parameter changed?
- Subagent_type matching now accepts case-insensitive and separator-insensitive values; the value "Code Reviewer" correctly resolves to the code-reviewer agent.
Related news
arXiv:2605.22502: Compiling agentic workflows into LLM weights achieves near-frontier quality at 100× lower cost
arXiv:2605.22794: MOSS shows agents that self-improve by rewriting their own source code
arXiv:2605.22535: TerminalWorld benchmark measures LLM agents on real Linux terminal tasks without simulation