繁體中文

問題修復

成本估算在價格更新後自動校正,網頁面板不再無限重新整理

現在成本估算會自動追蹤最新價格,面板也不會再卡死在無限重整裡了。以前當系統剛啟動還沒抓到最新價格表時,會先用本機的預設價格幫你估算成本,但算完就把這個暫時的數字「寫死」在紀錄上,導致後來真正最新的價格表抓回來了,它也不會重算(這對 Codex 等不自帶價格的紀錄影響特別大);現在它學會不寫死數字了,一拿到新價格就會立刻校正。另外,網頁面板在更新資料(state injection,也就是把最新數據塞進畫面的過程)時如果一直失敗,以前會陷入「失敗、重整、又失敗」的無限迴圈卡死;現在它知道同一個資料重試幾次後就該放棄,不會再死心眼地一直重整(但如果是負責畫面的程序真的死掉,它還是會幫你重新啟動)。就像你點菜時菜單還沒印好,店員先用口頭報價並直接寫死在帳單上,後來發現降價了也不改;現在他只會先用鉛筆寫,拿到最新菜單就馬上幫你重算。而且遇到打不開的抽屜,他也不會再傻傻地一直狂拉到天黑了。

English

BUGFIX

Cost estimates correctly recalculate when prices update, and web panels avoid infinite reload loops

Cost estimates now automatically track live prices, and the web panels will no longer trap themselves in infinite reload loops. Previously, if the system estimated your cost using fallback prices before the live pricelist could be fetched, it would hard-code that temporary estimate into your local usage item. Even after the real prices downloaded, it refused to recalculate, causing chronically inaccurate cost estimates (especially for sources that don't embed their own costs, like Codex); it now smartly leaves the item alone, recalculating immediately whenever fresh prices arrive. Also, if the web panel repeatedly failed to update its data (state injection, the process of feeding fresh data into the UI), it used to trap itself in an infinite reload loop; it now gives up gracefully after a few tries with the same dataset (though it still auto-recovers if the actual rendering process crashes). It's like a waiter who jotted down an estimated price in pen while waiting for the new menu to be printed, and refused to adjust your bill when the actual prices came in lower; now they use a pencil and update it instantly. And when they face a jammed drawer, they no longer yank at it endlessly until the restaurant closes.

原始 CHANGELOG

Original changelog成本估算在價格更新後自動校正,網頁面板不再無限重新整理
**Estimated cost now recomputes after a pricing update**: a cost computed with fallback prices was written back and cached onto usage entries, so it was never recomputed once real prices loaded — leaving cost figures persistently off (mainly for entries without a source cost, e.g. Codex). The estimate is no longer written back, so it reflects updated prices immediately.
**Web panel no longer reloads endlessly when injection keeps failing**: if state injection failed repeatedly the panel would loop reloading; reloads per payload are now capped (WebContent-process crash recovery is unaffected).