Claude Code 2.1.199
修正 3 項
網路不穩或被限流不再直接死機,自動重試且保留進度
當 API 伺服器超載或你的網路稍微不穩時,現在系統變得更有彈性了。以前如果 Claude 話講到一半伺服器出錯,已經講出來的字會全部不見,現在它會幫你保留下來並標記「尚未講完」;如果是被暫時性的限流(rate limit,防止瞬間請求過多的機制)擋下,系統現在會自動幫你稍後重試,不會直接判你失敗,且重試次數上限也大幅放寬。如果子任務(subagent)被中斷,它不再會騙你「任務成功」,而是會老實回報錯誤,或者把做了一半的半成品交接給主管。遇到 SSL 憑證這種根本無法連線的錯誤,它也會直接教你怎麼修,不會傻傻重試到天荒地老。這就像打越洋電話,以前只要雜音一來就直接斷線,而且聊一半的內容都不算數,現在它不但會保留剛才聽懂的話,還會自動幫你重新撥號。
官方原文
Fixed SSL certificate errors (TLS-inspecting proxies, missing NODE_EXTRA_CA_CERTS, expired certs) burning retries before showing actionable guidance — they now fail immediately with the fix hint
Fixed streaming responses being discarded when the API emits a mid-stream overloaded/server error after partial output — the partial is now kept with an incomplete-response notice
Fixed subagents cut off by a rate limit or server error silently failing instead of returning their partial work to the parent
Fixed subagents reporting API errors (e.g. usage limit reached) as successful results — the error is now reported to the parent agent
Transient server rate-limit errors (429s unrelated to your usage limit) are now retried automatically with backoff for subscribers instead of failing the turn
CLAUDE_CODE_RETRY_WATCHDOG now raises the default retry count for non-capacity transient errors to 300 and lifts the cap of 15 on CLAUDE_CODE_MAX_RETRIES
背景代理與連線大掃除,不再無限重啟或無故罷工
背景運作的任務現在變得更強韌了。以前在 Linux 上如果沒正常關機,留下來的壞紀錄會導致系統每 50 秒就自殺一次,並砍掉所有正在跑的任務;在 Mac 上用 SSH 遠端連線時也常發生無法開機的狀況;或是當你下令叫任務停下來時,系統卻又手賤自動把它重開——這些詭異的現象都修好了。如果你電腦記憶體不夠,任務不會再丟出一句看不懂的錯誤代碼,而是會明確叫你「釋放記憶體」。在不同資料夾開 Claude 時,Chrome 的外掛也不會再瘋狂跳出重新連線的網頁了。這就像一間公司的打卡系統,以前只要前一天不小心沒打卡下班,隔天整間公司就會每分鐘自動跳電一次,現在它終於修好,大家可以安穩上班了。
官方原文
Fixed the background-agent daemon on Linux killing itself and every running agent every ~50 seconds after an unclean shutdown left a corrupted worker record
Fixed background agents failing to cold-start over SSH on macOS with "Could not switch to audit session" (regression in 2.1.196)
Fixed claude stop being silently undone when it raced a background-agent respawn — the respawn now honors the stop
Fixed background job progress indicators stalling for minutes while the job ran long commands
Fixed background sessions on memory-starved machines showing a generic error — they now indicate low memory and suggest freeing resources
Fixed Claude in Chrome repeatedly opening the reconnect page when sessions run from different builds or config directories
介面與防呆優化:技能可連發,不會把對話紀錄塞爆
你可一次載入最多五個斜線技能,且空開對話不再把紀錄檔越撐越大。現在你可以一次呼叫多個斜線技能(像 /skill-a /skill-b 幫我做某事),它會乖乖把前五個技能都載入,不會只讀第一個。看代理清單時,如果子代理沒事做,它們會乖乖收成一行,不會直接消失讓你想找也找不到;當你在看子代理的畫面時,如果不小心打了切換模型的指令,它會提醒你這只對主代理有效,不會偷偷幫別人換模型。遇到設定檔壞掉要重設時,它也學會先幫你備份,不會直接把你過去的設定刪光光了。這就像你去點餐,以前一口氣點兩杯不同的飲料店員只會做第一杯,現在他能一口氣記住你的要求,而且結帳時不會因為你沒買新東西就多印一張空白發票給你。
官方原文
Stacked slash-skill invocations like /skill-a /skill-b do XYZ now load all leading skills (up to 5), not just the first
Fixed remote sessions briefly flapping between Working and Idle in the agent view when a background agent completes
Fixed idle subagents vanishing from the agent panel while other subagents were still working; surplus idle agents now collapse into an expandable summary row
Fixed typing /model or /fast while viewing a subagent silently opening the lead's model picker — a notice now explains the command applies to the lead
Fixed SessionStart, Setup, and SubagentStart hooks silently hiding stderr when exiting with code 2 — the error is now shown in the transcript
Fixed claude --dangerously-skip-permissions daemon <subcommand> being treated as a chat prompt instead of running the subcommand
Fixed SendMessage silently misrouting when a re-spawned agent reuses a previous agent's name — the tool now detects the mismatch and asks the caller to retarget
Fixed opening or resuming a session with no new messages needlessly growing the transcript file
Fixed backgrounding a session with ← or /background dropping its /color from the agent view row
Fixed resetting a corrupted config file from the startup recovery dialog destroying it unrecoverably — it now backs up the file first
Fixed plan mode not prompting for state-changing browser tool calls; read-only browser_batch calls are now correctly auto-allowed
claude agents session rows now show pull-request links as bare #N without the redundant "PR" label