From 4fb64800d3bbd959511cb2a93dbf8451f34dc9a3 Mon Sep 17 00:00:00 2001 From: PuneetP16 Date: Tue, 26 Nov 2024 14:24:41 +0530 Subject: [PATCH] [fix]: shell commands failing on app reload --- app/lib/runtime/action-runner.ts | 2 +- app/utils/logger.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/lib/runtime/action-runner.ts b/app/lib/runtime/action-runner.ts index 13b17ef..4b32f7a 100644 --- a/app/lib/runtime/action-runner.ts +++ b/app/lib/runtime/action-runner.ts @@ -95,7 +95,7 @@ export class ActionRunner { this.#currentExecutionPromise = this.#currentExecutionPromise .then(() => { - this.#executeAction(actionId, isStreaming); + return this.#executeAction(actionId, isStreaming); }) .catch((error) => { console.error('Action failed:', error); diff --git a/app/utils/logger.ts b/app/utils/logger.ts index 9b2c31c..1a5c932 100644 --- a/app/utils/logger.ts +++ b/app/utils/logger.ts @@ -11,7 +11,7 @@ interface Logger { setLevel: (level: DebugLevel) => void; } -let currentLevel: DebugLevel = (import.meta.env.VITE_LOG_LEVEL ?? import.meta.env.DEV) ? 'debug' : 'info'; +let currentLevel: DebugLevel = import.meta.env.VITE_LOG_LEVEL ?? import.meta.env.DEV ? 'debug' : 'info'; const isWorker = 'HTMLRewriter' in globalThis; const supportsColor = !isWorker;