Allow configurable continuation limits when max_iterations is reached
メンテナーはふだん 1 日以内に返信
まだ誰も着手していません。
評価
調査の方向性
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.
索引モデルが issue の本文から書いたものです。
説明
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
- 主要言語
- Go
- スター
- 4.4k
- フォーク
- 508
- 平均マージ
- 7時間 2分
- マージ済み PR(30日)
- 233
環境構築
このプロジェクトの開発コンテナを、あなたの GitHub アカウントでブラウザ上に起動します。
- Dockerfile または Docker Compose ファイルあり
- プルリクエストのテンプレートなし
- コントリビューションガイドなし
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
docker/docker-agent のほかの issue
-
DMR provider ignores integer `provider_opts.context_size` (YAML integers decode as uint64), so the model starts at its maximum context対応中かも このイシューにリンクされたプルリクエストがオープン中、またはマージ済みです。 オープンarea/config area/providers/docker-model-runner
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
docker/docker-agent#4522 · コメント 3 件 ·
メンテナーはふだん 1 日以内に返信
-
pkg/hooks tests fail with a misleading assertion when jq is not installed対応中かも @dwin-gharibi が 51 日前に担当しました。 オープンarea/testing
難易度 2/5 1〜3時間 初心者へのやさしさ 86/100
docker/docker-agent#4052 ·
メンテナーはふだん 1 日以内に返信
-
`remove_directory` and `create_directory` hide work they already did when a later path fails対応中かも @dwin-gharibi が 69 日前に担当しました。 オープンarea/tools
難易度 2/5 1〜3時間 初心者へのやさしさ 85/100
docker/docker-agent#3933 ·
メンテナーはふだん 1 日以内に返信
-
`edit_file` silently edits the first match when `oldText` occurs more than once対応中かも @dwin-gharibi が 70 日前に担当しました。 オープンarea/tools
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
docker/docker-agent#3929 · コメント 2 件 ·
メンテナーはふだん 1 日以内に返信
-
area/providers/openai
難易度 3/5 1〜2日 初心者へのやさしさ 55/100
docker/docker-agent#4594 ·
メンテナーはふだん 1 日以内に返信
docker/docker-agent の issue をすべて見る
似ている issue
-
docs: clarify gh api -f vs -F and @-file expansion in the gh skill対応中かも @MatiasOlivera が今日担当しました。 オープンenhancement
難易度 2/5 半日 初心者へのやさしさ 62/100
メンテナーはふだん 1 日以内に返信
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 88/100
aws/aws-advanced-go-wrapper#612 ·
-
Say in the changelog that the text-index update cannot be rolled back対応中かも @praetorianer777 が今日担当しました。 オープン
難易度 1/5 1時間未満 初心者へのやさしさ 88/100
praetorianer777/GoTome#275 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 62/100
SAP/crossplane-provider-btp#1118 ·
メンテナーはふだん 1 日以内に返信
-
benchmark: `make setup` fails because audit-exporter builds with Go 1.25.0 while go.mod requires 1.26.0対応中かも @xsvm が今日担当しました。 オープン
難易度 1/5 1時間未満 初心者へのやさしさ 84/100
volcano-sh/volcano#6097 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信