Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

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

Đang mở Phù hợp với người mới
#1,678 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

Chưa có ai nhận issue này.

Đánh giá

Độ khó
2/5
Thời gian dự kiến
1-3 giờ
Mức phù hợp với người mới
85/100
Loại issue
Lỗi
Độ rõ ràng
Đặc tả rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
go
Lĩnh vực
cli

Hướng nghiên cứu

Bắt đầu với internal/session/usage_spend.go quanh dòng 613 và internal/tui3/spendplace.go quanh các dòng 1513–1515 để theo dõi cách các lệnh gọi mô hình trở thành số lần kích hoạt được hiển thị. Chạy bài kiểm thử tui3 spend-place, trong đó cung cấp một lần kích hoạt với hai lệnh gọi. Hoàn tất khi hàng báo cáo 1 lần kích hoạt sau một lần kích hoạt của lệnh định kỳ, bất kể nó đã thực hiện bao nhiêu lệnh gọi mô hình.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

area:session bug sev:serious

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).

Ngôn ngữ chính
Go
Star
115
Fork
14
Merge trung bình
9 giờ 13 phút
Pull request đã merge (30 ngày)
514

Chuẩn bị môi trường

Chúng tôi chưa kiểm tra các tệp thiết lập môi trường của dự án này. Hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của Agent-Field/CodeAF

Tất cả issue của Agent-Field/CodeAF

Issue tương tự

Thêm issue về Go

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.