繁體中文

問題修復

長工作階段不再定期忘掉前文

長工作階段裡請 Claude 處理複雜工作,最怕它途中重新整理工具說明,連延伸思考的脈絡也跟著掉了。

先前這種提示詞快取(把已處理內容暫存起來直接用)失效大約每小時發生一次。帳號進入用量超額後再用 --resume 接續時,ScheduleWakeup 的定義也固定了,第一輪不會因此整份重算。

新功能

受限模式只留下較安全的工具

想讓 Claude Code 在較窄的範圍內工作,可直接啟動 claude --restricted,或執行 CLAUDE_CODE_RESTRICTED=1 claude。它會移除能執行指令或程式碼的內建工具,也移除 WebFetch;若在 --tools 明確點名,該工具仍可保留,所以這不等於完全斷網。檔案工具只能碰工作目錄,bypassPermissions 會被拒絕,user、project、local 三種設定檔都會忽略。

新功能

每個代理可指定提示詞保存期

不同代理需要保留提示詞多久,現在能寫進各自的代理檔頭。

experimental.cacheTtl 可設為 "5m" 或 "1h",代表提示詞快取(把已處理內容暫存起來直接用)的存活期。只有未另外設定子代理 TTL 時,這個每代理值才會生效。可複製以下片段到代理檔頭:

---
name: reviewer
experimental:
  cacheTtl: "1h"
---
新功能

自架執行器可改用好認的標籤

一排自架執行器若都只顯示主機名稱,管理時不一定看得出各自的用途。現在可用 --client-label 覆寫註冊標籤;不指定時仍以主機名稱為預設。直接執行:

claude self-hosted-runner --client-label ci-box-3

也能先設環境變數(程式啟動時讀取的外部設定):

export SELF_HOSTED_RUNNER_CLIENT_LABEL=ci-box-3

兩種寫法都會覆寫註冊標籤。

新功能

受管設定抓不到時會說明原因

公司集中下發的設定若沒載入,使用者以前只看到結果,難以判斷從哪裡查起。

現在開機會先顯示警告;/doctor 與 /status 也會多一行診斷,說明載入失敗,或為何根本沒有抓取。後者涵蓋 Bedrock、Vertex、第三方供應商,以及自訂 ANTHROPIC_BASE_URL。這些訊息不會替你修設定,但會把排查起點直接放到畫面上。

效能優化

例行環境變數不再要求核准設定

管理員調整 client-side timeout、MCP startup-mode 或 stream-watchdog 的環境變數後,Claude Code 不會再跳出設定核准提示。環境變數是程式啟動時讀取的外部設定;這次原文沒有公布各自的確切變數名稱,因此不該自行猜名稱照抄。改動只縮減這幾類受管設定的確認干擾,沒有說其他設定也免核准。

新功能

大型儲存庫推送前先提醒 workflow 權限

用 /web-setup 準備 GitHub 流程時,如果 GitHub CLI token(命令列工具使用的授權令牌)缺少 workflow scope,畫面現在會先警告你。scope 是這張令牌被允許做的事。缺少它時,對非常大的儲存庫執行 push 可能被拒絕;原文說的是「可能」,不是每次都會失敗,也不是 /web-setup 會自動補權限。

新功能

企業成員可向管理員申請提高用量

企業組織的成員碰到用量上限時,多了一個清楚的申請入口:/usage-credits 會讓你向管理員要求提高上限。適用對象是透過 AWS Marketplace 計費、自助企業版與企業試用的組織。另一方面,限流(短時間請求太多而被暫緩)、用量與快速模式訊息,若偵測到你的組織沒有這個指令,就不再叫你執行它;例如管理員用 DISABLE_EXTRA_USAGE_COMMAND 隱藏時也算。

新功能

跨工作階段傳訊支援更多環境

同一台機器上的工作階段,現在可在 Bedrock、Vertex、Foundry,以及關閉遙測(回傳運作資料供觀察)的情況下使用 SendMessage 與 ListAgents。

預設 /tmp 無法使用時,備援位置是每位使用者私有的 /tmp 目錄,通知與 /status 會說明實際目錄,方便修正。用輸入法打出的韓文等非拉丁名稱,如今也能被其他工作階段的 @ 提及正確比對。

新功能

跨工作階段訊息的路由與信任更嚴謹

