Claude Code agent view showing multiple sessions listed in the terminal with status indicators and last activity Image: Screenshot: claude.com/blog/agent-view-in-claude-code
by Michael Joiner

Claude Code 2.1.140: Case-Insensitive Agent Routing, Updated Color Palette, and a Dozen Fixes

Claude Code 2.1.140 shipped on May 12 with smarter Agent tool subagent_type matching, an updated color palette for the agent view added in 2.1.139, and fixes for the /goal command, settings hot-reload, background service startup on enterprise machines, and a Windows event-loop stall.

Claude Code 2.1.140 landed on May 12, one day after the 2.1.139 agent view and `/goal` release. It's mostly a polish-and-fixes build, but the Agent tool routing change is worth noting if you're building custom agent workflows. ## Smarter subagent_type Matching The Agent tool now accepts case- and separator-insensitive values for `subagent_type`. Before this change, passing `"Code Reviewer"` instead of `"code-reviewer"` would fail to match the right subagent. Now both resolve correctly. The same applies to other common variations — underscores, extra spaces, mixed capitalization. If you've been careful about exact formatting in your agent prompts, you no longer need to be. ## Updated Agent Color Palette The agent view that shipped in 2.1.139 gets a color palette refresh in 2.1.140. The update changes how sessions are color-coded in the agent list. ## Bug Fixes **`/goal` command hang.** The `/goal` command introduced in 2.1.139 would silently hang if `disableAllHooks` or `allowManagedHooksOnly` was set in your config. Instead of hanging, it now surfaces a clear message. **Settings hot-reload with symlinks.** Symlinked settings files were triggering misattributed change events, causing spurious `ConfigChange` hooks to fire when nothing actually changed. Fixed. **`claude --bg` idle exits.** Background sessions started with `claude --bg` were failing with "connection dropped mid-request" when the background service was about to idle-exit. The timing window is now handled correctly. **Enterprise endpoint security.** On machines with enterprise endpoint security software, the background service was occasionally timing out during startup. It now allows more time before reporting a failure. **Windows event-loop stall.** A recurring stall on Windows was caused by missing-executable checks (for tools like `gh`) triggering synchronous `where.exe` lookups on every invocation. Those now run asynchronously. **Remote managed settings retry.** When fetching remote managed settings returned a 401, the client now retries once with a force-refreshed auth token before failing. **Read tool offset validation.** The Read tool was rejecting `offset` values passed as whitespace-padded or `+`-prefixed strings. Both formats are now accepted. **Native terminal cursor drift.** The cursor was drifting away from the input caret when the terminal window lost focus. Fixed. **Plugin folder warnings.** Plugins now warn when a default component folder (like `commands/`) is silently ignored because the `plugin.json` sets that key explicitly. The warning shows up in `/doctor`, `claude plugin list`, and `/plugin`. **`extraKnownMarketplaces` persistence.** The auto-update policy for managed `extraKnownMarketplaces` entries wasn't persisting to `known_marketplaces.json` across restarts. Now it does. **`/loop` scheduling.** Background task polling was triggering redundant wakeups under certain timing conditions. Resolved. --- At this pace — 2.1.139 and 2.1.140 in two consecutive days — Anthropic is shipping Claude Code updates almost daily. Most changes are small but compound quickly for anyone using agent view, background sessions, or custom agent workflows in production. **Source:** [Claude Code v2.1.140 release notes](https://github.com/anthropics/claude-code/releases/tag/v2.1.140)