spend: a standing order's model calls are counted as its firings
維護者通常 1 天內回覆
還沒有人認領這個 Issue。
評估
研究方向
從 internal/session/usage_spend.go 第 613 行附近和 internal/tui3/spendplace.go 第 1513–1515 行附近開始,追蹤模型呼叫如何變成顯示的觸發次數。執行 tui3 spend-place 測試,該測試提供一次包含兩次呼叫的觸發。完成標準是:一次長期訂單觸發後,無論進行了多少次模型呼叫,該列都回報 1 次觸發。
由索引模型根據 Issue 內容生成。
描述
What happened
On dev and staging 461a43fb6 (2026-09-29), the spend place counts a standing order's model calls as its firings. A one-time scheduled task that fired once (one runs/0001 folder, one standing ledger entry) is listed with 2 firings, because that one firing made two model calls.
models-and-cost.md says a standing row's firings column reports how often it went off.
Replication
Field (real models, cheap model, < $0.02). Fresh home, a git repo, codeaf:
in 3 minutes, run date and tell me the time→ accept theRun it thencard with the one-time answer.- Leave the window open until it fires and reports.
- Open the spend place (
alt+5): the order's row says2 firings.
The label predates this wave (it is on main).
Where it goes wrong
internal/session/usage_spend.go (~613) sums model calls into SubjectSpend.Calls; internal/tui3/spendplace.go (~1513–1515) prints that count with the unit firings. Either count firings (from the standing ledger), or call the unit what it counts.
Acceptance
After one firing of a standing order that makes several model calls, the spend place's row says 1 firing (a tui3 spend-place test fed one firing with two calls, plus the steps above).
Found by the 2026-09-29 pre-release happy-path pass (staging lane 7, F-7.5).
- 主要語言
- Go
- 星號
- 115
- 分支
- 14
- 平均合併
- 11 小時 32 分鐘
- 30 天內合併 PR
- 747
環境準備
我們還沒有檢查這個專案的環境設定檔。先看它的 README,通用步驟見我們的新手貢獻指南。
從這裡開始
- 先讀完整個 Issue,再讀專案的貢獻指南。
- 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
- Fork 儲存庫,在一個分支上完成修改。
- 送出 Pull Request,並在描述裡引用這個 Issue 編號。
Agent-Field/CodeAF 的其他 Issue
-
難度 2/5 1-3 小時 新手友好度 88/100
Agent-Field/CodeAF#1679 ·
維護者通常 1 天內回覆
-
area:chat bug sev:papercut
難度 2/5 1-3 小時 新手友好度 86/100
Agent-Field/CodeAF#1592 ·
維護者通常 1 天內回覆
-
area:chat feature
難度 2/5 1-3 小時 新手友好度 88/100
Agent-Field/CodeAF#1510 ·
維護者通常 1 天內回覆
-
area:tests bug
難度 2/5 1-3 小時 新手友好度 82/100
Agent-Field/CodeAF#1489 ·
維護者通常 1 天內回覆
-
area:chat bug good first issue sev:papercut
難度 2/5 1-3 小時 新手友好度 78/100
Agent-Field/CodeAF#1470 ·
維護者通常 1 天內回覆
查看 Agent-Field/CodeAF 的全部 Issue
相似的 Issue
-
難度 2/5 1-3 小時 新手友好度 78/100
維護者通常 1 天內回覆
-
status: ready for dev
難度 1/5 1-3 小時 新手友好度 92/100
hyperledger-labs/fabric-smart-client#2004 ·
維護者通常 1 天內回覆
-
難度 2/5 1-3 小時 新手友好度 84/100
維護者通常 1 天內回覆
-
bug
難度 2/5 1-3 小時 新手友好度 84/100
維護者通常 1 天內回覆
-
難度 2/5 1-3 小時 新手友好度 78/100
apache/datasketches-go#189 ·
維護者通常 1 天內回覆