usage

Claude Code 2.1.318

工具與目錄
在這頁

新功能 14 項

01

登入效期加入狀態查詢,倒數十天主動發出提醒

在伺服器或背景排程跑指令時,登入憑證突然過期常讓自動化任務無預警中斷。現在輸入 claude auth status 會顯示 loginExpiresAt 登入有效期限。跑 claude -p 時,JSON 輸出裡也新增了 credential_expires_at 欄位。當儲存的 claude.ai 登入狀態只剩 10 天以內,claude -p 的文字輸出會在 stderr 印出一行警示訊息。如果登入已經達到時效上限,終端機不會只噴出不明錯誤,而是會明確告知憑證已過期。在 claude -p 執行時還會具體點名可以使用 claude auth login 或 claude setup-token 重新登入。⟦宛如租借通行證快到期時櫃檯發送的簡訊,以前卡片失效當下直接刷不過,現在提早十天提醒你更換,過期時也會明講該去哪個窗口補辦。⟧

官方原文

Added the date a stored claude.ai sign-in ends to claude auth status (loginExpiresAt) and to claude -p JSON results (credential_expires_at)

Added a one-line stderr warning to claude -p text output, starting 10 days before a stored claude.ai sign-in ends

Fixed the sign-in failure when a stored claude.ai login reaches its time limit: it now says so, and in claude -p names claude auth login and claude setup-token

02

自訂擴充支援輕量分支運算,送出掛鉤維持使用者輪次

當你請 Claude 幫忙寫擴充功能時,這些擴充的授權紀錄與執行方式有了更完整的規範。當 Claude Code 在目前工作階段詢問是否啟用自己寫出來的擴充(mods)時,會留存你的回覆紀錄。在撰寫擴充使用 $.model.fork 分岔旁支任務時,新增了 effort 思考力度選項。無論主工作階段設定多高,旁支任務都能指定以 low 低力度執行,回傳結果也會回報實際送出的思考力度。在 prompt.submit 掛鉤(hook,特定事件發生時被觸發的小程式)附加的內容,現在會保留在使用者輪次,不再被當作系統訊息送出。⟦好比主廚指派助理削馬鈴薯,不必動用主廚等級的精準刀工,只要交代以簡化流程快速處理,助理切好後端回同一個備料檯上。⟧

官方原文

Added a record of your answer when Claude Code asks to turn on the mods it writes in a session

Added an effort option to a mod's $.model.fork, so a quick side job can run at low whatever effort the session uses; the result reports the effort sent

Changed what a mod attaches at prompt.submit to stay in the user's turn rather than go out as a system message

03

應用程式閘道支援跨帳號角色,完善日誌警告與代理提示

企業維護內部閘道時,往往需要把每位工程師呼叫 AI 的費用精確拆分到各自的雲端帳號。Claude 應用程式閘道在 mantle 上游新增了 assume_role 設定,支援切換至另一個 AWS 帳號角色以利拆分雲端開銷。當同盟身分驗證(external_account)憑證檔裡的 Google 存取憑證快過期時,閘道會在日誌印出預警。listen.trusted_proxies 的日誌提示也做了改善,提醒你只列出本身會把連線位址寫入 X-Forwarded-For 的反向代理。在 Amazon Bedrock 上遇到 CountTokens 失敗時,警示訊息會說明是由 Claude Code 自行計算字詞,只有 AWS 明確拒絕存取時才指向 IAM 權限問題。以往日誌容易讓人誤以為是閘道出錯,現在直接點明責任歸屬與排查方向。

官方原文

Added assume_role on mantle upstreams of the Claude apps gateway, for a role in another AWS account and for per-developer AWS cost attribution

Gateway: Added a log warning when the Google access token from a federation (external_account) credentials file is about to expire

Gateway: Improved the log hints about listen.trusted_proxies: they now say to list only a proxy that adds the connecting address to X-Forwarded-For itself

Gateway: Improved the warning when AWS CountTokens fails on Amazon Bedrock: it says Claude Code, not the gateway, counts after the 501, and points at IAM only when AWS denies access

04

強化網路家目錄檔案鎖,防止設定丟失與登入遭清空

