Default per-team cap also caps All teams, so the whole org shares one pool
Mantenedores costumam responder em até 1 dia
Ninguém assumiu esta issue ainda.
Avaliação
- Dificuldade
- 3/5
- Tempo estimado
- 1-2 dias
- Facilidade para iniciantes
- 76/100
Direção de pesquisa
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.
Escrita pelo modelo de indexação a partir do texto da issue.
Descrição
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
- Linguagem predominante
- Go
- Estrelas
- 115
- Forks
- 14
- Merge médio
- 11h 32min
- PRs com merge (30d)
- 747
Preparar o ambiente
Ainda não verificamos os arquivos de configuração deste projeto. Comece pelo README e veja nosso guia da primeira contribuição para os passos gerais.
Primeiros passos
- Leia a issue inteira e depois o guia de contribuição do projeto.
- Comente na issue dizendo que vai assumir — evita que duas pessoas façam o mesmo trabalho.
- Faça um fork do repositório e trabalhe em uma branch.
- Abra um pull request que referencie o número da issue.
Mais de Agent-Field/CodeAF
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 88/100
Agent-Field/CodeAF#1679 ·
Mantenedores costumam responder em até 1 dia
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 85/100
Agent-Field/CodeAF#1678 ·
Mantenedores costumam responder em até 1 dia
-
area:chat bug sev:papercut
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 86/100
Agent-Field/CodeAF#1592 ·
Mantenedores costumam responder em até 1 dia
-
area:chat feature
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 88/100
Agent-Field/CodeAF#1510 ·
Mantenedores costumam responder em até 1 dia
-
area:tests bug
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 82/100
Agent-Field/CodeAF#1489 ·
Mantenedores costumam responder em até 1 dia
Todas as issues de Agent-Field/CodeAF
Issues semelhantes
-
bug docs
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 88/100
Mantenedores costumam responder em até 1 dia
-
bug needs-acceptance wg/evaluation-quality
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 76/100
vllm-project/semantic-router#4424 ·
Mantenedores costumam responder em até 1 dia
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 90/100
Mantenedores costumam responder em até 1 dia
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 76/100
NVIDIA/k8s-device-plugin#2076 ·
Mantenedores costumam responder em até 1 dia
-
Documentation help wanted
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 68/100
golang/go#81933 · 2 comentários ·
Mantenedores costumam responder em até 1 dia