产品官方一手精选

Claude Code v2.1.144:/resume 支持后台会话、多项修复

v2.1.144

精选理由

Claude Code 重度用户终于可以方便地管理后台会话了,/resume 支持让长时间任务更可控;同时修复了启动挂起和终端乱码等痛点,建议所有用户升级。

Anthropic 发布了 Claude Code v2.1.

正文

144 版本,新增了 /resume 命令对后台会话的支持,后台会话(通过 claude --bg 启动)现在与交互式会话并列显示,并标记为 bg。后台子代理完成通知现在显示耗时。

/model 命令现在仅更改当前会话的模型,按 d 键可设置新会话的默认模型。修复了多个关键问题,包括启动挂起(最长 75 秒)、终端输出乱码、macOS 后台会话崩溃、文件描述符耗尽等。

MCP 服务器分页工具列表响应现在能正确返回所有页面,不再丢失工具。

原文 · Claude Code: GitHub Releases

v2.1.144

What's changed Added /resume support for background sessions — sessions started via claude --bg or agent view now appear alongside interactive ones, marked with bg Added elapsed duration to background subagent completion notifications (e.g. "Agent completed · 3h 2m 5s") The /plugin browse and discover panes now show when a plugin was last updated /model now changes the model for the current session only; press d in the model picker to set a default for new sessions Renamed "extra usage" to "usage credits" across CLI copy; /extra-usage is now /usage-credits (old name still works) Fixed startup hanging up to 75s when api.anthropic.com is unreachable (captive portal, firewall, VPN issues) — side-channel API calls now time out after 15s Fixed garbled terminal output after a missed window-resize event (e.g. dragging a VS Code split-pane divider) — now self-heals on the next frame instead of requiring Ctrl+L Fixed progressive terminal display corruption (stale/garbled glyphs) that could appear in very long sessions and only cleared on terminal resize or restart Reduced terminal rendering glitches in VS Code by reducing spinner animation color count Fixed macOS background sessions crashing with "exit 1 before init" when the project lives under a Full Disk Access-protected folder (regression in 2.1.143) Fixed an unrecoverable conversation when reading a file whose image extension doesn't match its contents (e.g. HTML saved as .png) — now falls back to text Fewer spurious tool errors during search: head / tail file views now satisfy the read-before-edit check, and a "no matches" result (exit code 1) from egrep , fgrep , git grep , or git diff is no longer reported as a command failure 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 Resumed sessions now keep the model they were using instead of picking up another session's /model choice Fixed Bedrock and Vertex users unable to select "Opus (1M context)" from the /model picker (regression in v2.1.129) Fixed remote-session login failing with "Can't access this organization" for users with forceLoginMethod and forceLoginOrgUUID set Fixed MCP servers with paginated tools/list responses only returning the first page, silently dropping tools Fixed MCP images with unsupported MIME types (e.g. SVG) breaking the conversation — now saved to disk and referenced in the tool result Fixed file descriptor exhaustion when a build runs inside a skill directory — non- .md files no longer trigger skill reloads Fixed session title being generated from plugin monitor output instead of the user's first prompt Fixed Skill tool failing with permission error in headless mode (regression in v2.1.141) Fixed plugins enabled in your own settings showing "not cached" errors after first load on a fresh machine; plugins enabled only by a project's .claude/settings.json now show an actionable claude plugin install hint Fixed claude mcp list silently reporting no servers when .mcp.json can't be parsed (e.g. using VS Code's "servers" key instead of "mcpServers" ) — now shows configuration errors Fixed background side-queries on custom ANTHROPIC_BASE_URL setups and Bedrock Mantle not using Haiku — now falls back correctly when a first-party API key is configured or no Haiku model is set Fixed scrolling in attached background sessions on Windows — PgUp/PgDn, mouse wheel, and Ctrl+O transcript navigation now work Fixed a crash when closing the terminal while attached to a background session Fixed ! <cmd> exec sessions not responding to Ctrl+C while attached — now interrupts the running command Fixed agent view shell-command rows lingering under Working after completion, and pressing Enter on a completed row re-running the command after its output expired Fixed on Windows, pressing ← in claude agents leaving the list unresponsive to keyboard input Fixed ghost characters at the left edge when switching panes in Agent View on Windows Terminal with CJK content /bg and ← -detach now preserve directories added via /add-dir Fixed Edit/Write refusing with "background session hasn't isolated its changes yet" right after detaching a session that was already editing in place Fixed claude respawn <id> on a stopped background session showing "stopped" instead of running Fixed /resume picker not showing sessions forked from a background session Fixed opening a session from claude agents or running claude logs <id> hanging when the background service is unresponsive — now times out after 10s with a recovery hint Fixed background Bash tasks spawned by subagents staying "Running" in SDK task panels after the process exits Fixed completed or stopped background sessions briefly failing to wake being permanently marked as a startup crash Fixed markdown links in claude agents attached sessions rendering as plain text instead of clickable hyperlinks Fixed custom spinnerVerbs applying to the post-turn duration message — past-tense built-ins like "Worked for 5s" are restored there claude agents / --bg rejection messages now name the specific gate (non-TTY, env var, or setting) instead of a generic message claude --bg --name <label> now echoes the name in the post-spawn confirmation claude agents : renaming a background session with Ctrl+R now updates the attached session's banner immediately Background session worktree isolation guard now applies for non-git VCS users with WorktreeCreate hooks configured Plugin marketplace add/update now respects CLAUDE_CODE_PLUGIN_PREFER_HTTPS /plugin now returns to the Installed list after enabling, disabling, or uninstalling a plugin /doctor now shows an exec-form example when a command hook is missing the command field Skill-listing truncation is no longer shown as a startup notification — run /doctor for the full breakdown Improved recovery from rare pre-response stream stalls — now retries streaming once instead of falling back to a slower non-streaming request Improved SDK/headless MCP startup: pre-wait now overlaps startup instead of blocking before the first turn (up to 2s faster with slow MCP servers) The post-survey follow-up hint now appears after every non-dismiss survey response with context-aware copy, making it easier to share more detail via /feedback.

产业坐标与信源核验

本条情报归属 AITOP「产品」核心栏目,重点聚焦北美前沿实验室与硅谷科技巨头。在跨区域产业观察坐标中,该动态直接关联「AI 开发者工具链、Coding Agent 与工程化实践」研究主线,反映出当前技术演进与商业落地的最新风向。涉及核心实体与技术议题包括:Claude Code、命令行工具、后台会话、bug修复,读者可通过下方标签进入对应专题页查阅历史脉络与关联对比。

信源核验说明:本文原始信息发布自一手权威信源「Claude Code: GitHub Releases」(Tier-1 一手发布),具备高确定性参考价值。截至目前,全网已有 11 家独立信源对该事件进行交叉印证与跟进报道(含 向阳乔木、IT之家、TestingCatalog 等),属于近期高关注度行业信号。

发现摘要或翻译有误? 告诉我们