在學校或公司的伺服器叢集上,許多主機共用同一個網路硬碟目錄。以前在共用家目錄無法寫入設定檔時,執行 /logout 或 claude mcp remove 都會謊報成功,設定還會無聲無息被丟棄,現在已修正此問題。當另一台主機重新登入同一帳號組織時,執行中的任務不會再莫名跳出未登入錯誤並中斷。claude mcp add 與 remove 現在會等待檔案鎖,若取不到鎖會直接以代碼 1 離開,不過其他工作的存檔仍可能覆蓋已儲存的伺服器。當網路磁碟空間用盡時,儲存的登入狀態不會再被置換成空檔案。在網路檔案系統中,~/.claude.json、設定檔與登入憑證更不容易被刪除或覆寫為舊版。若設定檔被回報為遺失,系統會再次確認,避免遺漏 MCP(Model Context Protocol,讓 AI 連接外部工具的協定)伺服器。

官方原文

Fixed /logout, claude auth logout and claude mcp remove reporting success, and changes to trust, consent or MCP settings being dropped with no word, when the config file could not be updated on a shared network home directory

Fixed jobs exiting with Not logged in when another terminal or host signs in again to the same account and organization on the same home

Fixed claude mcp add and remove writing the config without its lock: they now wait for it or exit 1, though another job's save can still replace a saved server

Fixed the stored login being replaced by an empty file when a network home directory has no room left for data but still takes new files

Improved how ~/.claude.json, settings files and the stored login survive saves on shared network home directories: they are less often deleted, briefly emptied or replaced by a near-empty or older copy

Improved sessions on network file systems to look again when the configuration file is wrongly reported as missing, so fewer start without your MCP servers and trusted folders

05

終端機設定檔加入防損保護,非互動模式不擅自覆寫

如果本機的設定檔格式不小心改壞,盲目的自動修復往往會抹除掉原本珍貴的個人設定。以非互動模式啟動時,若 ~/.claude.json 包含無效的 JSON 語法,不會再強制替換為預設值,改為直接啟動失敗並提示如何還原,完整保留原始檔案。當設定檔為空且沒有備份時,不再被誤報為檔案損毀,改為當作初次啟動處理。印出的還原指令不會再指向空白或截斷的備份檔,也不會在唯讀檔案上失敗。清理舊備份時,在只有跑 claude -p 的環境中,刪除最後一份有效備份前會先建立新備份。跑 claude -p 或 SDK 應用等無人值守任務時,若內容完全沒變動,就不會每次執行都重新寫入 ~/.claude.json。

官方原文

Fixed retention cleanup leaving a home that only runs claude -p with no ~/.claude.json backup: it now takes a fresh backup before deleting the last good one

Fixed non-interactive launches replacing a ~/.claude.json that isn't valid JSON with defaults; the start now fails, says how to restore the file, and leaves it as is (anthropics/claude-code#87551)

Fixed an empty ~/.claude.json with no backup being reported as corrupted; Claude Code now starts as it does when the file is missing

Fixed the restore command printed for a damaged or missing ~/.claude.json naming an empty or cut-off backup, or failing on a read-only file

Improved unattended runs (claude -p, SDK apps) to stop rewriting ~/.claude.json on every run when nothing in it changed

06

自架執行器提供喚醒原因,調整日誌格式與參數提示

架設專屬的自架執行器(self-hosted runner)時,管理排程與排查連線狀態需要更清晰的資訊。調度器的產生執行器掛鉤環境現在新增了 CLAUDE_RUNNER_SPAWN_REASON 環境變數。這會記錄 Anthropic 發送請求的原因,未帶原因時則不設定。若在啟動時把 --release-idle-session-min 放在最後且未帶數值,或其數值只包含空白字元,啟動時會主動跳出警示。調度器的日誌格式也有所更新。ok session=… 訊息改在所有日誌層級輸出至 stdout,並在 jti=… 後方加上 reason=…。nack session=… 則在 retryable=… 後附帶 reason=…,依賴舊關鍵字匹配的自動化腳本需相應調整。

官方原文

