Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

session: interactive chat bypasses daily spending limit

Aperta
#1,546 1 commento 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
3/5
Tempo stimato
1-2 giorni
Idoneità per principianti
76/100
Tipo di issue
Bug
Chiarezza
Specificata chiaramente
Stato di attività
Attiva
Stack tecnologico
go
Ambito
backend, cli

Direzione di ricerca

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.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

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

Lingua principale
Go
Stelle
115
Fork
14
Merge medio
9h 35m
PR unite (30g)
752

Preparare l'ambiente

Non abbiamo ancora controllato i file di configurazione di questo progetto. Parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di Agent-Field/CodeAF

Tutte le issue di Agent-Field/CodeAF

Issue simili

Altre issue su Go

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.