crossSessionInbound 若填成無效值,現在不會再靜默略過。這個鍵位於 ~/.claude/settings.json;原文沒有列有效值,因此只能確認要改成文件所列的有效值。user settings 會先警告並暫扣跨工作階段訊息,managed settings 則警告並拒收,兩者都維持到設定修正為止。Linux 使用者命名空間裡,對未對應擁有者的 root 等效信任縮到正規系統目錄。子代理替父工作階段向別處執行 SendMessage 時,回覆會回到父工作階段的對話。

問題修復

代理看板不再復活舊工作或重複開工

背景工作隔著關機再回來,最需要的是看清它真正停在哪。

新建工作階段也不再誤開較舊的對話,或吞掉你剛打的提示。若一個已停止的工作階段早已在另一個終端機接續,再從 claude agents 打開不會啟動第二個行程;該列會直接說它已在某個終端機開啟。

新功能

代理看板的鍵盤與按鍵分工恢復正常

在 Windows 從工作階段卸離後,或終端機分頁仍留在 win32-input-mode 時,claude agents 清單不再對鍵盤沒反應。派工輸入框的按鍵也分清工作:shift+enter 插入換行,ctrl+enter 才會派工並附加。

問題修復

代理看板啟動時的信任與資料防護補好

打開 claude agents 時,該問的工作區信任提示不會因設定了 CI 環境變數(程式啟動時讀取的設定值)就被跳過。PR 狀態快取(把查過的合併請求結果暫存起來)混入損壞資料時,啟動也不再崩潰。

問題修復

掛鉤答錯不再讓背景工作乾等

背景工作階段卡住不動時,原因若是 PermissionRequest 或 PreToolUse 掛鉤(特定事件發生時觸發的小程式)印出無效答案,claude agents 現在會直接列出掛鉤名稱與 schema error。schema error 是回覆結構不符規格。掛鉤 stdout(程式的一般文字輸出)若印出看似物件的 {…},卻不是合法 JSON,也不再被當成普通文字略過,而會回報掛鉤錯誤與解析訊息。

問題修復

背景工作樹不再被誤刪或誤判

工作樹(Git 讓同一專案平行開多份副本的功能)分支若已併入你簽出的預設分支,例如本機 main,即使還沒 push,claude agents 與 claude rm 也不會再以「有提交尚未推送」拒絕刪除。反過來,仍在執行的背景工作階段會持有工作樹的鎖。清理程序與 git worktree remove 會略過它,不會讓工作中的代理突然失去簽出內容。

問題修復

token 更新鎖碰撞時改成可重試

另一個 Claude Code 行程正在更新 token(用來證明登入狀態的授權令牌),剛好你的工作階段 token 又過期時,過去會直接把你送回登入畫面。

修正後,這次請求會以可重試的錯誤失敗。它沒有說請求會自動成功,也沒有改變登入方式;差別是短暫的更新鎖衝突不再被誤當成你需要重新登入。

問題修復

主控台登入不可用時改走 API 金鑰

有些機器已設定 ANTHROPIC_API_KEY,或使用 API 金鑰輔助程式,因此無法採用 /login 建議的 Console 登入。以前流程還沒顯示登入網址,就先以 OAuth 錯誤中止。現在 /login 會改走 API 金鑰登入,讓既有憑證來源能接手。這是登入方式的備援,不是上一張 token 更新鎖的重試機制。

問題修復

Claude apps 閘道登入與模型探索不再卡住

連上 Claude apps 閘道時,若流程需要受管設定的安全核准對話框,/login 不會再卡住。另一種情況是 apiKeyHelper 成為唯一憑證來源;過去即使開啟閘道模型探索,探索也完全不執行,現在已能運作。原文點名的環境變數是:

CLAUDE_CODE_ENABLE_GATEWAY_MODEL_DISCOVERY

這個環境變數(程式啟動時讀取的外部設定)只控制原文所說的模型探索。

問題修復

MCP 項目照真實範圍歸類

MCP(讓 AI 連接外部工具的協定)項目現在會按真實範圍顯示。專案 .mcp.json 中宣告 claude.ai connector type 的項目,不再列在受信任的「claude.ai」標題下,而會出現在真正範圍。型別宣告不會改變它的歸類。

問題修復

MCP 授權標頭遇 401 會照文件重試

MCP(讓 AI 連接外部工具的協定)server 的 headersHelper 若提供 Authorization header,遇到 401 時,現在會照文件重跑 helper 並重試呼叫,不再落入 OAuth discovery。

問題修復

