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

session: interactive chat bypasses daily spending limit

Đang mở
#1,546 1 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ó
3/5
Thời gian dự kiến
1-2 ngày
Mức phù hợp với người mới
76/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
backend, cli

Hướng nghiên cứu

Start in internal/session/taskcrew.go:211 and read internal/session/rail.go:58-82, then trace the callers for interactive chat and /task. Verify that the daily rail is applied consistently across interactive, task, standing-firing, and headless execution paths, using the $1.00 budget reproduction as the done check.

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

Mô tả

area:provider area:session bug sev:critical
Summary

Interactive chat turns and /task delegations bypass the project-wide daily spending rail and only check the per-conversation limit.

Observed Behavior

When a session hits or exceeds the configured daily budget, interactive chat turns and tasks spawned from chat continue executing and consuming model spend without tripping the daily spending limit. Only headless codeaf do and standing firings enforce the daily rail.

Expected Behavior

Every execution path (interactive chat, task crew, standing firings, headless runs) must enforce the daily spend ceiling configured in the workspace/project rails.

Reproduction Steps
  1. Set daily budget rail to $1.00 via workspace config or /budget 1.
  2. Run interactive chat turns until spend exceeds $1.00.
  3. Submit a subsequent turn or /task. The session continues executing and incurring costs.
Root Cause / Location

In internal/session/taskcrew.go:211, crewSpendGuard is called with enforceDaily: false:

crewSpendGuard(..., false)

Rail checks in internal/session/rail.go:58-82 only validate per-session budgets when enforceDaily is disabled.

—
Drafted with CodeAF · reviewed and owned by the author

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

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.