Runtime events need a stream identity to complete remote nested replies

オープン
#4,951 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
48/100
issue の種類
機能追加
明瞭さ
おおむね明確
活発さ
活発
技術スタック
go

調査の方向性

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.

索引モデルが issue の本文から書いたものです。

説明

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.

主要言語
Go
スター
4.7k
フォーク
565
平均マージ
18時間 52分
マージ済み PR(30日)
221

環境構築

Codespaces で開く

このプロジェクトの開発コンテナを、あなたの GitHub アカウントでブラウザ上に起動します。

  • Dockerfile または Docker Compose ファイルあり
  • プルリクエストのテンプレートなし
  • コントリビューションガイドなし

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

docker/docker-agent のほかの issue

docker/docker-agent の issue をすべて見る

似ている issue

Go の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。