Hacktoberfest 2026: los issues que los mantenedores marcaron para octubre, abiertos y aptos para principiantes. Explorar issues de Hacktoberfest

Allow configurable continuation limits when max_iterations is reached

Abierto
#4,560 1 comentario 0 reacciones 0 asignados Ver en GitHub

Los mantenedores suelen responder en 1 día

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
4/5
Tiempo estimado
3-5 días
Aptitud para principiantes
40/100
Tipo de issue
Nueva funcionalidad
Claridad
Bastante claro
Estado de actividad
Activo
Stack tecnológico
go
Área
api, backend

Línea de trabajo

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.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

area/api area/runtime area/sessions
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
  1. Configure an agent with max_iterations: 500.
  2. Run a task that reaches the limit.
  3. Approve continuation through the session resume API.
  4. 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

Lenguaje dominante
Go
Estrellas
4.4k
Forks
508
Merge medio
6 h 1 min
PR fusionados (30 d)
271

Preparar el entorno

Abrir en Codespaces

Inicia el contenedor de desarrollo del proyecto en tu navegador, con tu propia cuenta de GitHub.

  • Incluye un Dockerfile o un archivo de Docker Compose
  • Sin plantilla de pull request
  • Sin guía de contribución

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de docker/docker-agent

Todos los issues de docker/docker-agent

Issues similares

Más issues de Go

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.