Default per-team cap also caps All teams, so the whole org shares one pool
Maintainer thường phản hồi trong vòng 1 ngày
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 3/5
- Thời gian dự kiến
- 1-2 ngày
- Mức phù hợp với người mới
- 76/100
Hướng nghiên cứu
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.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
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
- Ngôn ngữ chính
- Go
- Star
- 115
- Fork
- 14
- Merge trung bình
- 9 giờ 35 phút
- Pull request đã merge (30 ngày)
- 752
Chuẩn bị môi trường
Chúng tôi chưa kiểm tra các tệp thiết lập môi trường của dự án này. Hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của Agent-Field/CodeAF
-
area:chat bug sev:papercut
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 86/100
Agent-Field/CodeAF#1592 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
area:headless bug sev:critical
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 88/100
Agent-Field/CodeAF#1566 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
tui3: slash command completion inserts bare command prefix into prompt instead of navigatingĐang mởarea:chat bug sev:critical
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
Agent-Field/CodeAF#1548 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
area:chat feature
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 88/100
Agent-Field/CodeAF#1510 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
area:tests bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
Agent-Field/CodeAF#1489 ·
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của Agent-Field/CodeAF
Issue tương tự
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
-
[开源推荐] FCaptcha:可自行部署的开源验证码Đang mở
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 65/100
521xueweihan/HelloGitHub#3789 ·
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 88/100
Maintainer thường phản hồi trong vòng 12 ngày
-
stage-fail
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
siyuan-note/bazaar#2282 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
openshift/kube-compare#307 ·
Maintainer thường phản hồi trong vòng 1 ngày