fix: keep remote subagent ids parent-scoped

This commit is contained in:
Tianyi Cui
2026-07-14 05:41:01 +08:00
parent 17c99efcc1
commit 7d711c44a8
6 changed files with 24 additions and 11 deletions

View File

@@ -147,7 +147,7 @@ export interface SubagentResult {
* presence of the method IS the capability — narrow before calling.
*/
export interface SubagentRun {
/** The child agent's id (local in-process runs are already published in `ctx.agents`; remote transports need not publish locally). */
/** Parent-scoped run id. Local runs use the published child session id; remote providers mint an id unique in the parent namespace. */
readonly id: SessionId
/**
* Resolves with the child's terminal {@link SubagentResult} when the run