mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-09 07:57:39 +00:00
chore: Fix TypeScript errors 4/n.
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user