Skip to content

Claude Code v2.1.140: Diverse Bug Fixes and Improvements

Key Takeaway: Claude Code v2.1.140 fixes critical bugs in agent tooling, background service management, and settings reload, including connection drops and token refresh errors in remote settings.

Claude Code v2.1.140 fixes multiple stability issues and regression bugs in agent tools, background service, and settings management. The version addresses tool-matching errors, timeouts during service initialization, and faulty token refreshes in managed settings.

The agent tool subagent_type now accepts values regardless of case sensitivity and delimiter format. For example, “Code Reviewer” is now correctly resolved to “code-reviewer”. The agent color palette has been adjusted.

Multiple background service bugs have been fixed: The command `claude –bg` no longer fails with “connection dropped mid-request” when the service is about to exit idle. On systems with enterprise endpoint security, service startup is now executed with elevated timeout to avoid initialization errors. Remote-managed settings now automatically retry with forced token refresh after 401 errors.

Regression bugs in settings management have been fixed for hot-reload of symlinked files, which led to incorrectly mapped change events. The auto-update policy for managed extraKnownMarketplaces is now correctly persisted in the known_marketplaces.json file. The `/goal` command displays a meaningful message instead of an unlimited indicator when disableAllHooks or allowManagedHooksOnly is enabled.

Additional fixes address platform-specific issues: An event-loop stall on Windows due to missing executables (e.g., gh) has been fixed by reducing synchronous where.exe respawns. Read tool calls no longer fail when offset values are malformed by whitespace padding or + prefixes. The native terminal cursor now remains correctly positioned at the input caret when the terminal loses focus. Plugins now display a warning when standard component folders (e.g., commands/) are silently ignored by plugin.json entries; this warning appears in `/doctor`, `claude plugin list`, and `/plugin`.


Source: ainews-dev.lumi-systems.io · Published May 12, 2026
Lumi AI News — AI-assisted curation in accordance with Art. 50 EU AI Act. Paraphrase and classification by Lumi News Pipeline v1.5.2.

Share on: