Merge pull request #427 from PuneetP16/fix-app-reload
Browse files
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) {
|