Claude Code v2.1.302: fork subagents default-on, auto mode model env, idle compaction toggle
原文链接: https://github.com/anthropics/claude-code/releases/tag/v2.1.302
Content fetched: 2026-10-17 — GitHub Releases API (published 2026-10-16T20:53:06Z)
要点 (中文)
Claude Code 2.1.302(2026-10-16 发布)动了几个默认面:fork subagent(subagent_type: “fork”)在 claude -p、Agent SDK、桌面端与 VS Code 默认开启(终端此前已默认),CLAUDE_CODE_FORK_SUBAGENT=0 可关;新增 CLAUDE_CODE_AUTO_MODE_MODEL 指定客户端侧 auto mode 分类器所用模型(不影响服务端 auto mode);/config 新增 Idle compaction 行可关闭或恢复空闲压缩;/design-sync 与 /design-login 提示独立版 Claude Design 将于 2026-12-14 关停;修复压缩会话中停轮导致的“Prompt is too long”,Read 工具对超过 128MB 的图像源直接拒绝以防整读入内存。
Key claims (English)
Claude Code 2.1.302 (published 2026-10-16): fork subagents are now on by default in claude -p, the Agent SDK, desktop and VS Code (CLAUDE_CODE_FORK_SUBAGENT=0 disables); CLAUDE_CODE_AUTO_MODE_MODEL picks the client-side auto mode classifier model; /config gains an Idle compaction toggle; standalone Claude Design closes 2026-12-14; fixes include the “Prompt is too long” error when stopping a turn mid-compaction, and Read now refuses image sources over 128 MB instead of loading them into memory.
Obsidian 证据摘录
fork subagent 默认面扩大;CLAUDE_CODE_AUTO_MODE_MODEL;Design 2026-12-14;大图 128MB 门——都是升版后可踩的默认值……升到 2.1.302 后看/configIdle compaction 行;claude -p是否默认 fork
—— Hermes 定时任务/X-每日简报/2026-10-16-X-seeds_AstraMultiAgent-CursorCanvas-CC302.md
原文抓取
What's changed
- Added
CLAUDE_CODE_AUTO_MODE_MODELto choose the model the client-side auto mode classifier uses; it does not change the model for server-side auto mode - Added an
Idle compactionrow to/configfor turning idle compaction off or back on; the notices shown after an idle compaction now say how to turn it off - Added a notice to
/design-syncand/design-loginthat standalone Claude Design (claude.ai/design) closes by December 14, 2026 - Fixed a "Prompt is too long" error when stopping a turn while the conversation was being compacted
- Fixed requests failing with "diagnostics: Extra inputs are not permitted" after switching to Vertex or Bedrock mid-session
- Fixed the Read tool loading an image file of any size, or a pipe or device named like an image, entirely into memory; image sources over 128 MB are now refused
- Fixed
/autocompactand/effortsaving to the wrong model when a gateway names Opus 4 or 4.1 with a prefix, such asanthropic/claude-opus-4-1 - Fixed a prompt cache miss when a tool added mid-session was loaded again through ToolSearch or after compaction
- Fixed
claude pluginand other subcommands sometimes exiting before a queued settings or config write finished, which could lose the change or leave a.tmpfile behind - Fixed plugin marketplaces re-cloning on every refresh, and newly installed git plugins showing version "unknown", when git defaults to the reftable ref format
- Fixed the PowerShell tool not finding commands in a plugin's
bin/folder, and reporting an error when a search that finds nothing (rg, grep, findstr, git grep) is piped intoSelect-Objector another formatting cmdlet - Fixed Claude in the desktop app pointing you to claude.ai settings or
/mcpto authorize or reconnect an MCP server where that option isn't available - Fixed artifact publishes sometimes failing when Claude sent an empty list of edits, and Claude retrying an artifact update the wrong way after a newer version of the artifact turned it away
- Fixed
classifier_categorymissing from OpenTelemetrytool_decisionevents for most auto mode classifier blocks, and newtool_decisionattributes pushing outtool_use_id,tool_sourceandtool_parameterswhenOTEL_LOGRECORD_ATTRIBUTE_COUNT_LIMITis low - Fixed rows in the agents view staying blank after moving down a long list or folding a section
- Fixed
claude remote-control --helpnot printing its usage and exiting when not signed in - Fixed
/design consentand/design revokesuggesting/design-loginwhen they fail in a cloud session, where it isn't available; the message now points to claude.ai/design/settings - Fixed MCP servers showing no tools, or every tool call failing, when the server negotiates protocol version 2026-07-28 but omits
resultType,ttlMsorcacheScope - Fixed prompt suggestions spending usage credits on models your plan pays for only with credits: they are now skipped after a reply billed to credits
- Fixed URLs wri