Self-hosted runner: Added CLAUDE_RUNNER_SPAWN_REASON to the orchestrator's spawn-runner hook environment: why Anthropic sent the request (e.g. runner_lost, resumed); unset when none was sent

Self-hosted runner: Added a startup warning when --release-idle-session-min is the last argument with no value (still ignored) or has a value of only spaces (still read as 0)

Self-hosted runner: Changed the orchestrator's log lines: ok session=… now prints at every log level on stdout (was debug only, stderr) with reason=… after jti=…, and nack session=… ends its fields with reason=… after retryable=…; update scripts that match retryable=true: or retryable=false:

07

雲端環境無須綁定儲存庫,完善瀏覽器路徑與日誌抓取

在雲端環境(cloud sessions)進行臨時測試或執行自動化腳本時,有了更靈活的配置選項。在 Anthropic 代管的雲端環境啟動工作階段時,現在新增了無儲存庫選項,無須挑選程式碼儲存庫即可直接開啟對話。雲端環境內建了常見的 Chrome 名稱別名,讓 Playwright 以外的工具也能透過 google-chrome 與 CHROME_PATH 找到內建的 Chromium 瀏覽器。當雲端環境遭到刪除導致輸入框隱藏時,提示卡片新增了建立新工作階段的按鈕。執行 gh run view --log 與 gh api 時,可以直接取得 GitHub Actions 執行紀錄,不再卡在無法連線的轉址。建立 PR 失敗時會顯示具體原因或 GitHub 連結,搜尋連接器時也會主動提醒 Claude 目前結果僅涵蓋部分目錄。

官方原文

[Cloud sessions] Added a No repository option: a cloud session on an Anthropic-hosted environment can now start without picking a repository

[Cloud sessions] Added the usual Chrome names to cloud sessions, so tools other than Playwright can find the built-in Chromium through google-chrome and CHROME_PATH

[Cloud sessions] Added a New session button to the card shown when a cloud session's environment was deleted, where the message box is hidden

[Cloud sessions] Fixed reading GitHub Actions logs in cloud sessions: gh run view --log and gh api log requests now get the log in most environments, not an unreachable redirect

[Cloud sessions] Improved most Create PR failure messages in cloud and Remote Control sessions: they now give the reason or a link to GitHub instead of saying Try again

[Cloud sessions] Changed connector search results to tell Claude that the search covers only part of the connector directory

08

遠端控制加速休眠喚醒重連,指名遺失路徑與並行目錄

透過遠端控制(Remote Control)連線到其他主機寫程式時,電腦休眠常常讓連線中斷或狀態錯亂。遠端工作階段在暫停或電腦休眠喚醒後,重新連線的速度有了顯著提升。連線失敗後,/remote-control 不會再把該工作階段誤標為可用狀態。當工作階段的工作資料夾不存在時,不會再噴出語意不清的錯誤,改在錯誤訊息直接指明缺少哪一個資料夾。在終端機分支的衍生分支未指定標題時,預設名稱會清晰標記為 名稱 (fork 2) 格式。若在同一環境並行檢出同一個儲存庫,選單列表不再顯示一模一樣的項目,改為各自列出所屬的資料夾名稱以利辨識。

官方原文

Fixed /remote-control showing a session as available after a failed connection

Improved how fast remote sessions reconnect after a pause or sleep

Remote Control: Fixed a misleading "spawn error: ENOENT" when a session's working folder is missing; the error now names the folder

Remote Control: Improved the title a fork of a terminal fork is created with when the app doesn't set one: "Name (fork 2)"

[Remote Control] Fixed side-by-side checkouts of one repository looking identical in the environment menu's Remote Control rows; each now shows its own folder name

09

背景子代理防止快取過期,工作流程恢復不重複執行

當你派出子代理(subagent)在背景執行繁重的編譯或測試時,長時間運作的快取狀態有了更好的保護機制。在所有雲端平台上,背景子代理若執行 shell 指令超過 3 分鐘,會自動將指令移至背景執行,避免提示詞快取(prompt cache,把算過或查過的結果暫存起來直接用)因等待過久而過期。在 Bedrock、Vertex、Foundry 或關閉遙測的環境中,若快取尚未預熱,等待子代理回應的進度摘要最長可等待 5 分鐘。當訊息被標記且切換模型設為每次詢問時,子代理會停下來等待,不會自作主張切換模型。工作流程(workflows)遇到用量上限後恢復執行時,不會重新跑一次已經完成的代理。背景子代理執行期間,畫面也不會再每隔 30 秒就重複跳出扣除使用點數的提示。

