diff --git a/app/lib/runtime/action-runner.ts b/app/lib/runtime/action-runner.ts index 13b17ef11..5fb984fd8 100644 --- a/app/lib/runtime/action-runner.ts +++ b/app/lib/runtime/action-runner.ts @@ -95,11 +95,12 @@ export class ActionRunner { this.#currentExecutionPromise = this.#currentExecutionPromise .then(() => { - this.#executeAction(actionId, isStreaming); + return this.#executeAction(actionId, isStreaming); }) .catch((error) => { console.error('Action failed:', error); }); + return this.#currentExecutionPromise; } async #executeAction(actionId: string, isStreaming: boolean = false) {