Claude Code 2.1.257
新功能 10 項
新的 Fable 5.1 模型上場,本機變預設、閘道暫時還給 5
你在 Claude Code 裡選 Fable 這一檔模型時,現在拿到的是新版 Fable 5.1(模型代號 claude-fable-5-1),已接手成 Fable 系列的預設,不必自己指定。它能一次讀進一百萬個 token(AI 一次能納入考量的文字量單位),大專案的程式碼一次丟給它都吞得下。計費每百萬輸入 token 十美元、輸出五十美元;暫存過的內容再讀一次只要每百萬 0.25 美元,反覆追問同一批檔案便宜很多。但有個過渡限制:透過官方閘道(gateway,把請求轉給模型的中間層)跑的工作階段,打 fable 或 best 目前仍落到 Fable 5——閘道還沒設定好會拒收 5.1,要用就在 /model 手動挑。⟦像新款引擎已是門市標配,但合作車行的加油站還沒換供油規格,開進去只能先加舊款的油,除非你指定要新的。⟧
官方原文
Added Claude Fable 5.1 (claude-fable-5-1), now the default Fable model — 1M context, $10/$50 per Mtok with $0.25/Mtok cache reads
Changed fable and best in Claude apps gateway sessions to keep resolving to Fable 5 for now, since gateways not yet configured for Fable 5.1 reject it; pick Fable 5.1 in /model to use it
可以自訂時間怎麼顯示,還有用哪個時區
Claude Code 每輪回答結束會標一個時間,逐字稿(transcript,把整段對話存成純文字的紀錄)裡每則訊息也有時間戳記。以前這個格式固定,現在多了兩個設定:timeFormat 決定顯示樣式,可填 12 小時制、24 小時制、24 小時制 UTC,或一段 strftime 格式字串(用 %H:%M 這類代號自己拼時間長相);timeZone 決定用哪個時區換算。在 settings.json 裡加,例如:
```json { "timeFormat": "24-hour", "timeZone": "Asia/Taipei" } ```
像把牆上時鐘換成你看得順眼的款式,再撥到自己所在城市的時間。
官方原文
Added "Time format" (timeFormat) and timeZone settings: 12-hour, 24-hour, 24-hour UTC, or a strftime pattern for the turn-end clock and transcript-view timestamps
自動模式收緊三道關卡:雲端憑證、工作目錄外的檔案、別人的產物
自動模式(auto mode,Claude 不逐項問你、直接執行的檔次)下跑一長串工作時,現在多攔三種動作。第一是「Containment Escape」規則:抓雲端主機的中繼資料憑證(metadata-credential,換取存取權的一段資訊)、繞過對外流量限制、或跨租戶讀別人的資源,不再自動放行,除非環境標示為預期行為。第二是第一次讀工作目錄外的檔案時跳一次性提醒,可當場擋掉;要永遠擋就在 settings.json 放 {"permissions": {"blockReadsOutsideWorkingDirectories": true}}。第三是 Cowork/claude.ai 雲端階段裡,讀不屬於你的產物(artifact,對話生成的檔案)一律先問你,自動模式也不例外。⟦像請人代管你家:能自由走動,但翻抽屜找鑰匙、走後門、進鄰居家,得先問過你。⟧
官方原文
Added a Containment Escape rule to auto mode so cloud metadata-credential fetches, egress evasion, and cross-tenant reach are no longer auto-approved unless your environment marks them expected
Added a one-time prompt in auto mode before the first file read outside the working directories, with the option to block such reads (permissions.blockReadsOutsideWorkingDirectories)
Changed Cowork and claude.ai cloud sessions: reading an artifact that isn't yours now always asks you first, even in auto mode
一個環境變數,強制所有子代理都用同一個模型
你請 Claude 分頭跑好幾個子代理(subagent,主對話派出去、各自幹一小塊活的分身)時,每個子代理可能有自己被指定的模型:有的在派出當下指定,有的寫死在代理定義檔裡。想讓它們全部改用某一個模型,以前得一個個翻出來改。現在多了 CLAUDE_CODE_SUBAGENT_MODEL_FORCE 這個環境變數(environment variable,在系統層設定、程式啟動時讀取的參數)。把它打開,CLAUDE_CODE_SUBAGENT_MODEL 指定的模型(沒指定就是主對話用的模型)會套到每一個子代理身上,那些個別指定一律被忽略。適合你想壓成本、或想確保整批任務一致時一次生效。⟦像帶一團人出門,直接宣布今天全部搭同一班車,各自原本訂的車票都作廢。⟧
官方原文
Added CLAUDE_CODE_SUBAGENT_MODEL_FORCE to apply CLAUDE_CODE_SUBAGENT_MODEL (or the main model) to every subagent, ignoring per-spawn and agent-definition model overrides
改推理力度可以只改這次工作階段,不動長期設定
/effort 是調 Claude 想多久再回答的指令——力度高,思考更透徹但慢、也更貴;力度低則相反。以前用它會把設定改成長期的,之後每個工作階段(session,一次從開啟到結束的對話)都跟著變。現在 /effort 選單裡多了一個 s:挑它就只改當前這個工作階段,關掉視窗就回到你原本的預設,跟 /model 早就有的作法一致。另外,換到一個新模型時,它自帶的「預設力度鎖定」現在也只鎖這個工作階段,不再是永久;如果你是透過遠端遙控(Remote Control)從 claude.ai 那邊挑好力度再連進來,那個選擇在鎖定期間會直接生效。⟦像相機的「這張照片先用這個 ISO」,拍完自動跳回你平常設定,不會把總設定覆蓋掉。⟧
官方原文
Added s in /effort to change effort for the current session only, matching /model
Changed --effort to lift a new model's default-effort hold for that session only rather than permanently; an effort picked on claude.ai for a Remote Control session now applies during the hold
透過閘道發現模型時,選單會顯示每個模型的說明
有些公司會讓 Claude Code 透過自家閘道(gateway,把請求轉給模型的中間層)連到一批內部模型,開關是環境變數 CLAUDE_CODE_ENABLE_GATEWAY_MODEL_DISCOVERY。以前這些模型在 /model 選單裡只有名字,看不出差別。現在閘道可以隨每個模型附一段 description,選單就照著顯示;沒附說明的仍寫「From gateway」。搭配的一項調整:這個發現動作即使你設了 CLAUDE_CODE_DISABLE_NONESSENTIAL_TRAFFIC(關掉非必要對外連線)也照跑,因為它只問你自己的閘道、不對外。⟦像自助餐檯的菜牌,以前每格只貼菜名,現在多了一行「主廚推薦、微辣」,不想貼的那格就還是空白菜名。⟧
官方原文
Added support for a gateway-supplied description on discovered /model picker entries (CLAUDE_CODE_ENABLE_GATEWAY_MODEL_DISCOVERY); entries without one still read "From gateway"
Changed gateway model discovery (CLAUDE_CODE_ENABLE_GATEWAY_MODEL_DISCOVERY=1) to run even when CLAUDE_CODE_DISABLE_NONESSENTIAL_TRAFFIC is set, since it only queries your gateway
專案資料夾裡設 bypassPermissions 不再有效
bypassPermissions 是最寬鬆的權限檔次,Claude 幾乎什麼都不問就做。過去只要在專案的 .claude/settings.json 或 .claude/settings.local.json 裡把 defaultMode 設成 "bypassPermissions",一打開這個專案就進入這個模式。問題是這種檔案常跟著程式碼一起流通,等於任何人送你一份專案就能決定你的機器不設防。現在專案層級的這個值會被忽略,行為跟設 "auto" 一樣。要真的用這個模式,改在使用者層級或受管理設定裡設,或每次啟動時自己加 --permission-mode。⟦像家門鑰匙:可以自己決定要不要不鎖門,但不能讓「別人塞進你信箱的一張紙條」替你決定門不上鎖。⟧
官方原文
Changed defaultMode: "bypassPermissions" in .claude/settings.json or .claude/settings.local.json to be ignored, like "auto"; set it in user or managed settings, or pass --permission-mode
公司統一派下來的設定:更早生效、更會報錯、極端數值會被夾住
公司用受管理設定統一配置 Claude Code 時,這批修那條路上的毛病。policyHelper(核對公司政策的小程式)被開機快取蓋掉,以前要等下次開機才更新,現在伺服器一回報設定移除就立刻改跑或退出。managedSourcesBehavior: "merge" 下,sandbox.credentials.awsPairs、sandbox.ripgrep 現在採最高階來源整份沿用;timeoutMs、refreshIntervalMs 填超過計時器上限(2147483647)也會被夾回合法範圍,不再整個失敗。診斷更清楚:更新失敗顯示在 /status,婉拒對話框印出退出原因,逾時明講成逾時;核准對話框在設定同時動追蹤或匯出時也顯示對應措辭。⟦像公司發的制式表單,以前欄位互蓋、填錯不說原因;現在改成填錯即時提示、超範圍自動修正、退件附理由。⟧
官方原文
Fixed policyHelper timeoutMs and refreshIntervalMs values above the timer maximum (2147483647) causing failures or re-runs every millisecond; they are now clamped
Fixed the managed-settings approval prompt showing the generic warning instead of its telemetry wording when the settings also turn detailed tracing or raw API body logging off, or trace export on
Improved policy helper diagnostics — refresh failures now show in /status, declining the managed-settings dialog prints why Claude Code exited, and helper timeouts are reported as timeouts
Changed a policyHelper in MDM or managed-settings.json shadowed at launch by cached server-managed settings to run (or exit) as soon as the fetch reports them removed, not at the next launch
Changed managedSourcesBehavior: "merge" to take sandbox.credentials.awsPairs and sandbox.ripgrep whole from the highest managed source that sets them instead of combining the sources' values
MCP 連線這批:該擋的擋住、該清的清乾淨、錯誤訊息看得懂了
MCP(Model Context Protocol,讓 Claude 連外部工具的協定)這批修連線與紀錄。/mcp 重新連線或啟用時,現在會擋住啟動後才被允許/拒絕清單或 strictPluginOnlyCustomization 禁用的設定檔伺服器。受此設定限制時,claude mcp remove 會連同遠端伺服器的 OAuth 憑證清掉。claude mcp add/remove 遇到 .mcp.json 是 FIFO 或裝置檔符號連結,現在會快速失敗並說明原因,不再卡住或吃光記憶體。WebSocket 失敗會顯示真正錯誤,不再只印「[object ErrorEvent]」;連線與 OAuth 紀錄也會遮蔽網址或標頭的憑證。⟦像大樓門禁,名單、鑰匙、監視畫面以前各有漏洞,現在都對齊了。⟧
官方原文
Fixed /mcp reconnect and enable still connecting a settings-file MCP server that a managed MCP allow/deny list or strictPluginOnlyCustomization loaded after startup should block
Fixed claude mcp remove leaving a remote server's stored OAuth credentials behind when strictPluginOnlyCustomization locks MCP to plugin-only servers
Fixed claude mcp add/remove hanging or exhausting memory when the project's .mcp.json is a FIFO or a device-file symlink; it now fails fast with an actionable message
Fixed WebSocket MCP server connection failures being logged as "[object ErrorEvent]" instead of the underlying error
Improved MCP connection and OAuth debug/error logs so credentials carried in a server's URL or request headers are redacted
無頭模式與長時間串流這批:不再提早掛斷、不再悶著頭空轉
這批修無頭模式(headless,沒有終端機視窗,常見於腳本、CI)跟長時間串流該等或該停的情形。claude -p 印完結果後,模型啟動 Monitor(背景監看任務)若還在跑,以前約 5 秒就退出,現在等它觸發或逾時。管線輸入不是合法 JSONL 時,以前記憶體會無止盡成長,現在會快速失敗並說明錯誤。Proactive 輸出風格的工作階段,背景指令或 Monitor 還在跑時以前會用填充訊息與重讀日誌瞎忙,現在會閒置。Bedrock 與 Bedrock Mantle 長時間隱藏思考時,以前會被閒置逾時切斷;現在串流帶進度事件。SDK 主機端也改善存活回報,調高 CLAUDE_STREAM_IDLE_TIMEOUT_MS 後的長等待不再被誤判卡死。⟦像客服電話等候線:有的提早掛斷、有的收到亂碼就當機、有的裝忙、有的乾脆安靜到你以為斷線——這批把等候線一段段修順。⟧
官方原文
Fixed claude -p exiting about 5 seconds after its final result while a Monitor the model armed was still running; it now waits for the watch to fire or time out
Fixed unbounded memory growth when non-JSONL data is piped into claude -p --input-format stream-json; it now fails fast with a clear error
Fixed Proactive output style sessions busy-looping with filler messages and repeated log reads instead of idling while a background command or Monitor they started is still running
Fixed Bedrock and Bedrock Mantle requests going silent during long hidden-thinking phases on Opus 4.7 and later, which let idle timeouts cut the connection; the stream now carries progress events
Improved liveness reporting to SDK hosts while a response is held open by gateway keep-alives, so long waits under a raised CLAUDE_STREAM_IDLE_TIMEOUT_MS are not mistaken for a hung session
修正 15 項
問完插話的問題,回主線的按鍵改了
/btw(by the way 的縮寫)讓你在不打斷主線任務的情況下,臨時問 Claude 一個小問題,問完再回到原本的答案。以前在這些側邊問答之間翻頁用 ←/→,跟其他地方的方向鍵功能容易撞。現在改成 Shift+←/Shift+→,也可以用 [/],一路翻過你最近幾個插話問題、再翻回正在進行的答案。另外修好一個卡點:在 claude agents(管理子代理的畫面)裡開著 /btw 面板時按 ← 原本沒反應,現在它會帶你回子代理清單,就算問答還沒結束也行;重新打開那個工作階段時,面板會再出現。⟦像看書時夾的臨時便利貼,翻閱便利貼的手勢跟翻正文分開,才不會一滑就跳出正在讀的章節。⟧
官方原文
Fixed ← doing nothing in the /btw panel inside a claude agents session: it now returns to the agents list (even mid-answer), and the panel comes back when you reopen the session
Changed /btw history browsing from ←/→ to Shift+←/Shift+→ (or [/]), stepping through your recent side questions and back to the live answer
/add-dir 兩處調整:拒收網路路徑、接受目前目錄底下的資料夾
/add-dir(以及啟動時的 --add-dir、設定裡的 additionalDirectories)用來把額外的資料夾納入 Claude 的工作範圍,連同那個資料夾的 skills、指令、代理一起載入。這版收拾了兩個相反方向的毛病。一是網路路徑:Windows 的 UNC 網路共享、/net/<主機> 這類自動掛載,現在會在真的去碰之前就擋下並說明,Windows 使用者請改用對應到磁碟機代號的路徑。二是就在你目前工作目錄底下的子資料夾,以前 /add-dir 會無理由拒絕,現在會接受,並像啟動時的 --add-dir 一樣載入該資料夾的 skills、指令、代理。⟦像門禁系統,之前把住同一棟樓的鄰居擋在外面、卻對遠端撥進來的陌生連線不設防,現在兩邊都調對了。⟧
官方原文
Fixed /add-dir rejecting a directory inside the current working directory; it now loads that directory's skills, commands, and agents like --add-dir does at startup
Changed --add-dir, /add-dir, and additionalDirectories to refuse network paths (UNC shares, /net/<host> automounts) with a message before touching them; on Windows use a mapped drive letter
接雲端供應商時,多送出去的憑證與殘留身分都清乾淨了
透過 Bedrock、Vertex、Foundry 跑 Claude Code,這批修的是請求裡夾帶不該夾的登入資訊。重複列了兩次的自訂 Authorization 標頭曾蓋掉你的憑證(Bedrock、Mantle、Vertex、WIF 都中招)、Vertex 精靈撿到殘留舊設定檔、官方閘道把多餘標頭送給 Foundry/Vertex/Bedrock 且 Foundry Entra ID 上游啟動失敗、API 金鑰模式下殘留 Anthropic 金鑰跟著多送——都不再發生,閘道登入與 token 更新也開始驗證固定 TLS 憑證。另外,工作階段過期後重開會說「已結束」並給 /login;免金鑰的 Console 登入也會套用組織設定、/status 顯示所屬組織。⟦像出國轉機,行李箱混進別人的證件,海關每關被卡;現在託運前先清一遍,只留當次要用的證件。⟧
官方原文
Fixed a doubly-listed custom Authorization header overriding the configured credential on Bedrock, Mantle, Vertex, and WIF, and the Vertex setup wizard picking up a leftover Anthropic profile from ~/.config/anthropic
Fixed Claude apps gateway sending stray host Authorization or profile headers to Foundry, Vertex, and Bedrock, and Foundry Entra ID upstreams not starting when ANTHROPIC_FOUNDRY_API_KEY is set
Fixed a leftover Anthropic API key or auth token being sent alongside your Foundry subscription key in API-key mode
Fixed launching Claude Code after a Claude apps gateway expired or revoked your session: it now says the session ended and offers /login instead of reporting a network error
Fixed the keyless Console sign-in ("Sign in with your Console account") not applying your organization's server-managed settings, and /status not showing the Organization for that sign-in
Changed Claude apps gateway sign-in and token refresh requests to verify the gateway's pinned TLS certificate, as the managed settings fetch already does
權限確認框這一批:少了一行舊提示、對付得了幾種混淆寫法
這組都跟「Claude 要不要停下來問你」有關。介面上,權限確認框底下的 Ctrl+E 指令說明拿掉了;Edit(改檔)確認框的差異檢視,以前把 emoji 等多碼字元寬度算錯、排版會歪,現在對齊了。真正重要的是三個漏洞收口:permissions.ask(要求先問過的規則)若指令包在複合指令或子殼層裡跑,以前會被自動模式跳過不問,現在照攔;某些 [[ ]] 條件 zsh 跟 bash 解讀不同,以前自動放行,現在跳確認;Bash 的 Read/Edit 拒絕規則,以前對 < 檔案 重新導向、tac、egrep 這類讀檔指令不生效,現在命中任一參數或導向目標就整條拒絕。⟦像機場安檢,之前拆開包裝、藏進夾層、換個名字報就能過,現在這幾種繞法都補上了。⟧
官方原文
Fixed a permissions.ask rule being skipped in auto mode when the matching command ran inside a compound command or subshell, letting it run without the confirmation prompt
Fixed Bash Read()/Edit() deny rules not applying to < file redirects and reader commands like tac and egrep; a deny rule on any argument or redirect target now refuses the command
Fixed Bash permission checks auto-approving certain [[ ]] conditionals that zsh parses differently from bash; these commands now prompt for approval
Fixed the Edit permission prompt's diff view rendering emoji and multi-code-point characters with incorrect widths
Removed the Ctrl+E command explanation on Bash and PowerShell permission prompts
背景工作階段開不起來的幾種情形,這版都堵上
背景工作階段(background session,丟給 Claude 在後台跑的任務)這批修「根本啟動不了」的幾種情形。macOS 上用 npm 安裝、碰上 Claude Code 自我更新時,背景工作階段會開不起來;Windows 上過期的 daemon(常駐服務程式)鎖檔指向被重用行程編號,也一樣。另一種是另一個行程正在下載更新,開背景工作階段會直接報「Couldn't start the background service」,現在會等下載完再啟動。還有兩個收拾殘局的:更新後仍跑舊版執行檔的背景工作階段以前會堆著不退場,現在會被汰換;cc-daemon-* 這種啟動中斷留下的暫存資料夾,現在會被 cleanupPeriodDays 保留期一併掃掉。⟦像早班公車卡在總站:鑰匙孔卡住、排班紀錄沒清、加油站沒開門,這幾個原因一次排除,空車也拖回停車場。⟧
官方原文
Fixed background sessions failing to start on macOS npm installs during a self-update, and on Windows when a stale daemon lock file pointed at a reused process id
Fixed background sessions failing to open with "Couldn't start the background service" while another Claude Code process was downloading an npm update; the start now waits for it
Fixed background sessions left running an older Claude Code binary piling up across auto-updates instead of being retired
Fixed leftover cc-daemon-* folders in the system temp directory after an interrupted background daemon start; the cleanupPeriodDays retention sweep now removes them
背景工作階段的清單顯示,這批修對了幾個記錯的地方
這批修 claude agents(管理背景工作階段的畫面)跟指令列「記錯狀態」的幾個地方。state.json 的 detail 欄位被排程喚醒後會重複原本派工指令,不更新。重新對已完成的背景工作階段追問後,理應回清單前面,卻卡在「Completed」舊位置,現在照最新完成時間排序。從已刪掉的目錄打 claude --bg,以前謊報成功、留下壞紀錄,現在印出失敗原因並以結束碼 1 收場。--resume 把背景對話列兩次,--continue 打開的是背景化前卡住的舊副本;現在 --continue 也能打開跑完的背景工作階段,claude --resume <session-id> --bg 在沒人跑那個工作階段時會接續原編號,真要另起副本才明講。⟦像旅館房間看板,退房了還顯示住客名字、同一人登記成兩間房;這次把看板跟房卡實際狀態對齊。⟧
官方原文
Fixed a background session's state.json detail repeating its own dispatch prompt after a scheduled wake-up
Fixed claude agents keeping a background session you re-prompted buried in Completed after it finished again; Completed now orders by the latest finish
Fixed claude --bg from a directory that was just deleted reporting "backgrounded" and leaving a crashed session row; it now prints the reason and exits 1
Fixed --resume listing a backgrounded conversation twice and --continue reopening its stalled pre-background copy; --continue now also opens finished background sessions
Changed claude --resume <session-id> --bg to continue that session under its own ID when nothing is running it, instead of silently starting a copy; a copy is now announced
背景工作階段對停止與通知的反應,這批修得更誠實
背景工作階段被中斷時,這批讓狀態如實反映。Ctrl+S 在開啟的背景工作階段暫存提示,閒置或停止後重開以前會不見,現在保得住。用 ← 或 Ctrl+B 把任務丟到背景時,子代理或工具正跑,曾誤判工具被拒絕;現在會正確重跑。從任務面板或用戶端停止背景指令時,以前 Claude 不會被告知,現在會。停止背景子代理時,它的監控(monitor,代替你盯著某件事、完成或逾時就通知)以前會繼續跑,現在會停掉。用 timeout 或 setsid 把背景指令和 shell 脫鉤時,停止任務或結束 Claude Code 後它以前仍會跑,現在也會結束。另外,claude agents 以前不會說「有背景工作階段在等你核准另一階段傳來的訊息」也不說是誰傳的,現在會清楚顯示。⟦像請人代班顧店,按了下班鈴代班的人卻沒收到訊號;這批修完,鈴聲、代班狀態、跟手上紀錄終於對得上。⟧
官方原文
Fixed a prompt stashed with Ctrl+S inside an opened background session being lost when the session went idle or was stopped and then reopened
Fixed backgrounding a turn (← or Ctrl+B) while a subagent or other tool was running occasionally making the background session treat that tool as rejected instead of re-running it
Fixed Claude not being told when you stop a background command from the tasks panel or a connected client
Fixed stopping a background subagent leaving its monitors running
Fixed claude agents not saying that a background session is waiting for you to approve a message from another session, or who sent it
Fixed background commands that detach from their shell (for example under timeout or setsid) surviving a task stop or Claude Code exit
claude agents 畫面與子代理逐字稿,這批修的是「看得到、跟得上」
這批修 claude agents(管理子代理畫面)跟逐字稿的可用性。用 ← 開子代理工作階段,以前沿用原權限模式、蓋掉目標 defaultMode 與 permissionMode,現在照目標走;Ctrl+G 重新綁定以前不生效,Ctrl+S、Ctrl+T 現在可透過新 Agents 情境重綁。切到另一子代理逐字稿,用量計數器常凍住,現在即時更新;claude agents --json 以前會短暫切終端機成 raw 模式、退出蓋掉別程式設定,現在不會。子代理被睡眠、斷線或伺服器錯誤打斷,以前停在半截,現在自動接完;重新接續已停掉的子代理,主對話以前不被告知,現在會;逐字稿超 5MB 的子代理恢復或傳訊,以前報「No transcript found」,現在正常。⟦像盯著幾支監視器的保全室:畫面卡格、按鍵對不上、錄影錄到一半當機,這批一次修順。⟧
官方原文
Fixed sessions dispatched from an agent view opened with ← always starting in the original session's permission mode, overriding the target directory's defaultMode and the agent's permissionMode
Fixed keybindings.json rebinds of Ctrl+G being ignored in claude agents; its Ctrl+S / Ctrl+T are now rebindable via the new Agents context
Fixed the token counter freezing or crawling after switching to another subagent's transcript, and made background subagents' and teammates' counters update live while a response streams
Fixed claude agents --json briefly switching the terminal to raw mode and undoing another program's terminal settings on exit
Fixed subagents stopping when a response was cut off mid-stream by a computer sleep, dropped connection, or server error; they now automatically continue instead of ending with an incomplete response
Fixed the main agent not being told when you resume a subagent you had stopped from its transcript view
Fixed resuming or messaging a subagent whose transcript had grown past 5 MB (for example after reading many images) failing with "No transcript found"
五種讓提示快取失效的情形,這批一次修掉
提示快取(prompt cache,記住送過的內容、下次不重算不重收費)本是省錢機制,這批修幾個讓它悄悄失效的漏洞。遠端遙控在工作階段進行到一半才連上時,會重送一次 Bash 工具定義,光這樣就讓快取失效,現在不會。設了顧問模型(advisor model,輔助主模型判斷的模型)的工作階段,背景請求以前吃不到快取、每次重送整段對話,現在能命中;背景請求指壓縮對話、/recap 這類動作。對話倒帶回空白後,/model 跟 /effort 以前會多顯示一則快取警告,現在不會。長時間夾大量截圖的工作階段,圖片超單次請求上限後每輪快取失誤,這問題已修。/fork(把對話另開一份背景工作階段)現在會把原本快取保留到新階段,做法是把工作樹簡報改成訊息帶過去,不動系統提示本身。⟦像影印店的收據存根,留著本該省時間,這幾個環節卻讓存根每次被撕掉重印,現在一一補回去。⟧
官方原文
Fixed Remote Control connecting mid-session re-sending the Bash tool definition, causing a prompt-cache miss
Fixed sessions with an advisor model set missing the prompt cache on background requests (compaction, /recap, prompt suggestions) and re-sending the full conversation uncached each time
Fixed /model and /effort showing a prompt-cache warning after rewinding a conversation back to empty
Fixed prompt-cache misses on every turn in long screenshot-heavy sessions once images exceeded the per-request size cap
Improved /fork to keep the original conversation's prompt cache in the new background session: its worktree briefing now arrives as a message instead of a system-prompt change
遠端遙控的兩個信任漏洞補上了
遠端遙控(Remote Control,讓你從手機或另一台裝置連進正在跑的 Claude Code)這批修的是「同意」跟「聽誰的」出錯的地方。以前不管是按 Esc、還是在 claude remote-control 選單裡按 n,用意都是拒絕連線,卻被系統當成「已經同意」記下來,導致下一次請求直接連上、不再問你。這次修好,真的按了拒絕才算數。另一個是從 Claude app 發起的遠端遙控工作階段,以前會忽略你在 app 裡選好的模型,逕自用這台機器的預設模型跑,現在會照你選的模型執行。⟦像門口的對講機,你明明按了「不開」,系統卻記成「已放行」,下次陌生人直接推門進來;這次改成按下拒絕才是真的拒絕。⟧
官方原文
Fixed dismissing the Remote Control consent prompt (Esc, or n at claude remote-control) counting as consent, so the next request connected without asking
Fixed Remote Control (claude remote-control) sessions started from the Claude app ignoring the selected model and running on the machine's default instead
沙盒與工作樹的邊界,這批修的是「不該過去的路」跟「該提醒的殘留」
沙盒(sandbox,把 Claude 動作限制在安全範圍內的隔離環境)與工作樹這批,修的是邊界沒守住、或殘留沒被發現的地方。網路主機名結尾多打一個點時,deniedDomains 以前擋不住這個 host,「不要再問」也一直重複跳出,現在能正確擋下。外掛宣告的元件路徑如果是指向外部的符號連結,以前能藉此讀到外面的檔案,現在會被拒絕並報錯。工作樹隔離的工作階段,以前把不碰 git 的 Bash 迴圈、$VAR 讀取、heredoc 都當成太複雜而拒絕,現在能正確放行;cd 進連結工作樹的子目錄後,對共用 .git 目錄的寫入權限以前會不見,現在不會。另外,/doctor 現在會提醒你,被強制結束的工作階段留下的沙盒遮罩檔還在。⟦像社區圍籬:有個沒堵住的縫、外送員能溜進鄰戶陽台、警衛偶爾認錯人,這批把縫補上、側門鎖好,還留了張紙條提醒你忘記收走的舊鑰匙。⟧
官方原文
Added a /doctor warning for stale sandbox mask files left by a killed session
Fixed sandbox network hosts written with a trailing dot (example.com.): a deniedDomains entry didn't block the host inside the sandbox, and "don't ask again" for such a host kept prompting
Fixed plugins being able to read files outside their own directory through a declared command, agent, skill, hooks or other component path that is a symlink; such paths are now refused with an error
Fixed worktree-isolated sessions refusing Bash loops, $VAR reads, "$(…)" and heredocs that never touch git as "too complex to verify that it stays inside the worktree"
Fixed sandboxed git commands in a linked worktree losing write access to the repository's common .git directory after cd into a subdirectory
設定重新載入這幾個環節,以前會漏掉或忘記已經變了
這批修的是 Claude Code 「重新讀設定」這件事沒做徹底的幾個地方。專案裡如果是啟動之後才建立的 .claude/ 資料夾,裡面的設定以前要等重開才會被讀到,現在啟動後建立也能生效。allowManagedPermissionRulesOnly(只允許受管理規則生效)開啟時,第一次設定重新載入後,--disallowedTools 跟工作階段層級的拒絕規則以前會被連帶清掉,現在會保留。另外,遙測(telemetry,回報使用狀況的機制,這裡指 OTEL)透過受管理設定推送下來的值,暖啟動時以前會被忽略,桌面版 App 開的 Code 工作階段也中招,現在都會生效。暖啟動指沿用既有行程、不是整個重開機的啟動方式。⟦像換了新規定卻沒通知輪班的第二班警衛:有的門忘記解鎖、有的舊規定該撤沒撤、廣播系統選擇性失聰,這批把交接紀錄補齊了。⟧
官方原文
Fixed settings in a .claude/ folder created after startup not being picked up until restart
Fixed --disallowedTools and session deny rules being dropped after the first settings reload when allowManagedPermissionRulesOnly is enabled
Fixed telemetry (OTEL) settings pushed through server-managed settings being ignored on warm starts, including desktop-app Code sessions
終端機畫面這一批:跑起來更順、幾個卡格的地方修好了
這批讓終端機畫面在長對話裡跑得更順,也修掉幾個卡住的小地方。渲染效能改善:每輪要重繪的東西變少,串流不會因回答變長跟著變慢,背景代理更新不再整個畫面重繪;輸入框打字要重繪的量也減少,延遲跟著降。修好的:工作指示燈以前會在回應串流到一半、被 slash 指令面板擋住時停止轉動,看起來像卡住,現在不會;自動接續的 slash 指令回應串流時,畫面下方以前會多冒一行幽靈重複指令列,現在不會;全螢幕模式下以前點不了 ! 的 shell 輸出去展開,現在點得到;貼帶 ANSI 顏色碼的文字進 /feedback 這類對話框以前會當掉,現在不會。另外,emoji 自動完成現在認得剩下的 GitHub/Slack 簡碼別名。⟦像把老舊放映機的皮帶、對焦環、片門一次調校,畫面不再抖動,卡住的地方也順了。⟧
官方原文
Improved rendering performance: less re-render work per turn in long conversations, streaming no longer slows down as the reply grows, and background-agent updates no longer re-render the whole screen
Improved prompt input responsiveness by reducing per-keystroke rendering work
Fixed the working spinner stopping while a response streams behind a slash-command panel
Fixed a phantom duplicate slash-command row rendering below the in-flight turn while a command's auto-continued response streamed
Fixed fullscreen mode not letting you click ! shell command output to expand it
Fixed a crash when pasting ANSI-colored text (e.g. a CI log) into dialogs like /feedback
Improved emoji autocomplete to accept the remaining GitHub/Slack shortcode aliases (:satisfied:, :telephone:, :collision:, …)
這版剩下的零散修復:排程、隊友、憑證、幾個 CLI 小改進
這版收攏幾個零散修復。/schedule 存的提示少了訊息角色時,以前會空跑,現在正常執行;隊友權限請求碰上隊長信箱暫鎖時,不再回覆兩次;agent-team 隊友確認關閉後,tmux 或 iTerm2 分頁會關掉。雲端工作階段啟動時網路代理失敗,不再整段遺失 git/GitHub 憑證,會背景重試恢復。/code-review --comment 可用 glab mr note 貼 GitLab 合併請求;排隊的 MCP elicitation 或權限詢問,會同時送出閒置通知;claude self-hosted-runner --configure-git 會開 git push 協商,舊複製版首推新分支只傳新提交;同時完成的非同步 hook 通知會合成一行。⟦像整理辦公桌抽屜底層的雜物,各自無關,收好後都順手。⟧
官方原文
Fixed /schedule routines whose prompt was saved without a message role and then ran with nothing to do
Fixed a teammate permission request being answered twice when the leader's mailbox write was briefly locked
Fixed agent-team teammates in tmux/iTerm2 panes sometimes staying open after acknowledging a shutdown request
Fixed cloud sessions losing git/GitHub credentials for the rest of the session when the session's network proxy failed to start at launch; it now retries in the background and recovers
Improved /code-review --comment to post findings on GitLab merge requests via glab mr note instead of reporting the target as unsupported
Improved notifications: an MCP elicitation or permission ask queued under another dialog now sends its idle desktop notification at the same delay as a visible ask
Improved claude self-hosted-runner --configure-git to also enable git push negotiation, so the first push of a new branch from a stale clone uploads only the new commits instead of the whole tree
Improved verbose/transcript output: async hook completion notices that arrive together now appear on one line instead of one line per hook
VSCode 擴充套件這一批:側邊欄整理、模型切換、無障礙修正
這版 VSCode(微軟程式編輯器)擴充套件整理側欄與操作。工作階段清單新增可收合的 ACCOUNT & USAGE、SESSION MANAGER、Ungrouped 區;前兩區有帳號、用量與詳情連結。輸入列模型膠囊可選模型,含 Effort 與 More models;命令選單可選含自訂的輸出風格。第三方供應商不再顯示 claude.ai 專用功能或殘留登入,用量也會先顯示上次記錄;Enable Remote Control for all sessions 對已開啟工作階段生效,螢幕報讀也修正。Delete session 改 Archive session,項目移入可收合的 Archived sessions,能 Unarchive;slash 指令與 MCP 伺服器改在可篩選視窗操作。⟦像把塞滿的抽屜櫃重貼標籤、換上好拉的把手,卡住的幾格也上了油。⟧
官方原文
[VSCode] Added collapsible ACCOUNT & USAGE and SESSION MANAGER section headers to the session list panel, with the account email, the usage meter, and a View details link opening the usage dialog
[VSCode] Added a model pill to the input footer that shows the current model and opens the model picker, with an Effort row and a "More models" page
[VSCode] Added a collapse toggle to the Ungrouped section of the session list
[VSCode] Added output style selection to the command menu, including custom styles
[VSCode] Fixed third-party provider deployments (Bedrock, Vertex, and others) still showing claude.ai-only features (remote sessions, dictation, usage) and calling claude.ai with a leftover login
[VSCode] Fixed the session list panel's usage meter staying blank after the panel loads; it now shows the last known usage immediately
[VSCode] Fixed the "Enable Remote Control for all sessions" toggle so turning it on or off applies to sessions that are already open, not only to new ones
[VSCode] Fixed screen reader announcements: a control character before a fence or heading no longer drops visible lines from speech, and bold markers spanning a heading are no longer mis-paired
[VSCode] Changed the action menu to list slash commands in a filterable "Slash commands" dialog instead of inline; picking one runs it; the MCP servers dialog gained the same filter box
[VSCode] Changed "Delete session" to "Archive session": archived sessions move to a collapsible "Archived sessions" group at the bottom of the list with an Unarchive action