codacus commited on
Commit
fe45651
·
unverified ·
2 Parent(s): 02f4de4 5add317

Merge pull request #427 from PuneetP16/fix-app-reload

Browse files
Files changed (1) hide show
  1. app/lib/runtime/action-runner.ts +2 -1
app/lib/runtime/action-runner.ts CHANGED
@@ -95,11 +95,12 @@ export class ActionRunner {
95
 
96
  this.#currentExecutionPromise = this.#currentExecutionPromise
97
  .then(() => {
98
- this.#executeAction(actionId, isStreaming);
99
  })
100
  .catch((error) => {
101
  console.error('Action failed:', error);
102
  });
 
103
  }
104
 
105
  async #executeAction(actionId: string, isStreaming: boolean = false) {
 
95
 
96
  this.#currentExecutionPromise = this.#currentExecutionPromise
97
  .then(() => {
98
+ return this.#executeAction(actionId, isStreaming);
99
  })
100
  .catch((error) => {
101
  console.error('Action failed:', error);
102
  });
103
+ return this.#currentExecutionPromise;
104
  }
105
 
106
  async #executeAction(actionId: string, isStreaming: boolean = false) {