官方原文

Fixed the "Now using usage credits" notice reappearing about every 30 seconds while a background subagent is running

Fixed workflows re-running finished agents when resumed after a usage limit

Changed subagents to stop instead of switching models when "Switch models when a message is flagged" is set to "Ask each time"

Changed background subagents to move a shell command to the background after 3 minutes on all providers, so the prompt cache doesn't expire while it runs

Changed subagent progress summaries on Bedrock, Vertex, Foundry, or with telemetry off: on a cold prompt cache, one can now wait up to 5 minutes for the subagent's pending response

10

封鎖規則延伸至官方伺服器,外掛權杖更新防登出

當你串接外部工具或擴充套件市集時,工具驗證與安全封鎖規則有了多項關鍵修正。deniedMcpServers 的網址封鎖項目,現在也會封鎖上游網址相符的 Anthropic 官方伺服器,以及雲端或自架執行器上獲分配獨立網址的連接器。在工具尚未載入完成就發出呼叫時,錯誤訊息現在會附帶傳回該工具的輸入架構。在雲端工作階段輸入 /mcp 時,不會再計入模型無法使用的工具,列表每行會明確標記實際可用數量。若 stdio 伺服器在版本探測時結束,不再於每次啟動都重新探測,若在 3 秒內異常終止也會鎖定在舊版握手 7 天。修正了外掛驗證自訂市集檔名的不一致,並確保外掛權杖(token,授權令牌)更新儲存完成後指令才結束,避免下次啟動時被強制登出。

官方原文

Fixed claude plugin commands exiting before a slow token refresh was saved, which could sign you out on the next run

Fixed claude plugin validate passing a custom-named marketplace file that claude plugin marketplace add rejects

Fixed stdio MCP servers that exit on the version probe being re-probed on every start; a server that dies in under 3s for its own reason is also pinned to the legacy handshake for 7 days

Fixed /mcp in cloud sessions counting tools the model can't use; a server's row now shows how many of its tools are available

Improved MCP tool errors: a call made before the tool is loaded now returns its input schema

Changed deniedMcpServers URL entries to also block Anthropic-provided servers whose upstream URL matches, and connectors in cloud sessions and on self-hosted runners, where the session is given the connector's own URL; otherwise deny a connector by name

11

自動清理保留活躍執行檔,版本更新遇網路斷線即刻重試

長時間在背景維持守護行程或自架節點時,程式升級曾可能誤將執行中的主程式刪除。以前在自動更新或舊版本清理時,系統可能會移除仍在運行的二進位檔案,導致遠端控制主機、背景守護行程(daemon)與自架執行器無法開啟新工作階段並拋出 spawn ENOENT 錯誤。現在清理機制會正確識別執行中的進程並予以保留。就算該行程是由其他使用者身分啟動,例如使用 sudo claude 留下的程序,也不會再被當作無效行程而刪除執行檔。自動更新的可靠度也有所提升。在驗證新版本發行資訊時,若遇到短暫的網路失敗,現在會立刻重新嘗試,不必苦等下一次檢查週期。⟦像清潔隊整理倉庫時先核對出勤名牌,只要還有同仁在現場值勤,就算換了班次或隸屬不同單位,手上的工具箱就不會被當成垃圾清空。⟧

官方原文

Fixed claude remote-control hosts, the background daemon and self-hosted runners failing to start new sessions (spawn ENOENT) after an update or version cleanup removed the binary of a still-running process

Fixed a running Claude Code process owned by another user (for example one left by sudo claude) being treated as dead by version cleanup, which could delete its binary

Improved auto-update reliability: a brief network failure while verifying a release is now retried right away instead of waiting for the next check

12

權限提示避免按鍵誤判,託管代理預設啟用風險評估

