Hacktoberfest 2026: los issues que los mantenedores marcaron para octubre, abiertos y aptos para principiantes. Explorar issues de Hacktoberfest

session: interactive chat bypasses daily spending limit

Abierto
#1,546 2 comentarios 0 reacciones 1 asignado Ver en GitHub

Los mantenedores suelen responder en 1 día

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
3/5
Tiempo estimado
1-2 días
Aptitud para principiantes
76/100
Tipo de issue
Error
Claridad
Bien especificado
Estado de actividad
Activo
Stack tecnológico
go
Área
backend, cli

Línea de trabajo

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.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

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

Lenguaje dominante
Go
Estrellas
115
Forks
14
Merge medio
9 h 37 min
PR fusionados (30 d)
755

Preparar el entorno

Aún no hemos revisado los archivos de configuración de este proyecto. Empieza por su README y consulta nuestra guía para la primera contribución para los pasos generales.

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de Agent-Field/CodeAF

Todos los issues de Agent-Field/CodeAF

Issues similares

Más issues de Go

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.