usage

usage 0.24.1

工具與目錄
在這頁

修正 1 項

01

修復 CPU 滿載過熱問題,程式啟動速度大幅提升

電腦不會再被兩個效能問題拖慢了。首先,如果你曾經用過一些系統價目表上沒有的冷門 AI 模型,以前系統在每次更新數字時,都會為了找它的價格,把整張上千筆的價目表從頭到尾翻過一遍,而且找不到還不會記取教訓,下一秒又重新翻一次,這會把你的處理器(CPU)操到滿載;現在系統學會了,如果找不到,它就會把這個名字記在黑名單,下次直接跳過。其次,以前每次重新開啟應用程式,系統都會把你全部的 Claude 對話歷史重新讀取一遍(歷史越長要等越久,有時要等 5 秒以上),因為它把這份記憶放在會揮發的記憶體裡;現在它懂得把讀過的結果存進硬碟裡了。就像是結帳店員以前遇到刷不出條碼的商品,每次都要把整本兩千頁的商品目錄重翻一遍,現在他終於懂得把沒建檔的品項貼在收銀機旁直接略過;而且以前他每天上班都要把你過去十年的消費明細重看一次才能開始工作,現在他只看今天的帳本就好了。

官方原文

**Menu bar could peg a full CPU core after launch on machines with unpriced models in their history**: pricing.py's model-to-price lookup ran a full linear scan of the entire LiteLLM pricing table for every history entry whose model wasn't in it, with no caching of the "not found" result — so every refresh re-scanned the same unresolvable models (e.g. sessions logged by a non-Anthropic/OpenAI backend) from scratch, thousands of times per refresh on machines with a lot of that history. The lookup is now memoized per pricing-table generation, so a given unresolvable model is only scanned once.

**Claude Code history reparsed from scratch on every relaunch**: history_loader.py's per-file JSONL parse cache only lived in memory, unlike the matching Codex-side cache added in 0.24.0, so every app restart — including auto-launch at login — paid the full history reparse again (measured 5+ seconds on a long-lived install). It now persists to disk the same way the Codex loader already does.