授權工具執行指令時,若是手速太快或系統彈出提示稍有延遲,常容易誤觸危險操作。以前剛發送訊息或慢速提示尚未顯示前敲擊的按鍵,會意外回答後續彈出的權限確認,現在這個誤觸問題已經修正。/permissions 的規則詳情、內建規則與刪除確認畫面改用標準對話框;在該畫面連續按兩次 Ctrl+C 會返回或取消,不再直接退出整個程式。執行 /claude-api managed-agents-onboard 為託管代理(Managed Agents)設定時,新代理的內建工具與快速入門範本的 MCP 工具,預設會套用 auto 權限政策,對齊 Claude Console 的安全標準。如果想完全放行,也可以明確指定無須詢問直接執行。

官方原文

Fixed permission prompts being answered by keys typed just after sending a message, or before a slow prompt appeared

Changed the /permissions rule details, built-in rules and delete confirmation views to use the standard dialog; pressing Ctrl+C twice there now goes back or cancels instead of quitting

Changed /claude-api managed-agents-onboard to give a new agent's built-in tools, and a quickstart template's MCP tools, the auto permission policy ("Judge risky actions") by default, matching the Claude Console; say "run without asking" to opt out

13

手機端精確同步執行狀態,推播通知不再重複發送

出門在外用手機查看正在進行的雲端任務時,對話狀態與即時推播現在更加準確。以前在 iPhone 應用程式中,若雲端工作階段在工具呼叫時被截斷,或在移除被拒絕的圖片與文件後,畫面上會誤將仍在運算中的對話標記為已結束。現在狀態顯示會緊跟實際執行進度。當 Claude 在呼叫 PushNotification 推播通知時若漏帶 status 狀態欄位,修復了系統發出重複通知的問題。介面上的提示訊息也做了文字調整,將原本只在終端機有效的按 2 改為通用的請重試,讓行動裝置與網頁環境的使用者不會感到困惑。⟦恰似外送 App 的進度追蹤,餐點還在路上烹調就不會提早打勾通知已送達,也不會在路途中連續狂響兩次同樣的推播。⟧

官方原文

Fixed the iPhone app showing a cloud session's turn as finished while it kept running, after a response was cut off at a tool call or a refused image or document was removed

Fixed a duplicate notification when Claude left the status field out of a PushNotification call

Improved You should know toasts to say "try again" instead of "press 2", which only works in the terminal

14

編輯器終端停止自動安裝外掛,圖檔過大回報實際像素

在各類整合開發環境與日常對話介面中,幾項指令操作與提示訊息迎來了優化調整。當直接在整合開發環境(IDE)的內建終端機啟動時,Claude Code 不再自動安裝或更新編輯器擴充套件;想安裝時請改在外部終端機輸入 /ide 或直接使用編輯器的擴充套件管理面板。在用量上限選單中點選向管理員申請更多額度時,發送請求改為一步完成。當一次傳送超過 20 張圖片且遇到圖片尺寸過大時,錯誤訊息不再死板標記限制為 2000 像素,而是顯示 API 真正的像素上限。執行 /design revoke 撤銷設計授權時,若後端請求回傳 404 錯誤,不會再誤報為撤銷成功。

官方原文

Fixed /design revoke reporting success when the request failed with a 404

Fixed the error for a too-large image in a request with more than 20 images always saying the limit was 2000px; it now shows the API's limit

Improved "Ask your admin for more usage" in the usage limit menu to send the request in one step

Changed Claude Code to no longer install or update the IDE extension when started in an IDE terminal; use /ide from an outside terminal or your editor's extensions view

修正 7 項

15

編輯器外掛停止無效重啟迴圈,修復錯誤橫幅與登入提示

在 VS Code 裡使用 Claude Code 時,遇到組織設定阻擋登入曾可能引發背景資源浪費。以前若視窗登入遭到組織設定拒絕,擴充套件會在背景每分鐘不斷啟動新的 Claude Code 行程,現在這個無窮喚醒問題已經修好。當聊天面板的錯誤橫幅出現超長單字時,不會再因為排版溢出而把關閉按鈕擠出可視範圍之外。登入狀態檢查失敗時,登入畫面現在會直接顯示 Claude Code 終端機實際印出的錯誤內容,讓排查帳號權限或網路問題更加直覺。⟦就像大樓門禁卡感應失效時,警衛機不會每分鐘重複嘗試刷卡並發出警報,而是一次把失敗原因印在螢幕上。⟧

