fix: let external agent worker drain before exit

This commit is contained in:
John
2026-07-02 08:30:01 +08:00
parent a402509d6e
commit bb98734d9c
4 changed files with 42 additions and 5 deletions
+1 -1
View File
@@ -310,7 +310,7 @@ export function createAgentRunGateway({
error_message: message,
completed_at: retryable ? null : nowMs(),
});
if (retryable) {
if (retryable && autoDispatch) {
setTimeout(() => dispatchRun(runId), retryDelaysMs[nextAttempt - 1]);
}
}