github / github/copilot-sdk

Add optional `parentAgentId` to the session-event envelope for nested sub-agents

Abierto
#1,731 0 comentarios 0 reacciones 0 asignados Ver en GitHub
enhancement
Lenguaje dominante
Java
Estrellas
10.5k
Forks
1.5k
Merge medio
1 d 11 h
PR fusionados (30 d)
128

Descripción

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.

Guía de contribución

Abrir la guía de contribución

Línea de trabajo

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.

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

Evaluación

Stack tecnológico
java
Área
api
Tipo de issue
Nueva funcionalidad
Dificultad
3/5
Tiempo estimado
1-2 días
Estado de actividad
Tranquilo
Claridad
Bastante claro
Aptitud para principiantes
58/100

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.