fix(subagent): preserve ordinary start requests

This commit is contained in:
Dudu-0223
2026-07-28 11:19:22 +08:00
committed by imccyu
parent f14121a4c2
commit 264bc41a13
7 changed files with 15 additions and 23 deletions

View File

@@ -2005,7 +2005,7 @@ list(): string[]
* @param request - child prompt, parent, signal, and optional capabilities.
* @returns the ready holder-owned run.
*/
async start(name: string, request: SubagentStartRequest): Promise<SubagentRun>
async start(name: string, request: SubagentStartRequest & { readonly continuation?: never }): Promise<SubagentRun>
```
Types: [Agent](../core-data-structures/core.md) · [ContentBlock](../core-data-structures/core.md) · [ContinuableStart](../core-data-structures/subagent.md) · [ContinuableStartSpec](../core-data-structures/subagent.md) · [SessionId](../core-data-structures/core.md) · [SubagentFollowupOptions](../core-data-structures/subagent.md) · [SubagentFollowupResult](../core-data-structures/subagent.md) · [SubagentProvider](../core-data-structures/subagent.md) · [SubagentRun](../core-data-structures/subagent.md) · [SubagentStartRequest](../core-data-structures/subagent.md)