chore: Fix TypeScript errors 4/n.

This commit is contained in:
cpojer
2026-01-31 16:48:44 +09:00
parent 3282d22dd9
commit 9e908ad6be
3 changed files with 15 additions and 5 deletions

View File

@@ -369,7 +369,12 @@ export async function runSubagentAnnounceFlow(params: {
let outcome: SubagentRunOutcome | undefined = params.outcome;
if (!reply && params.waitForCompletion !== false) {
const waitMs = Math.min(params.timeoutMs, 60_000);
const wait = await callGateway({
const wait = await callGateway<{
status?: string;
startedAt?: number;
endedAt?: number;
error?: string;
}>({
method: "agent.wait",
params: {
runId: params.childRunId,