spend: a standing order's model calls are counted as its firings
メンテナーはふだん 1 日以内に返信
まだ誰も着手していません。
評価
調査の方向性
internal/session/usage_spend.go の 613 行付近と internal/tui3/spendplace.go の 1513–1515 行付近から始めて、モデル呼び出しが表示される発火回数になるまでの流れを追跡します。1 回の発火に 2 回の呼び出しを与える tui3 spend-place テストを実行します。1 回の定期注文の発火後に、モデル呼び出しの回数にかかわらず、行が 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分
- マージ済み PR(30日)
- 747
環境構築
このプロジェクトの環境構築ファイルはまだ確認していません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- 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 日以内に返信