fix(ui): surface skipped wakeup messages in agent detail
Co-Authored-By: Paperclip <noreply@paperclip.ing>
This commit is contained in:
parent
3ab7d52f00
commit
50e9f69010
1 changed files with 2 additions and 2 deletions
|
|
@ -2937,7 +2937,7 @@ function RunDetail({ run: initialRun, agentRouteId, adapterType }: { run: Heartb
|
||||||
payload: resumePayload,
|
payload: resumePayload,
|
||||||
}, run.companyId);
|
}, run.companyId);
|
||||||
if (!("id" in result)) {
|
if (!("id" in result)) {
|
||||||
throw new Error("Resume request was skipped because the agent is not currently invokable.");
|
throw new Error(result.message ?? "Resume request was skipped.");
|
||||||
}
|
}
|
||||||
return result;
|
return result;
|
||||||
},
|
},
|
||||||
|
|
@ -2969,7 +2969,7 @@ function RunDetail({ run: initialRun, agentRouteId, adapterType }: { run: Heartb
|
||||||
payload: retryPayload,
|
payload: retryPayload,
|
||||||
}, run.companyId);
|
}, run.companyId);
|
||||||
if (!("id" in result)) {
|
if (!("id" in result)) {
|
||||||
throw new Error("Retry was skipped because the agent is not currently invokable.");
|
throw new Error(result.message ?? "Retry was skipped.");
|
||||||
}
|
}
|
||||||
return result;
|
return result;
|
||||||
},
|
},
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue