From 7e441d348ea0dc951e470dbd84d6c3a0df34aa9a Mon Sep 17 00:00:00 2001 From: Dax Date: Thu, 12 Nov 2026 21:30:14 -0500 Subject: [PATCH] docs(protocol): describe parentID on session create (#63653) --- packages/protocol/openapi.json | 3 ++- packages/protocol/src/groups/session.ts | 5 ++++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/packages/protocol/openapi.json b/packages/protocol/openapi.json index 797d2807508..ea2002a49b6 100644 --- a/packages/protocol/openapi.json +++ b/packages/protocol/openapi.json @@ -1075,7 +1075,8 @@ { "type": "null" } - ] + ], + "description": "Set parentID to create a subagent session at the parent's location; set agent to choose its agent (otherwise it uses the default) and start it with session.prompt. After each completed round, the child sends a `` report to the parent's inbox and wakes the parent unless it has a staged revert." }, "title": { "anyOf": [ diff --git a/packages/protocol/src/groups/session.ts b/packages/protocol/src/groups/session.ts index b0f8be8dc5c..1ac6b5bb460 100644 --- a/packages/protocol/src/groups/session.ts +++ b/packages/protocol/src/groups/session.ts @@ -167,7 +167,10 @@ export const makeSessionGroup = ` report to the parent's inbox and wakes the parent unless it has a staged revert.", + }), title: Schema.String.pipe(Schema.optional), agent: Agent.ID.pipe(Schema.optional), model: Model.Ref.pipe(Schema.optional),