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

@@ -298,10 +298,8 @@ export class SubagentService extends Service {
* @param request - child prompt, parent, signal, and optional capabilities.
* @returns the ready holder-owned run.
*/
async start(name: string, request: SubagentStartRequest): Promise<SubagentRun> {
// A provider request is structurally assignable to the caller shape. Clear
// its wider field so only startContinuable can supply service-owned state.
return this.startProvider(name, { ...request, continuation: undefined })
async start(name: string, request: SubagentStartRequest & { readonly continuation?: never }): Promise<SubagentRun> {
return this.startProvider(name, request)
}
/** Validate and dispatch one ordinary or service-resolved provider start. */