Hacktoberfest 2026:維護者為十月標記出來的 issue,仍然開放、適合新手。 瀏覽 Hacktoberfest issue

spend: a standing order's model calls are counted as its firings

未關閉 適合新手
#1,678 0 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視

維護者通常 1 天內回覆

還沒有人認領這個 Issue。

評估

難度
2/5
預估耗時
1-3 小時
新手友好度
85/100
Issue 類型
缺陷
描述清晰度
描述清楚
活躍度
活躍
技術堆疊
go
領域
cli

研究方向

從 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:

  1. in 3 minutes, run date and tell me the time → accept the Run it then card with the one-time answer.
  2. Leave the window open until it fires and reports.
  3. Open the spend place (alt+5): the order's row says 2 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,通用步驟見我們的新手貢獻指南。

從這裡開始

  1. 先讀完整個 Issue,再讀專案的貢獻指南。
  2. 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
  3. Fork 儲存庫,在一個分支上完成修改。
  4. 送出 Pull Request,並在描述裡引用這個 Issue 編號。

Agent-Field/CodeAF 的其他 Issue

查看 Agent-Field/CodeAF 的全部 Issue

相似的 Issue

更多 Go Issue

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。