Add optional `parentAgentId` to the session-event envelope for nested sub-agents
- 主要言語
- Java
- スター
- 10.5k
- フォーク
- 1.5k
- 平均マージ
- 1日 11時間
- マージ済み PR(30日)
- 128
説明
Sub-agent session events carry only the innermost `agentId` on the event envelope. When sub-agents nest, a consumer receiving the event stream cannot reconstruct parent-of relationships — there is no field linking a sub-agent to the agent that spawned it.
Today a consumer has to infer the parent indirectly, by correlating each sub-agent's id with the id of the tool call that started it. That works but is fragile and couples consumers to an implementation detail.
**Request:** add an explicit optional `parentAgentId` to the session-event envelope — absent for top-level/root agents, set to the spawning agent's id for nested sub-agents — so parent chains are recoverable directly from the event stream.
コントリビューションガイド
調査の方向性
No file or test is named in the issue; start by locating the session-event envelope definition and the code that creates nested sub-agent events. Trace how the spawning agent id is available, then verify that root events omit parentAgentId, nested events include it, and consumers can reconstruct the parent chain from the event stream.
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- java
- 領域
- api
- issue の種類
- 機能追加
- 難易度
- 3/5
- 見積もり時間
- 1〜2日
- 活発さ
- 静か
- 明瞭さ
- おおむね明確
- 初心者へのやさしさ
- 58/100