桌面工作階段不再一到清理期就消失

你在 Claude Desktop 或 Cowork 開的工作階段,只要應用程式裡還留著,它的逐字稿就不會再因為例行清理而在 30 天後被刪掉。如果你的組織有自己的保留規則,仍照組織的走。想給這個「不刪」設一個期限,就到 ~/.claude/settings.json 加一行,數字換成你要保留的天數(範例是 30):

{"desktopSessionCleanupPeriodDays": 30}
問題修復

查看日誌結束後終端機會恢復原狀

跑完 claude logs 回到原本的終端機後,滑鼠操作或貼上方式不該還像停留在日誌介面。這次修正會在離開時關掉三種先前殘留的模式:mouse tracking、bracketed paste,以及 alternate screen。它們分別影響滑鼠事件、貼上內容的邊界標記與終端機使用的替代畫面。修正只保證 claude logs 不再把這些模式留著,沒有改你的其他終端機設定。

問題修復

終端機文字照原字排版且對齊

終端機裡幾個看似小問題,都指向同一件事:文字應照原字顯示,欄位也該站在正確位置。

/model 與快速模式切換通知中的模型名稱改用程式碼樣式,因此 [1m] 這類字尾會按字面顯示,不再變連結。信任對話框的儲存庫權限規則很長時,不再因從 emoji 中間截斷而出現亂碼。開機警告也不再比其餘逐字稿右移一欄。

問題修復

權限模式指示器不再被退出提示遮住

你按下 ctrl+c,接著立刻按 shift+tab 切換權限模式時,畫面會同時需要顯示退出提醒與權限狀態。以前「Press Ctrl-C again to exit」提示會蓋住權限模式指示器,讓人無法確認剛才是否切換成功。現在兩者不再互相遮擋;修正的是這個緊接按鍵的顯示順序,沒有改 ctrl+c 或 shift+tab 本身的功能。

問題修復

敏感檔案的暫存副本不再上雲

用 /ultrareview 或從本機播種雲端工作階段時,未提交修改可能藏在編輯器自動留下的暫存、臨時或備份副本。現在 prod.env 類檔案、*.tfvars,以及憑證檔的這些副本都不會上傳,例如 key.pem.tmp、id_rsa.swo;修改會留在你的機器上。這項修正鎖定的是這些敏感檔案及其副本,不代表所有未提交檔案一律不上傳。

新功能

Ultrareview 啟動前先查 GitHub 存取權

準備執行 /ultrareview <PR#> 時,Claude Code 會先確認與 Claude 帳號連結的 GitHub 帳號能否存取該儲存庫。若權限不符,畫面會在啟動前說明如何修正,不必等雲端工作階段建立後才失敗。檢查的是「已連結的 GitHub 帳號」與目標儲存庫之間的存取關係;不是只看你本機目前登入哪個帳號。

問題修復

Remote Control 重連後補回最新畫面

Remote Control 工作階段在 CLI 靜默重連後,連線裝置偶爾會停在舊畫面:該出現的權限提示沒來,最新訊息也看不到。

這個偶發同步問題已修正,裝置會重新看到權限提示與最新訊息。修正針對 CLI 靜默重連後的顯示缺漏,原文沒有宣稱所有 Remote Control 連線問題都因此解決。

問題修復

Remote Control 前方有全域旗標也能讀參數

包裝程式有時會在 claude remote-control 子命令前插入選項,使用者也可能先放全域旗標。過去只要前方多了這些內容,子命令自己的 --spawn、--name 等旗標就可能被拒絕。現在解析順序已修正,前面的全域旗標或包裝程式注入選項,不會妨礙 remote-control 讀取自己的旗標。

問題修復

容器憑證尚未可讀時雲端工作不再失敗

雲端工作階段啟動時,容器裡的工作階段憑證可能還處於讀不到的短暫過渡期。以前偶爾會因此直接啟動失敗;現在流程會處理這段先後差,避免把「憑證尚未可讀」當成最終失敗。原文只說修正啟動時的偶發問題,沒有公布等待多久、重試幾次,也沒有表示無效憑證會被接受。

問題修復

VSCode 找不到舊對話就直接開新的

VSCode 聊天分頁若對應的工作階段從未存檔,本來沒有舊對話可載入,卻會一直卡在「No conversation found」。現在遇到這個條件,分頁會直接建立新對話,讓你可以開始輸入。修正只針對「從未存檔」的工作階段,不是把遺失的歷史內容找回來;畫面也不會再停在一個無法前進的錯誤狀態。

