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

@@ -322,7 +322,12 @@ export function registerSubagentRun(params: {
async function waitForSubagentCompletion(runId: string, waitTimeoutMs: number) {
try {
const timeoutMs = Math.max(1, Math.floor(waitTimeoutMs));
const wait = await callGateway({
const wait = await callGateway<{
status?: string;
startedAt?: number;
endedAt?: number;
error?: string;
}>({
method: "agent.wait",
params: {
runId,