Files
Rob Lourens a4f5119796 agentHost: subagents (#308592)
* agentHost: subagents

* agentHost: remove _meta.parentToolCallId dependency, subscribe to child sessions instead

Inner tool calls from subagent sessions are no longer stored in the parent
turn with _meta.parentToolCallId. Instead:

- Server: _buildTurnsFromMessages skips inner events (parentToolCallId),
  _restoreSubagentSession builds child session turns from raw messages
- Client: _enrichHistoryWithSubagentCalls subscribes to child sessions
  during history restore, injects serialized inner tool calls with
  subAgentInvocationId set

Also fixes hygiene: replace 'in' operator with hasKey in
agentSideEffects.test.ts, exclude .jsonl from copyright filter.

* fix: set terminalCommandUri from terminal content blocks in stateToProgressAdapter

completedToolCallToSerialized and toolCallStateToInvocation were not
detecting terminal tools via ToolResultContentType.Terminal content
blocks or setting terminalCommandUri/terminalToolSessionId, causing
6 test failures in CI.

* comments

Co-authored-by: Copilot <copilot@github.com>

* revert diff

---------

Co-authored-by: Copilot <copilot@github.com>
2026-04-09 21:56:36 -07:00
..
2026-04-09 18:03:59 +00:00
2026-04-09 17:24:33 -07:00
2026-04-09 13:37:26 +02:00
2026-04-09 05:12:44 +02:00
2026-04-09 21:56:36 -07:00
2026-04-08 20:49:29 -07:00
2026-04-08 20:49:29 -07:00
2026-04-08 20:49:29 -07:00