Default per-team cap also caps All teams, so the whole org shares one pool
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
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
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
- Build dev 837b2b0 (
git checkout 837b2b0 && make build, binarybin/codeaf), or install the dev build withcurl -fsSL https://agentfield.ai/get/devaf | bash. - Use an isolated profile:
export HOME=$(mktemp -d), exportOPENROUTER_API_KEY, and keep the default model (~deepseek/deepseek-v4-flash-latest, crew on auto). - On a busy machine set
task.max_loadto0(/settings, Tasks) so the busy-machine gate does not hold tasks. cd $(mktemp -d) && git init -q && codeaf./settings, setdaily cap per teamto$2.- Make three top-level teams, each with a manager, and give each a job.
- On
/teams, read each team's money line.
Evidence
- Screen:
$0.18 of $2 today · All teams's capon 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 isAll teams.internal/tui3/teamspagedraw.go:417-424:name + "'s cap"withname = 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 $2and three top-level teams, each showsof $2 todayagainst 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
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di Agent-Field/CodeAF
-
area:chat bug sev:papercut
Difficoltà 2/5 1-3 ore Idoneità per principianti 86/100
Agent-Field/CodeAF#1592 ·
I maintainer di solito rispondono entro 1 giorno
-
area:headless bug sev:critical
Difficoltà 2/5 1-3 ore Idoneità per principianti 88/100
Agent-Field/CodeAF#1566 ·
I maintainer di solito rispondono entro 1 giorno
-
area:chat bug sev:critical
Difficoltà 2/5 1-3 ore Idoneità per principianti 82/100
Agent-Field/CodeAF#1548 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
area:chat feature
Difficoltà 2/5 1-3 ore Idoneità per principianti 88/100
Agent-Field/CodeAF#1510 ·
I maintainer di solito rispondono entro 1 giorno
-
area:tests bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 82/100
Agent-Field/CodeAF#1489 ·
I maintainer di solito rispondono entro 1 giorno
Tutte le issue di Agent-Field/CodeAF
Issue simili
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
-
[开源推荐] FCaptcha:可自行部署的开源验证码Aperta
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 65/100
521xueweihan/HelloGitHub#3789 ·
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 88/100
I maintainer di solito rispondono entro 12 giorni
-
stage-fail
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
siyuan-note/bazaar#2282 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
openshift/kube-compare#307 ·
I maintainer di solito rispondono entro 1 giorno