A worker step cap permits every call in one model reply
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ó
- 4/5
- Thời gian dự kiến
- 3-5 ngày
- Mức phù hợp với người mới
- 62/100
- Loại issue
- Lỗi
- Độ rõ ràng
- Khá rõ ràng
- Mức độ hoạt động
- Sôi nổi
- Công nghệ
- bash, go
- Lĩnh vực
- backend, documentation, testing-qa
Hướng nghiên cứu
Read internal/session/loop.go around runToolsWarm and the end-event send, then inspect internal/run/bashworker.go around the step-cap handling. Run the deterministic internal/run two-call test described in the issue and review docs/changes/unreleased/1410-worker-step-boundary.md. Done means the chosen batch boundary is pinned by unit and e2e coverage and the manual and change entry match it.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Found on santos/dev2 at 008363c98 (#1410). It reaches dev when #1410 merges.
What happened
The step handshake stops a worker before its next model request, but runToolsWarm runs every call in one reply's batch before sending the first end event. With a cap of one, a reply containing two tool calls executes both. The batch behavior predates the handshake; the new change entry overstates it as before the next action can start.
Replication
Deterministic (no model). In internal/run, script one model reply with two observable bash calls, set WithStepsPerTask(..., 1), and run the worker. Today both effects occur before the worker reports its step cap. A one-call reply is the control.
Field (real models). Ask a task to perform two separate shell actions in its first reply with a one-step cap in a controlled run; a model may combine the calls, so the deterministic test is the acceptance gate. Use OPENROUTER_API_KEY, deepseek/deepseek-v4-flash and a small charge if exercising this door.
Where
internal/session/loop.go:3350, runToolsWarm, finishes a batch before the end-event send at :3415; internal/run/bashworker.go:253 applies the cap after receiving an end event. docs/changes/unreleased/1410-worker-step-boundary.md:7 describes a stronger boundary.
The fix
Enforce the cap between calls in a batch if it is a per-action limit; otherwise name it a per-model-request limit consistently in code, UI and docs.
Acceptance
- e2e: a task with cap one and a two-call scripted reply records only the permitted effect, or its visible contract explicitly says both calls are one permitted batch.
- Unit: a two-call batch pins the chosen boundary.
- Correct the manual and the change entry's
invalidates.
- Ngôn ngữ chính
- Go
- Star
- 115
- Fork
- 14
- Merge trung bình
- 9 giờ 44 phút
- Pull request đã merge (30 ngày)
- 775
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
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 88/100
Agent-Field/CodeAF#1679 ·
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 85/100
Agent-Field/CodeAF#1678 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
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
-
codeaf do "" runs a paid job with an empty briefCó thể đã có người làm @santoshkumarradha đã nhận 2 ngày trước. Đang mở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 · 1 người được giao ·
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
Tất cả issue của Agent-Field/CodeAF
Issue tương tự
-
area: global bug dx priority: low
Độ 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 1 ngày
-
enhancement
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
grafana/mcp-grafana#1267 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
automation models
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
Maintainer thường phản hồi trong vòng 1 ngày
-
coverage-gap good-first-pattern help wanted
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
GoogleCloudPlatform/k8s-aibom#114 ·
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 72/100
txn2/mcp-data-platform#1984 ·
Maintainer thường phản hồi trong vòng 1 ngày