官方原文

[VSCode] Fixed a window whose sign-in the organization's settings refuse starting a new Claude Code process in the background every minute

[VSCode] Fixed a long word in the chat panel's error banner pushing its close button out of view

[VSCode] Improved the sign-in screen to show what Claude Code printed when its sign-in status check fails

16

重啟工作階段保留執行目錄,確保訊息佇列與環境變數

遇到網路中斷或服務重啟時,雲端與自架執行器上的工作階段能更精準地回復到中斷前的狀態。重啟後核准的 shell 指令,現在會在當初要求執行的目標資料夾中執行,不再錯誤退回工作階段的起始目錄;若無法進入該目錄則不會執行。重啟後若核准的連接器工具無法使用,系統會主動告知 Claude。當雲端服務因故暫時拒絕上傳數分鐘時,對話輪次不會在半途被迫停止。修復了 Setup 掛鉤寫入 CLAUDE_ENV_FILE 的變數無法傳遞給 Bash 工具的問題。遇到 API 錯誤重啟後,系統不會再把舊的失敗訊息插隊發送在排隊的新訊息之前。在讀取大圖或重試工具呼叫後立刻重啟,中斷的對話輪次也不會再被丟棄。

官方原文

Fixed a shell command approved after a self-hosted runner or cloud session restart running in the session's start folder, not the folder it was asked in; if that folder can't be entered, it is not run

Fixed Claude not being told when an approved connector tool was unavailable after a cloud session restart

Fixed cloud sessions being stopped in the middle of a turn when the service refuses uploads for several minutes

Fixed variables a Setup hook writes to CLAUDE_ENV_FILE not reaching the Bash tool in some cloud sessions

Fixed a restarted session re-sending a message that failed with an API error, ahead of the newer message waiting behind it

Fixed a restarted session dropping its interrupted turn when the restart came right after Claude read a large image or retried a tool call

17

無頭模式如實輸出失敗資訊,停止指令精確取消後續訊息

使用無頭模式(headless,沒有終端機視窗或視覺介面的執行模式)或 SDK 串接時,程式必須能正確掌握執行成敗。執行自訂斜線指令(slash command)若發生失敗或屬於 Claude 專用指令,在 claude -p 與 Agent SDK 中不會再一片空白,而是印出錯誤資訊。當擴充(mod)掛鉤了 turn.step,若中途發生 API 錯誤導致回覆被切斷,或執行被主動停止,工作階段不會再被誤報為成功結束。在切換模型後立刻送出訊息的狀況下,送出 Stop 指令會正常取消或停止該訊息,不再讓它在背景繼續執行。非互動工作階段因閒置而結束時,原本已經手動刪除的對話紀錄不會再帶著最後一次提示詞被重新建立。

官方原文

Fixed custom slash commands that fail, or that only Claude can invoke, printing nothing in claude -p and SDK sessions

Fixed claude -p and Agent SDK sessions reporting success when an API error cut off a reply while a mod hooked turn.step

Fixed a message sent right after a model change still running after Stop in headless sessions: Stop now cancels or stops it as it would a queued message

Fixed a deleted session transcript being re-created with its last prompt when an idle non-interactive session exited

Fixed a mod's turn.step hook making a stopped reply finish as a success in headless runs

18

延續對話不再丟失紀錄,閒置自動壓縮確保精確摘要

長時間反覆與 Claude 討論同一專案時,對話歷史的延續性與記憶體瘦身至關重要。修復了 2.1.314 引入的迴歸問題:當工具呼叫格式錯誤且重試次數耗盡時,使用 --continue 參數有時會遺失前半段對話紀錄。當工作階段因閒置觸發自動壓縮時,系統不再誤將普通回覆當作總結,確保替換後保留的是真正的對話摘要。移除了 2.1.288 版專門用來相容舊版的暫時性修復。現在恢復執行在 2.1.286(含)以前建立的對話時,先前殘留的思考區塊可以直接捨棄,不再強制保留。⟦跟裝訂厚重的會議記錄一樣,以前重新裝訂若遇到缺頁會把整本筆記扔掉,現在妥善收錄原始細節,閒置歸檔時也會確實濃縮成重點摘要。⟧

