Runtime events need a stream identity to complete remote nested replies

Abierto
#4,951 0 comentarios 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
48/100
Tipo de issue
Nueva funcionalidad
Claridad
Bastante claro
Estado de actividad
Activo
Stack tecnológico
go

Línea de trabajo

Start by tracing the runtime event definitions and the code that emits and handles StreamStarted, StreamStopped, and content events; the issue does not name specific files or tests. Follow how replies get is_streaming and how nested streams share sessions. Done means replies from a stopped remote stream complete independently while its parent stream continues, with local runtime behavior preserved.

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

Descripción

area/api area/runtime

Markdown transformers (#4952) send is_streaming per reply. A reply completes when its saved message arrives, or when the last stream of its session stops.

A remote runtime does not send the saved message. A nested stream that shares its parent's session stops while the parent is still running, so its replies keep is_streaming: true until the parent's stream stops. Local runtimes are not affected: their saved message completes the reply.

Completing exactly the stopped stream's replies needs a stream identity on runtime events: StreamStarted, StreamStopped, and the content events, so each reply can be attributed to its stream. Keying on (session, agent) is not enough when the same agent runs nested in its own session.

Raised in https://github.com/docker/docker-agent/pull/4943#discussion_r4606337964.

Lenguaje dominante
Go
Estrellas
4.7k
Forks
565
Merge medio
18 h 52 min
PR fusionados (30 d)
221

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.