usage

Claude Code 2.1.225

工具與目錄
在這頁

新功能 4 項

01

額度用完時,原因與恢復時間說清楚

公司替 Claude Code 設了使用上限,做到一半跳出「額度已滿」時,最煩的是不知道誰設的、何時能再做。現在透過 gateway(閘道,替公司統一管控連線的中介服務)使用時,警告會直接列出上限金額、重設時間,以及管理者留下的訊息。像停車場出口的看板,從前只亮紅燈;現在會寫清楚今日上限、幾點重新開放,還附上管理室交代。這項支援需要 gateway 升到 2.1.225。

官方原文

Added gateway spend-limit support to Claude Code's usage warning; the limit-reached message now names the cap, its reset time, and the operator's message (requires the gateway on 2.1.225)

02

進陌生資料夾前,agents 也會先問你

你把下載來的專案交給 claude agents 處理前,現在會先看到工作區信任提示。工作區信任(workspace trust,確認這個資料夾可放心讓工具在裡面工作的確認)原本已在 claude 指令裡出現,這次讓 agents 的行為跟上。它像進陌生人家裡修東西:先問主人能不能進門,再開始翻工具箱;確認過的資料夾才繼續。遇到網路抓下來、還沒看過內容的專案時,這道提醒尤其有用。

官方原文

Added a workspace trust prompt to claude agents for untrusted directories, matching the behavior of claude

03

遠端控制收到的照片,直接交給 Claude 看

你在 Claude app 附上一張照片給 Remote Control(遠端控制,從另一台裝置查看或接手 Claude 工作)的工作階段時,Claude 現在直接收到照片,不必再用另一個工具從磁碟讀檔。要它看截圖、收據或白板照片時,這條路少了一次繞行。像把相片交到對方面前,而不是先放進倉庫,再請對方拿鑰匙去找;照片仍是同一張,只是交接方式改得更直接。

官方原文

Improved Remote Control: photos attached from the Claude app are now shown to Claude directly instead of being read from disk with a separate tool call

04

VS Code Focus 視圖不再把待辦與答案藏掉

在 VS Code 的 Focus view(專注檢視,把對話內容折疊整理的畫面)裡追 Claude 的進度時,最新待辦、未回答問題的脈絡,甚至已解決的答案,之前可能被折起來看不見。現在它們會留在眼前;只有純思考內容會折疊,並標成「Thought for Ns」,等該輪結束再收回。像整理收納盒:行動清單和結論放在最上層,草稿筆記才暫時收到盒底。

官方原文

[VSCode] Fixed Focus view folding away the latest to-do list, a pending question's context, and settled answers; thinking-only folds show "Thought for Ns" and re-collapse when their turn completes

修正 6 項

05

登入短暫失靈,不再把長期憑證換掉

沒有畫面的 headless(無頭模式,沒有終端機視窗的執行方式)工作跑到一半,碰上一個暫時的 401 錯誤,以前可能被換成短命登入 token(授權令牌,用來證明登入身分的通行碼),得重啟才救得回來。macOS 的 MCP OAuth 伺服器也會在鑰匙圈讀取逾時後,突然連發 401,像從沒登入過。現在兩種狀況都修正了。這像交通卡讀卡器一時失靈,卻把你的月票剪成單次票;它現在不會亂換卡。

官方原文

Fixed a transient 401 replacing a long-lived CLAUDE_CODE_OAUTH_TOKEN with a stored login's short-lived token, breaking headless sessions until restart

Fixed MCP OAuth servers on macOS intermittently failing with a burst of 401 errors, as if never authenticated, after a keychain read timed out

06

自動模式被拒後,會換路而非原地重試

自動模式(auto mode,Claude 自己執行操作、逐步少問一次的模式)要請權限卻被安全篩選器拒絕時,操作仍會被擋下;這次拒絕不計入連續受阻次數,模型會收到往下做的提示,改往其他可繼續做的步驟前進,不再重試。像自助結帳機刷不過某張折價券,店員仍不讓它通過,但也不會讓機器一直重刷同一張;它會改成繼續處理購物籃裡的其他東西。

官方原文

Fixed auto mode counting a safety-filter refusal of its own permission check toward the consecutive-block limit; the action is still denied, but the model is now told to move on rather than retry

07

跨工作階段訊息不再無聲停在半路

你在沒有畫面的 headless(無頭模式,沒有終端機視窗的執行方式)環境,或 Claude Code 剛啟動時傳跨工作階段訊息,過去訊息可能停在佇列裡,既不提醒也不會過期。現在這個問題修好了,不必再像盯著一直沒叫號的號碼牌那樣等著。跨工作階段訊息是不同 Claude 工作階段之間的傳話;它該送達、該告知時就會有明確結果,而非悄悄停住。

官方原文

Fixed cross-session messages staying parked without a notice or expiry in headless sessions and during startup

08

遠端控制重連後,不再把舊進度越堆越多

用 Remote Control(遠端控制,從另一台裝置查看或接手 Claude 工作)接續超長對話時,先前壓縮過的聊天記錄可能讓恢復失敗;網頁工作階段還會被誤判卡住,每次重連又重送更多舊事件。現在這兩處都修正。它像接續播放清單:以前播放器既找不到停下的位置,又把已播曲目一首首重放;現在能從原處接回,也不會讓舊內容越疊越厚。

官方原文

Fixed conversation history breaking on Remote Control session resume after very large conversations were compacted

Fixed Claude Code on the web sessions being misreported as stuck, re-sending a growing event backlog on every reconnect

09

agents 不會因滑過別的專案就走錯資料夾

agents 清單裡把滑鼠移到另一個專案的工作階段上,下一個 agent 以前可能改在那個專案的資料夾啟動,現在不會了。另一邊,claude self-hosted-runner 的 --base-dir 若無法建立或寫入,過去會先註冊、每個工作階段才失敗;現在啟動時就明白報錯並退出。像派車中心不再因瞄到隔壁訂單就把司機派錯地址,車庫門打不開也會在出車前說清楚,不會每趟才拋錨。

官方原文

Fixed hovering over a session in another project in the agents list changing the directory the next agent starts in

Fixed claude self-hosted-runner registering and then failing every session when --base-dir cannot be created or written; it now exits at startup with a clear error

10

可直接傳話給其他機器上的遠端工作階段

想請另一台機器上的 Remote Control 工作階段幫忙,現在 SendMessage 可依名稱直接開啟對話,不必等對方先傳話。ListAgents 會把它顯示成 name [ref],方便辨認遠端對象。你確認過的遠端收件人,也不會因本機剛好有同名工作階段、而且清單查不到遠端時,被偷偷換成那一個。像依取件編號交付物品:先用名稱和編號認出指定對象;即使遇到同名者,已確認的對象也不會被換掉。

官方原文

SendMessage can now start a conversation with your Remote Control sessions on other machines by name (ListAgents shows them as name [ref]), instead of only replying after they message you first

SendMessage: a Remote Control recipient you already confirmed is never swapped for a same-named session on this machine when its own list couldn't be checked