feat: port scenario 903 select-pool flow

This commit is contained in:
Hide_D committed 2026-07-30 23:27:59 +00:00
1 parent 9bd057456b
commit 115218ded8
80 files changed
+6859 -48

No files matched your search

@@ -310,6 +310,17 @@ export class TurnDaemonLifecycle {
this.status.paused = true;
this.errorPaused = true;
this.status.lastError = error instanceof Error ? error.message : 'Unknown command error.';
if (command.requestId && this.commandResponder?.publishCommandError) {
try {
await this.commandResponder.publishCommandError(command.requestId, error);
} catch (reportError) {
const reportMessage =
reportError instanceof Error
? reportError.message
: 'Unknown command failure reporting error.';
this.status.lastError = `${this.status.lastError} (failure report: ${reportMessage})`;
}
}
await this.hooks?.onRunError?.(error);
return;
}