v2.1.144
Claude CodeSummary
This release significantly enhances background session management, introducing support for resuming sessions via /resume and displaying elapsed durations on completion. Numerous fixes address stability, particularly around terminal rendering, file handling errors, and background session crashes on macOS and Windows. Users will also notice improved feedback regarding plugin installation and clearer error messages for configuration issues.
New Features
- Added support for resuming background sessions via the /resume command, showing them alongside interactive sessions marked with `bg`
- Enabled elapsed duration display in background subagent completion notifications (e.g. "Agent completed · 3h 2m 5s")
- Introduced last updated timestamps in the /plugin browse and discover panes
- Enabled /model to change the model for the current session only, with an option (`d` in the picker) to set a default for new sessions
- Renamed CLI copy from "extra usage" to "usage credits" and updated the command to /usage-credits
Bug Fixes
- Fixed startup hanging up to 75s when `api.anthropic.com` is unreachable by implementing a 15s timeout for side-channel API calls
- Fixed garbled terminal output after missed window-resize events by enabling self-healing on the next frame
- Fixed progressive terminal display corruption (stale/garbled glyphs) in long sessions that previously required a resize or restart to clear
- Fixed macOS background sessions crashing with "exit 1 before init" when the project is in a Full Disk Access-protected folder
- Fixed unrecoverable conversation state when reading a file with an image extension that mismatches its content (e.g. HTML saved as .png) by falling back to text processing
- Fixed spurious tool errors during search by ensuring `head`/`tail` file views satisfy read-before-edit checks and treating non-matches from grep/diff as informational instead of command failures
- Fixed /branch failing with "No conversation to branch" after entering a worktree or in some background sessions
- Fixed pressing Escape in the AskUserQuestion notes field aborting the turn instead of returning to answer selection
- Fixed model selection not applying when changed via the IDE model picker or `applyFlagSettings` after startup
- Fixed resumed sessions incorrectly inheriting the model choice from another session instead of retaining their original model
- Fixed Bedrock and Vertex users being unable to select "Opus (1M context)" from the /model picker
- Fixed remote-session login failing with "Can't access this organization" for users with specific configuration settings
- Fixed MCP servers with paginated `tools/list` responses only returning the first page of tools
- Fixed MCP images with unsupported MIME types (e.g. SVG) breaking the conversation by saving them to disk and referencing them in the tool result
- Fixed file descriptor exhaustion during builds inside skill directories by preventing non-`.md` files from triggering skill reloads
- Fixed session title being generated from plugin monitor output instead of the user's first prompt
- Fixed Skill tool failing with a permission error in headless mode
- Fixed plugins enabled in user settings showing "not cached" errors on fresh machines; added an install hint for project-specific plugins
- Fixed `claude mcp list` silently reporting no servers when configuration files were unparsable, now showing configuration errors instead
- Fixed background side-queries on custom `ANTHROPIC_BASE_URL` setups and Bedrock Mantle not using Haiku correctly
- Fixed scrolling and transcript navigation (PgUp/PgDn, mouse wheel, Ctrl+O) not working in attached background sessions on Windows
- Fixed a crash when closing the terminal while attached to a background session
- Fixed `! <cmd>` exec sessions not interrupting when Ctrl+C is pressed while attached
- Fixed agent view shell-command rows lingering under Working after completion and re-running commands on Enter press
- Fixed keyboard input becoming unresponsive in `claude agents` on Windows Terminal after pressing ←
- Fixed ghost characters appearing at the left edge when switching panes in Agent View on Windows Terminal with CJK content
- Ensured /bg and ←-detach preserve directories added via /add-dir
- Fixed Edit/Write refusing to operate right after detaching a session that was editing in place
- Fixed `claude respawn <id>` showing "stopped" for a stopped background session instead of running it
- Fixed /resume picker not showing sessions forked from a background session
- Fixed hanging when opening a session from `claude agents` or running `claude logs <id>` if the background service was unresponsive, now with a 10s timeout
- Fixed background Bash tasks spawned by subagents staying "Running" in SDK task panels after process exit
- Fixed completed or stopped background sessions being permanently marked as a startup crash
- Fixed markdown links in `claude agents` attached sessions rendering as plain text instead of hyperlinks
- Restored custom `spinnerVerbs` to apply only to the command execution message, not the post-turn duration message
- Made `claude agents` / --bg rejection messages name the specific gate that caused rejection
- Echoed the session name in the post-spawn confirmation when using `claude --bg --name <label>`
- Ensured renaming a background session via Ctrl+R in `claude agents` immediately updates the attached session's banner
- Applied background session worktree isolation guard for non-git VCS users with `WorktreeCreate` hooks
- Ensured plugin marketplace add/update respects `CLAUDE_CODE_PLUGIN_PREFER_HTTPS`
- Made /plugin return to the Installed list after enabling, disabling, or uninstalling a plugin
- Updated /doctor to show an exec-form example when a command hook is missing the `command` field
- Stopped showing skill-listing truncation as a startup notification; users must now run /doctor
- Improved recovery from rare pre-response stream stalls by retrying streaming once instead of falling back to non-streaming
- Improved SDK/headless MCP startup by overlapping pre-wait with startup, potentially saving up to 2s with slow servers
- Ensured the post-survey follow-up hint appears after every non-dismiss survey response with context-aware copy
Improvements
- Reduced terminal rendering glitches in VS Code by decreasing the color count in the spinner animation
- Background session worktree isolation guard now applies for non-git VCS users with `WorktreeCreate` hooks configured