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

Default per-team cap also caps All teams, so the whole org shares one pool

Aperta
#1,575 0 commenti 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
cli, testing

Direzione di ricerca

Read internal/tui3/teamspage.go:532-545 and internal/tui3/teamspagedraw.go:417-424, then run the isolated-profile reproduction with a $2 daily cap per team. Done means each of three top-level teams has its own cap and the organization can spend up to $6, with the possessive rendered as "All teams' cap"; verify the stated e2e and unit acceptance.

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

Descrizione

area:session bug sev:serious

Seen on: dev 837b2b0.

Behaviour

With daily cap per team $2, every top-level team showed $0.18 of $2 today · All teams's cap, and the whole org stopped at $2.01. A per-team default should give each team its own $2, not one $2 pool for the company. The line also has a grammar slip: All teams's.

Replication

  1. Build dev 837b2b0 (git checkout 837b2b0 && make build, binary bin/codeaf), or install the dev build with curl -fsSL https://agentfield.ai/get/devaf | bash.
  2. Use an isolated profile: export HOME=$(mktemp -d), export OPENROUTER_API_KEY, and keep the default model (~deepseek/deepseek-v4-flash-latest, crew on auto).
  3. On a busy machine set task.max_load to 0 (/settings, Tasks) so the busy-machine gate does not hold tasks.
  4. cd $(mktemp -d) && git init -q && codeaf.
  5. /settings, set daily cap per team to $2.
  6. Make three top-level teams, each with a manager, and give each a job.
  7. On /teams, read each team's money line.

Evidence

  • Screen: $0.18 of $2 today · All teams's cap on every top-level team; work stopped at $2.01 in total.
  • internal/tui3/teamspage.go:532-545 (teamsPool): when the cap is the profile default, the pool owner is "the top of the chain", which is All teams.
  • internal/tui3/teamspagedraw.go:417-424: name + "'s cap" with name = teamstore.RootName.

Guessed cause

A guess from reading the code, not a confirmed diagnosis. The root team inherits the profile default like any team, and the effective-cap resolver makes the default a pool owned by the top of the chain.

Acceptance

  • e2e: with daily cap per team $2 and three top-level teams, each shows of $2 today against its own spend, and the org can spend up to $6.
  • Unit: the possessive is rendered as All teams' cap.

Found while writing the public docs; manual text differences are in #1545.

🤖 Generated with Claude Code

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.