Runtime events need a stream identity to complete remote nested replies

Offen
#4,951 0 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen

Maintainer antworten meist innerhalb von 1 Tag

Dieses Issue hat noch niemand übernommen.

Bewertung

Schwierigkeit
4/5
Geschätzter Aufwand
3-5 Tage
Anfängerfreundlichkeit
48/100
Issue-Typ
Feature
Klarheit
Größtenteils klar
Aktivitätsstatus
Aktiv
Tech-Stack
go

Rechercherichtung

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.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Beschreibung

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.

Vorherrschende Sprache
Go
Sterne
4.7k
Forks
565
Ø Merge
18 Std. 52 Min.
Gemergte PRs (30 T.)
221

Entwicklungsumgebung

In Codespaces öffnen

Startet den Dev-Container des Projekts im Browser, mit Ihrem eigenen GitHub-Konto.

  • Enthält ein Dockerfile oder eine Docker-Compose-Datei
  • Keine Pull-Request-Vorlage
  • Kein Beitragsleitfaden

Erste Schritte

  1. Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
  2. Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
  3. Forken Sie das Repository und arbeiten Sie in einem Branch.
  4. Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.

Mehr aus docker/docker-agent

Alle Issues in docker/docker-agent

Ähnliche Issues

Weitere Issues zu Go

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.