新功能

Workflow 工具說明大幅瘦身

Workflow 工具每次出場,都會把自己的說明帶進提示詞。

token(AI 處理與計費的文字單位)占用因此變小,而腳本撰寫參考資料沒有消失,只是移到技能裡。這項改進講的是 Workflow 工具的提示詞占用,不是工作流程執行速度或輸出品質的數字保證。

新功能

PR 沒變時少查 GitHub,有動作就刷新

提示列上的 PR 徽章需要向 GitHub 查狀態,但合併請求沒有變動時,反覆查同一答案只會增加請求。現在未變動期間會降低檢查頻率;一旦你 push,或執行 gh pr 指令,徽章仍會立刻刷新。這不是取消自動檢查,也不是讓所有更新都延後,而是把明確會改變 PR 的動作保留為即時觸發點。

新功能

Loop 的自由節奏模式全面可用

/loop 現在不必因模型供應環境不同而少一種運作方式。

自訂節奏的動態模式與不帶提示的自主預設,現在一律可用,也包含 Bedrock、Vertex、Foundry。這項變更是把既有模式的可用範圍拉齊;原文沒有新增其他 /loop 模式,也沒有指定哪一種節奏較快。

新功能

Anthropic 遙測錯誤不再冒充 OTel 問題

看到 [3P telemetry] OTEL diag error,維運人員很容易以為自己的 OTel collector(集中收集運作資料的服務)壞了,但失敗可能來自 Anthropic 自己的遙測匯出。現在這類失敗改在 debug 層級記成 [Anthropic telemetry],來源與嚴重度都更貼近實況。它沒有修復匯出失敗本身,而是避免把責任指向使用者的 OTel collector。

English

BUGFIX

Long sessions stop losing cached context

A long, complex Claude session could lose its extended-thinking context when tool definitions were rendered again after an OAuth token refresh.

The roughly hourly prompt-cache miss is fixed. ScheduleWakeup also keeps the same definition on the first --resume turn after an account enters usage overage, avoiding a full cache miss.

FEATURE

Restricted mode narrows tools and settings

Run claude --restricted, or CLAUDE_CODE_RESTRICTED=1 claude, when Claude Code should work within a narrower boundary. It removes built-in tools that execute commands or code and removes WebFetch, unless you explicitly name a tool in --tools; this is not a promise of no network access. File tools stay inside the working directory, bypassPermissions is refused, and user, project, and local settings files are ignored.

FEATURE

Each agent can set a prompt-cache lifetime

An agent can now carry its own prompt-cache lifetime in its frontmatter.

Set experimental.cacheTtl to "5m" or "1h". This per-agent value is used only when no subagent TTL setting has been configured. Copy this frontmatter example:

---
name: reviewer
experimental:
  cacheTtl: "1h"
---
FEATURE

Self-hosted runners can register a clearer label

A row of self-hosted runners labeled only by hostname can be hard to identify. Override the registration label with --client-label; hostname remains the default. Run:

claude self-hosted-runner --client-label ci-box-3

Or set the environment variable:

export SELF_HOSTED_RUNNER_CLIENT_LABEL=ci-box-3

Both forms override the registration label.

FEATURE

Managed-settings failures now explain themselves

A centrally managed setting could fail to load without giving users a useful starting point.

Startup shows a warning, while /doctor and /status add a line explaining the load failure or why settings were not fetched. The latter covers Bedrock, Vertex, third-party providers, and a custom ANTHROPIC_BASE_URL. It is diagnosis, not an automatic repair.

PERF

Routine managed-setting variables stop asking for approval

Changing the managed environment variables for client-side timeout, MCP startup-mode, or stream-watchdog no longer triggers a settings-approval prompt. The changelog does not provide their exact variable names, so there is no new name to copy from this card. The exemption is limited to those categories.

FEATURE

Web setup warns about a missing workflow scope

During /web-setup, Claude Code now warns if the GitHub CLI token lacks the workflow scope. Without that scope, a push to a very large repository can be rejected. This is a warning about a possible failure, not a claim that every push will fail, and /web-setup does not grant the scope for you.

FEATURE

Eligible enterprise members can request more usage

