Allow configurable continuation limits when max_iterations is reached
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
- 40/100
Hướng nghiên cứu
The hardcoded newMax := iteration + 10 is in pkg/runtime/loop_steps.go, and the resume request type is in pkg/api/types.go. Start by reading how the iteration limit is raised when continuation is approved, then see how the resume request reaches that code. Done means optional resume parameters choose a custom extension or no limit for the current run only, while requests without them keep the +10 behavior. The issue leaves the parameter names and semantics open, so confirm the design with maintainers first.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Description
Allow configurable continuation limits when max_iterations is reached
Version: Docker Agent v1.149.0
Usage: docker agent serve api with a custom web frontend
Problem
When an agent reaches max_iterations, approving continuation always grants exactly 10 additional iterations, regardless of the configured limit.
For example, with max_iterations: 500, the agent pauses after 500 iterations. Approving continuation raises the limit to 510, then 520, and so on. This requires frequent manual confirmation during legitimate long-running tasks, such as browser automation or multi-step coding work.
The initial limit is configurable, but the continuation increment is hardcoded:
newMax := iteration + 10
Source: [pkg/runtime/loop_steps.go](https://github.com/docker/docker-agent/blob/v1.149.0/pkg/runtime/loop_steps.go#L108-L115)
The [resume API request](https://github.com/docker/docker-agent/blob/v1.149.0/pkg/api/types.go#L176-L180) exposes no parameter for changing this behavior.
Steps to reproduce
- Configure an agent with
max_iterations: 500. - Run a task that reaches the limit.
- Approve continuation through the session resume API.
- Observe that the agent can execute only 10 additional iterations before requesting confirmation again.
Proposed behavior
Allow the user to choose between:
- Continue for N additional iterations, with the original configured limit as a sensible default.
- Continue without an iteration limit for the current run.
Ideally, expose this through optional parameters on the existing resume API so custom clients can offer these choices without repeatedly auto-approving 10-iteration extensions.
These choices should affect only the current run’s iteration budget. They should not change tool approval policies, future runs, or unrelated execution limits.
For backward compatibility, requests without the new parameters could retain the existing +10 behavior.
Why this matters
An iteration limit is a useful checkpoint. Once the user explicitly approves a longer continuation, a fixed increment of 10 creates unnecessary interruptions and makes the API difficult to use for long-running workflows.
Expected Behavior
No response
Actual Behavior
No response
Steps to Reproduce
No response
Docker Agent version
No response
OS & terminal
No response
Model used
No response
Error output
Screenshots
No response
Additional context
No response
- Ngôn ngữ chính
- Go
- Star
- 4.4k
- Fork
- 508
- Merge trung bình
- 6 giờ 1 phút
- Pull request đã merge (30 ngày)
- 271
Chuẩn bị môi trường
Khởi chạy dev container của dự án ngay trên trình duyệt, bằng tài khoản GitHub của bạn.
- Có Dockerfile hoặc tệp Docker Compose
- Không có mẫu pull request
- Không có hướng dẫn đóng góp
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 docker/docker-agent
-
area/config area/providers/docker-model-runner
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
docker/docker-agent#4522 · 3 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
pkg/hooks tests fail with a misleading assertion when jq is not installedCó thể đã có người làm @dwin-gharibi đã nhận 51 ngày trước. Đang mởarea/testing
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 86/100
docker/docker-agent#4052 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
`remove_directory` and `create_directory` hide work they already did when a later path failsCó thể đã có người làm @dwin-gharibi đã nhận 69 ngày trước. Đang mởarea/tools
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 85/100
docker/docker-agent#3933 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
`edit_file` silently edits the first match when `oldText` occurs more than onceCó thể đã có người làm @dwin-gharibi đã nhận 69 ngày trước. Đang mởarea/tools
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
docker/docker-agent#3929 · 2 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
OAuth DCR omits token_endpoint_auth_method, so token exchange fails on client_secret_basic serversĐang mởarea/mcp area/security
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 45/100
docker/docker-agent#4590 ·
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của docker/docker-agent
Issue tương tự
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
praetorian-inc/augustus#334 ·
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 66/100
Maintainer thường phản hồi trong vòng 1 ngày
-
bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
Maintainer thường phản hồi trong vòng 1 ngày
-
TestTOMLBigFileParsesInLinearTime: a 1s wall-clock bound on a 3 MB parse fails under load (1.27s)Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 70/100
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 80/100
peasant-labs/village#293 ·
Maintainer thường phản hồi trong vòng 1 ngày