codeaf do "" runs a paid job with an empty brief
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ó
- 2/5
- Thời gian dự kiến
- 1-3 giờ
- Mức phù hợp với người mới
- 88/100
- Loại issue
- Lỗi
- Độ rõ ràng
- Đặc tả rõ ràng
- Mức độ hoạt động
- Sôi nổi
- Công nghệ
- go
- Lĩnh vực
- cli, testing-qa
Hướng nghiên cứu
Bắt đầu trong cmd/codeaf/main.go, quanh readText ở các dòng 1101-1112 và các kiểm tra noGoalGiven ở các dòng 1109, 1121 và 1126. Chạy các bản tái hiện được mô tả codeaf do "" và codeaf do " ", sau đó thêm hoặc cập nhật phạm vi kiểm thử unit và e2e. Được xem là hoàn tất khi cả hai dạng đều thoát với giá trị khác 0 bằng usage một dòng hiện có, không có dòng usage nào được ghi và readText xử lý các đối số trống như khi thiếu goal.
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
codeaf do "" (one empty argument) starts a real, paid run. It exited 0 with stop:"done" and spent $0.057; the crew invented a goal from the repository (it fixed the failing tests). A missing brief should be refused the way a terminal with no piped text is refused, with nothing spent.
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. - Make a small repo with a failing test:
R=$(mktemp -d) && cd "$R" && git init -q && printf 'package main\n\nfunc main() {}\n' > main.go && printf 'module demo\n\ngo 1.22\n' > go.mod && git add -A && git commit -qm init, then add any failing_test.gofile and commit it. - Run
codeaf do "" --json; echo exit=$?. - Read the JSON:
stopisdone,spend_usdis non-zero, andgit statusshows edits nobody asked for.
Evidence
- JSON record:
"stop":"done","spend_usd":0.057, exit 0. cmd/codeaf/main.go:1101-1112(readText): withlen(args) > 0it returnsstrings.TrimSpace(strings.Join(args, " ")), so one empty argument becomes an empty goal with no error. ThenoGoalGivencheck (main.go:1109,:1121,:1126) runs only on the no-argument and piped paths.
Guessed cause
A guess from reading the code, not a confirmed diagnosis. readText never checks the trimmed argument text for emptiness, so an empty brief reaches the crew and the planner fills the gap from the repository.
Acceptance
- e2e:
codeaf do ""andcodeaf do " "exit non-zero with the same one-line usage ascodeaf dowith no argument, and no usage row is written (codeaf logsshows no call). - Unit:
readTextreturns thenoGoalGivenerror for an all-blank argument list.
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
-
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
-
area:chat bug good first issue sev:papercut
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
Agent-Field/CodeAF#1470 ·
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