官方原文

Fixed --continue sometimes losing the earlier conversation after a malformed tool call's retries ran out (regression in 2.1.314)

Fixed idle compaction replacing a conversation with a reply that was not a summary

Removed the 2.1.288 fix that kept the model's earlier thinking when resuming a conversation started on 2.1.286 or earlier; that thinking can now be dropped

19

macOS 終端記憶體洩漏修復,原生 Bash 提交代碼更穩定

在 Mac 電腦上讓 Claude 批次執行大量指令時,終端機的效能與穩定度獲得了針對性提升。修復了 macOS 環境下執行大量 Bash 指令時記憶體持續飆高導致工作階段卡頓凍結的問題。當終端機的 Bash 工具調用 macOS 系統內建的 /bin/bash 時,改善了執行 Git 提交與建立拉取請求的可靠度。在背景 shell 詳細資訊對話框保持開啟的狀態下,以前執行時間會停滯不動,現在視窗內的執行時間碼會即時更新。⟦如同清理辦公桌上的草稿紙,以前每交代助理跑一趟差事就留下一堆未銷毀的暫存單據,堆到桌子放不下;現在差事辦完立刻歸位,桌面始終保持清爽。⟧

官方原文

Fixed macOS sessions with many running Bash commands stalling while memory grew

Fixed the runtime in background shell details not updating while the dialog is open

Improved the reliability of git commits and pull request creation when the Bash tool runs macOS's built-in /bin/bash

20

憑證存放區毀損不阻擋連線,多帳號登入不再互相干擾

企業環境常會自訂安全憑證或要求全體同仁綁定特定組織 UUID。當環境變數 NODE_EXTRA_CA_CERTS 指向的憑證存放區(certificate store,系統存放根憑證的地方)檔案為空、非 PEM 格式或開頭包含毀損憑證時,以前會導致所有連線直接失敗。現在會主動略過損壞部分並載入其餘可讀的根憑證,同時在標準錯誤輸出警示。在啟用了 forceLoginOrgUUID 強制組織原則的主機上,修正了使用 setup-token 產生的權杖明明隸屬合規組織卻在啟動時被拒絕的問題。修復了同台電腦上其他帳號先前儲存的 allowedProviders 允許提供者清單,導致新工作階段在啟動時被錯誤拒絕的問題。

官方原文

Fixed sessions being refused at startup by an allowedProviders list that another login on the same machine had stored

Fixed every connection failing when the NODE_EXTRA_CA_CERTS file is empty, not PEM, or starts with a damaged certificate: readable certificates are now used, with a warning on stderr

Fixed tokens from setup-token being refused at start on machines with forceLoginOrgUUID, when the token belongs to a permitted organization

21

標籤管理修正鍵盤焦點,審查分析頁面網路失敗自動重試

管理後台與專案審查儀表板在面對網路連線不穩或使用輔助技術時,操作體驗更加可靠。在 Claude Tag 管理設定中,修復了鍵盤焦點與螢幕報讀器的朗讀內容;在連線表單中按下 Escape 鍵時,只會關閉當前表單,不會再連同外層的新增對話框一起關掉。程式碼審查(Code Review)的分析頁面現在若遇到伺服器異常或網路中斷,會自動重新嘗試載入一次;若仍無法載入,會顯示包含重試按鈕的提示橫幅,取代原本一片空白的無效資訊卡。⟦像在公文櫃裡推回小抽屜,不會連帶甩上外層大門;刷卡機連線逾時也會主動重試一次,失敗才提示重試,不再讓整個螢幕空白發呆。⟧

官方原文

[Claude Tag] Fixed keyboard focus and screen reader announcements in Claude Tag admin setup; pressing Escape in the connect form no longer also closes the Add dialog

[Code Review] Improved the Code Review analytics page to retry once after a server or network failure, then show a Try again banner instead of empty cards