Members of eligible Enterprise organizations can now run /usage-credits to ask an administrator for a higher usage limit. Eligibility covers organizations billed through AWS Marketplace, self-serve Enterprise, and Enterprise trials. Rate-limit, usage, and fast-mode messages also stop recommending the command when the organization does not offer it, including when DISABLE_EXTRA_USAGE_COMMAND hides it.

FEATURE

Cross-session messaging reaches more environments

Sessions on the same machine can now use SendMessage and ListAgents on Bedrock, Vertex, Foundry, and when telemetry is disabled.

If the default /tmp cannot be used, messaging falls back to a private per-user /tmp directory; the notice and /status name it. Mentions also match non-Latin session names, including Korean entered through an IME.

FEATURE

Cross-session routes and trust become stricter

An invalid crossSessionInbound value is no longer ignored. The key lives in ~/.claude/settings.json; the changelog lists no valid values, so choose one from the documentation. User settings warn and hold cross-session messages, while managed settings warn and refuse them, in both cases until fixed. In Linux user namespaces, root-equivalent trust for unmapped owners is limited to canonical system directories. A reply to a subagent's SendMessage goes to the parent session conversation.

BUGFIX

Agent view stops reviving or duplicating old work

After a machine wakes, you need to know where background work really stopped.

A new session no longer opens an older conversation or drops the prompt you typed. Opening a stopped session already resumed in another terminal does not start a second process; its claude agents row says it is open in a terminal.

FEATURE

Agent board keyboard input and key roles work again

On Windows, the claude agents list responds to the keyboard again after detaching from a session or when launched in a terminal tab left in win32-input-mode. The dispatch input also gives its keys distinct jobs: shift+enter inserts a newline, while ctrl+enter dispatches and attaches.

BUGFIX

Agent board startup keeps its trust check and survives bad data

When claude agents opens, setting the CI environment variable no longer skips the workspace trust prompt. A malformed entry in the PR-status cache also no longer crashes launch.

BUGFIX

Bad hook output no longer leaves agents waiting

A background session no longer waits silently when a PermissionRequest or PreToolUse hook prints an invalid answer. Its claude agents row names the hook and schema error. If hook stdout prints a {…} object that is not valid JSON, it is no longer accepted as plain text; Claude Code reports a hook error with the parse message.

BUGFIX

Active worktrees stop being removed or misjudged

If a worktree branch is already merged into the checked-out default branch, such as local main, claude agents and claude rm no longer refuse deletion merely because that merge has not been pushed. Meanwhile, a running background session holds its worktree lock. Cleanup and git worktree remove leave it alone instead of taking away its checkout.

BUGFIX

Token-refresh contention becomes retryable

If another Claude Code process holds the token-refresh lock just as the current session token expires, you are no longer sent to the login screen.

The request fails with a retryable error. It is still a failed request, not a promise of automatic success; the temporary lock conflict is simply no longer mistaken for a lost login.

BUGFIX

Login falls back to an API key when Console sign-in cannot work

Some machines cannot use the recommended Console sign-in because ANTHROPIC_API_KEY or an API-key helper is set. /login used to stop with an OAuth error before even showing the sign-in URL. It now falls back to API-key sign-in and uses the credential path already available. This is a login-method fallback, separate from retrying token-refresh contention.

BUGFIX

Claude apps gateway login and discovery stop stalling

/login no longer hangs when connecting to a Claude apps gateway requires the managed-settings security-approval dialog. Gateway model discovery also runs when apiKeyHelper is the only credential source. The environment variable named in the changelog is:

CLAUDE_CODE_ENABLE_GATEWAY_MODEL_DISCOVERY
BUGFIX

MCP entries now follow their real scope

MCP entries now appear under their real scope. A project .mcp.json entry declaring the claude.ai connector type no longer appears under the trusted “claude.ai” heading. That type declaration does not change its classification.

BUGFIX

MCP authorization headers now retry as documented

When an MCP server’s headersHelper supplies the Authorization header and gets a 401, Claude Code now reruns the helper and retries the call as documented instead of entering OAuth discovery.

BUGFIX

Desktop sessions survive routine transcript cleanup

A session you opened in Claude Desktop or Cowork keeps its transcript as long as the app still holds it; routine cleanup no longer deletes it after 30 days. An organization retention rule, if you have one, still wins. To put a limit on that keep-alive, add one line to ~/.claude/settings.json and change the number to the days you want (30 is the example):

{"desktopSessionCleanupPeriodDays": 30}
BUGFIX

Claude logs restores terminal modes on exit

