Skip to content

Commit 1438cca

Browse files
programcaicaiprogramcaicai
authored andcommitted
fix: accept spawnMode when registering subagent runs
1 parent e6a3fa5 commit 1438cca

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

src/agents/subagent-registry.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ export type SubagentRunRecord = {
2222
label?: string;
2323
model?: string;
2424
runTimeoutSeconds?: number;
25+
spawnMode?: "run" | "session";
2526
createdAt: number;
2627
startedAt?: number;
2728
endedAt?: number;
@@ -536,6 +537,7 @@ export function registerSubagentRun(params: {
536537
model?: string;
537538
runTimeoutSeconds?: number;
538539
expectsCompletionMessage?: boolean;
540+
spawnMode?: "run" | "session";
539541
}) {
540542
const now = Date.now();
541543
const cfg = loadConfig();
@@ -554,6 +556,7 @@ export function registerSubagentRun(params: {
554556
label: params.label,
555557
model: params.model,
556558
runTimeoutSeconds,
559+
spawnMode: params.spawnMode,
557560
createdAt: now,
558561
startedAt: now,
559562
cleanupHandled: false,

0 commit comments

Comments
 (0)