usage

usage 0.32.5

工具與目錄
在這頁

新功能 2 項

01

狀態列顯示快取失效原因,文件同步拿掉倒數說明

你在終端機使用 Claude Code 時,想知道快取為什麼失效。現在狀態列會在 prompt cache(提示快取,把對話紀錄暫存起來加速回應的機制)失效後的 10 分鐘內顯示原因,例如「快取:62% 剛失效:工具換了」。它涵蓋換模型、思考強度、快速模式、工具或系統提示變更、閒置超時等全部 17 種原因並支援五種語言,遇到不明原因時就不顯示;視窗太窄時會優先隱藏原因。⟦如同在餐廳結帳,以前優惠失效只默默收原價,現在帳單會印出是換了餐點或超時,讓你一眼看懂。⟧此功能需 Claude Code 2.1.260 以上;狀態列掛鉤(hook,特定事件發生時被觸發的小程式)升至 1.9 版並會在下次啟動時自動更新。說明文件也同步拿掉已不顯示的過期倒數計時。

官方原文

**Status line:** for 10 minutes after Claude Code's prompt cache misses, the cache segment says why, for example Cache:62% missed:tools changed. It covers all 17 causes Claude Code reports (model, effort, fast mode, tools, system prompt, idle past the 5-minute or 1-hour TTL, likely server-side, and more) in all five languages; an unknown cause is left out. The reason is the first part dropped when the line is too narrow. Requires Claude Code 2.1.260 or newer. The status line hook version is now 1.9, so installed copies update on the next app launch.

**README:** the prompt cache description now matches the status line, which no longer shows an expiry countdown.

02

發版前自動比對各工具格式,即時掌握上游結構變更

當各家 AI 工具頻繁更新時,讀取底層資料的解析程式常因官方改版而無聲失效。現在新增的 scripts/check_upstream.py 開發腳本,會在發布新版本前拿這台電腦上的真實檔案逐一驗證。檢查範圍涵蓋 Claude 狀態列與對話紀錄、Codex 工作階段與 state_6.sqlite 等新版資料庫、Grok 日誌以及監看的 Statuspage 元件。針對 Antigravity,它會確認對話資料庫與額度快取(把用量暫存於本機的記錄)是否正常。這套工具也會比對已安裝的掛鉤(hook,特定事件發生時被觸發的小程式)副本,檢查是否有原始檔修改卻漏改版號的狀況,每項檢查都會清晰回報 OK、NEW、BROKEN 或 NO_DATA。⟦跟工廠出貨前拿零件對齊模具一樣,以前只能等用戶回報規格壞了才補救,現在發版前就能自動揪出格式變更。⟧

官方原文

**Development:** scripts/check_upstream.py checks the formats usage depends on against the real files on this machine before a release: the Claude status line payload and transcripts, Codex sessions and SQLite files (including a newer-numbered file such as state_6.sqlite), the Antigravity conversation database and quota cache, the Grok log, installed hook copies (including a source edited without bumping its version), and the watched Statuspage components. Each check reports OK, NEW, BROKEN, or NO_DATA.

修正 1 項

03

側邊面板外框更省空間,修正背景工作與外掛驗證

在小螢幕或分割視窗下查看 Claude Code 側邊面板時,每一行的垂直空間都格外珍貴。現在面板各區塊的標題與數字改移至外框上緣,每個區塊都能省下一行,點擊標題也依然能自由收合區塊。⟦彷彿收納盒把分類標籤從隔層內移到外框上緣,以前標籤自佔一整行空間,現在貼齊邊框就能讓有限的螢幕多看幾行資訊。⟧以前背景工作列出少於四筆時,可能會少顯示一筆剛完成的工作,現在清單會確實列出。面板本身的測試在 Claude Code 2.1.289 上也重新通過,執行 claude plugin validate 指令時不再因狀態合約宣告而報錯。

官方原文

**Claude Code side pane:** each section's title and count now sit on the box's top border, saving one row per section. The title still collapses the section when clicked.

**Claude Code side pane:** the background jobs box could hide one recently finished job when fewer than four jobs were listed.

**Claude Code side pane:** the pane's own tests pass again on Claude Code 2.1.289, and claude plugin validate no longer fails on its state contract.