After claude logs exits, its terminal should no longer behave as if the log viewer were still open. Claude Code now switches off mouse tracking, bracketed paste, and the alternate screen in the terminal where the command ran. The fix concerns modes enabled by claude logs; it does not claim to replace other terminal preferences.

BUGFIX

Terminal text renders literally and lines up

Several terminal glitches had one theme: text should remain literal and columns should align.

Model names in /model and fast-mode notices render as code, so a suffix such as [1m] stays literal instead of becoming a link. Long repository-permission rules no longer show a garbled character when truncated inside an emoji. Startup warnings also align with the rest of the transcript instead of shifting one column right.

BUGFIX

Permission mode stays visible after Ctrl-C

Pressing shift+tab immediately after ctrl+c used to leave the permission-mode indicator hidden behind “Press Ctrl-C again to exit.” The indicator now remains visible, so you can see the selected mode while the exit hint is present. The fix changes this display overlap, not what ctrl+c or shift+tab does.

BUGFIX

Temporary copies of sensitive files stay local

/ultrareview and locally seeded cloud sessions no longer upload uncommitted edits hidden in swap, temporary, or backup copies of sensitive files. This covers prod.env-style files, *.tfvars, and credential-file copies such as key.pem.tmp and id_rsa.swo; they stay on your machine. The statement is specific to these files, not every uncommitted edit.

FEATURE

Ultrareview checks repository access before launch

Before /ultrareview <PR#> launches, Claude Code checks whether the GitHub account connected to your Claude account can access the repository. If not, it explains how to fix the connection before creating the cloud session instead of failing afterward. The check concerns the linked account's repository access.

BUGFIX

Remote Control catches up after reconnecting

After the CLI silently reconnected a Remote Control session, a connected device could remain on stale state: no permission prompt and no latest messages.

That occasional catch-up failure is fixed. The scope is the missing prompt and messages after silent CLI reconnection, not every possible Remote Control connection problem.

BUGFIX

Remote Control accepts its flags after global options

A wrapper may inject an option before the claude remote-control subcommand, and users may place a global flag there too. That prefix used to make remote-control reject its own flags, including --spawn and --name. The parser now accepts those flags despite the preceding options.

BUGFIX

Cloud sessions tolerate credentials that are still becoming readable

A cloud session could occasionally fail at startup because its container's session credentials were not readable yet. Startup now handles that transition instead of treating “not readable yet” as a final failure. The changelog gives no wait duration or retry count, and does not say invalid credentials are accepted.

BUGFIX

VS Code opens a new chat when no saved conversation exists

A VS Code chat tab could become stuck on “No conversation found” when its session had never been saved, meaning there was no old conversation to load. It now starts a new conversation so you can type. This does not recover missing history; it handles the specific never-saved state.

FEATURE

Workflow's built-in prompt becomes much smaller

The Workflow tool carries its description in the prompt whenever it is available.

The reference material was moved, not removed. This change reduces prompt footprint; the changelog makes no numerical promise about execution speed or output quality.

FEATURE

The PR badge polls less until the PR changes

The prompt-footer PR badge now checks GitHub less often while its pull request remains unchanged. A push or any gh pr command still refreshes it immediately. Automatic checking has not disappeared; explicit actions that can change the PR remain immediate triggers.

FEATURE

Loop's flexible pacing works across providers

/loop no longer loses an operating style because of the model provider.

Self-paced dynamic mode and the no-prompt autonomous default are always available, including on Bedrock, Vertex, and Foundry. This expands existing modes; it does not add another mode or declare one faster.

FEATURE

Anthropic telemetry errors identify their real source

[3P telemetry] OTEL diag error could make operators suspect their own OTel collector even when Anthropic's telemetry export had failed. These failures now log at debug level as [Anthropic telemetry], identifying the source and lowering the apparent severity. The export failure itself is not claimed to be fixed; the message no longer blames the user's collector.

原始 CHANGELOG

Original changelog長工作階段不再定期忘掉前文
Fixed a prompt-cache miss (and lost extended-thinking context) roughly once an hour in long sessions, caused by tool definitions being re-rendered after an OAuth token refresh
Fixed the `ScheduleWakeup` tool definition changing between a session and its `--resume` when the account had entered usage overage, causing a full prompt-cache miss on the resumed session's first turn
Original changelog受限模式只留下較安全的工具
Added `--restricted` (or `CLAUDE_CODE_RESTRICTED=1`): removes the built-in tools that run commands or code and `WebFetch` (unless named in `--tools`), keeps file tools inside the working directory, refuses `bypassPermissions`, and ignores user, project and local settings files
Original changelog每個代理可指定提示詞保存期
Added `experimental.cacheTtl` (`"5m"` or `"1h"`) to agent frontmatter: a per-agent prompt cache TTL used when no subagent TTL setting is configured
Original changelog自架執行器可改用好認的標籤
Added `claude self-hosted-runner --client-label <label>` (or `SELF_HOSTED_RUNNER_CLIENT_LABEL`) to override the label the runner registers with (default: hostname)
Original changelog受管設定抓不到時會說明原因
Added server-managed settings diagnostics: a startup warning when the settings fail to load, and a `/doctor` and `/status` line explaining a load failure or why they weren't fetched (Bedrock/Vertex/third-party provider, custom `ANTHROPIC_BASE_URL`)
Original changelog例行環境變數不再要求核准設定
Improved managed settings: client-side timeout, MCP startup-mode, and stream-watchdog env vars no longer trigger the settings-approval prompt
Original changelog大型儲存庫推送前先提醒 workflow 權限
Added a warning in `/web-setup` when the GitHub CLI token lacks the `workflow` scope, since pushes to very large repositories can be rejected without it
Original changelog企業成員可向管理員申請提高用量
Added `/usage-credits` for Enterprise organizations billed through AWS Marketplace, self-serve Enterprise, and Enterprise trials, so members can request a higher usage limit from their admin
Fixed rate-limit, usage, and fast-mode messages telling you to run `/usage-credits` when that command isn't available for your organization (e.g. hidden with `DISABLE_EXTRA_USAGE_COMMAND`)
Original changelog跨工作階段傳訊支援更多環境
Added cross-session messaging (`SendMessage` / `ListAgents`) between sessions on the same machine on Bedrock, Vertex, and Foundry, and when telemetry is disabled
Improved cross-session messaging: falls back to a private per-user `/tmp` directory when the default one can't be used, and the notice and `/status` name the directory to fix
Fixed @-mentions of other sessions not matching names typed with non-Latin characters (for example Korean entered through an IME)
Original changelog跨工作階段訊息的路由與信任更嚴謹
Fixed an invalid `crossSessionInbound` value being silently ignored: it now warns and holds cross-session messages (user settings) or refuses them (managed settings) until fixed
Changed cross-session messaging in Linux user namespaces: root-equivalent trust for unmapped owners is limited to canonical system directories
Changed `SendMessage` from a subagent to another session: the result now notes that any reply is delivered to the parent session's conversation, not to the subagent
Original changelog代理看板不再復活舊工作或重複開工
Fixed agent view resurrecting a weeks-old background session after the machine was off: such a session now shows as stopped at its real end, and opening it asks before resuming its saved conversation
Fixed agent view sometimes opening an older conversation, and dropping the typed prompt, when starting a new session
Fixed `claude agents`: opening a stopped session that you already resumed in another terminal no longer starts a second process on that conversation; the row now says it is open in a terminal
Original changelog代理看板的鍵盤與按鍵分工恢復正常
Windows: Fixed the `claude agents` list not responding to the keyboard after detaching from a session, or when launched in a terminal tab left in win32-input-mode
Changed shift+enter in the agent view dispatch input to insert a newline (matching the prompt); ctrl+enter now dispatches and attaches
Original changelog代理看板啟動時的信任與資料防護補好
Fixed `claude agents` skipping the workspace trust prompt when the `CI` environment variable is set
Fixed `claude agents` crashing on launch when the PR-status cache held a malformed entry
Original changelog掛鉤答錯不再讓背景工作乾等
Fixed background sessions waiting silently when a `PermissionRequest` or `PreToolUse` hook prints an invalid answer: the `claude agents` row now names the hook and the schema error
Fixed hooks silently treating a stdout `{…}` object that isn't valid JSON as plain text; it's now reported as a hook error with the parse message
Original changelog背景工作樹不再被誤刪或誤判
Fixed `claude agents` and `claude rm` refusing to delete a session ("has commits that are not pushed anywhere") when its worktree branch was already merged into your checked-out default branch (e.g. local `main`) but not yet pushed
Fixed a backgrounded worktree session losing its checkout: the background session now holds the worktree's lock while it runs, so cleanup and `git worktree remove` leave it alone
Original changelogtoken 更新鎖碰撞時改成可重試
Fixed being sent to the login screen when another Claude Code process held the token refresh lock while the session token had expired; the request now fails with a retryable error instead
Original changelog主控台登入不可用時改走 API 金鑰
Fixed the recommended Console sign-in in `/login` failing with an OAuth error before showing a sign-in URL on machines where it can't be used (for example when `ANTHROPIC_API_KEY` or an API key helper is set); it now falls back to the API-key sign-in
Original changelogClaude apps 閘道登入與模型探索不再卡住
Fixed `/login` to a Claude apps gateway hanging when the managed-settings security approval dialog was required
Fixed gateway model discovery (`CLAUDE_CODE_ENABLE_GATEWAY_MODEL_DISCOVERY`) never running when `apiKeyHelper` is the only credential
Original changelogMCP 項目照真實範圍歸類
Fixed `/mcp` listing a project `.mcp.json` entry that declares the claude.ai connector type under the trusted "claude.ai" heading; it now appears under its real scope
Original changelogMCP 授權標頭遇 401 會照文件重試
Fixed MCP servers whose `headersHelper` supplies the `Authorization` header falling into OAuth discovery on a 401 instead of re-running the helper and retrying the call as documented
Original changelog桌面工作階段不再一到清理期就消失
Fixed Claude Desktop and Cowork sessions disappearing after 30 days: the transcript cleanup now keeps desktop-written sessions while they are in the app (unless org policy manages retention); the new `desktopSessionCleanupPeriodDays` setting caps the exemption
Original changelog查看日誌結束後終端機會恢復原狀
Fixed `claude logs` leaving mouse tracking, bracketed paste and the alternate screen switched on in the terminal it was run from
Original changelog終端機文字照原字排版且對齊
Fixed model names in `/model` and fast-mode switch notices to render as code, so suffixes like `[1m]` display literally instead of as a link
Fixed the trust dialog's list of repo permission rules showing a garbled character when a long rule was cut off in the middle of an emoji
Fixed startup warnings (e.g. "N MCP servers need authentication") rendering one column right of the rest of the transcript
Original changelog權限模式指示器不再被退出提示遮住
Fixed the permission mode indicator staying hidden behind the "Press Ctrl-C again to exit" hint when you press shift+tab right after ctrl+c
Original changelog敏感檔案的暫存副本不再上雲
Fixed `/ultrareview` and locally seeded cloud sessions uploading uncommitted edits to `prod.env`-style and `*.tfvars` files, or to editor swap, temp, and backup copies of credential files (e.g. `key.pem.tmp`, `id_rsa.swo`); they now stay on your machine
Original changelogUltrareview 啟動前先查 GitHub 存取權
Improved `/ultrareview <PR#>` to check before launch that the GitHub account connected to your Claude account can access the repository, and to explain how to fix it, instead of failing after the cloud session starts
Original changelogRemote Control 重連後補回最新畫面
Fixed Remote Control sessions occasionally never showing a permission prompt or the latest messages on the connected device after the CLI silently reconnected
Original changelogRemote Control 前方有全域旗標也能讀參數
Fixed `claude remote-control` rejecting its own flags (e.g. `--spawn`, `--name`) when a global flag or a wrapper-injected option precedes the subcommand
Original changelog容器憑證尚未可讀時雲端工作不再失敗
Fixed cloud sessions occasionally failing at startup when the container's session credentials were not yet readable
Original changelogVSCode 找不到舊對話就直接開新的
[VSCode] Fixed a chat tab getting stuck on "No conversation found" when its session was never saved; it now starts a new conversation instead
Original changelogWorkflow 工具說明大幅瘦身
Improved the Workflow tool's prompt footprint: its description is now about 1k tokens instead of 5.7k, with the script-writing reference moved into a bundled `workflow-authoring` skill
Original changelogPR 沒變時少查 GitHub,有動作就刷新
Improved the prompt-footer PR badge to check GitHub less often while the pull request is unchanged; a push or a `gh pr` command still refreshes it right away
Original changelogLoop 的自由節奏模式全面可用
Changed `/loop`: self-paced dynamic mode and the no-prompt autonomous default are now always available, including on Bedrock/Vertex/Foundry
Original changelogAnthropic 遙測錯誤不再冒充 OTel 問題
Changed Anthropic telemetry export failures to log at debug level as `[Anthropic telemetry]` instead of `[3P telemetry] OTEL diag error`, so they are not mistaken for your OTel collector failing