From b46886f1aa493a6df1a48247d73b952a83c5a1ad Mon Sep 17 00:00:00 2001 From: Siddharth Ganesan Date: Thu, 13 Nov 2025 18:12:15 -0800 Subject: [PATCH 1/2] Fix executor lgos block inputs --- apps/sim/executor/execution/block-executor.ts | 4 ++++ apps/sim/lib/environment.ts | 6 ++++-- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/apps/sim/executor/execution/block-executor.ts b/apps/sim/executor/execution/block-executor.ts index 618f482244..f4de40eae8 100644 --- a/apps/sim/executor/execution/block-executor.ts +++ b/apps/sim/executor/execution/block-executor.ts @@ -72,6 +72,10 @@ export class BlockExecutor { try { resolvedInputs = this.resolver.resolveInputs(ctx, node.id, block.config.params, block) + // Store resolved inputs in the block log after variable resolution + if (blockLog) { + blockLog.input = resolvedInputs + } } catch (error) { cleanupSelfReference?.() return this.handleBlockError( diff --git a/apps/sim/lib/environment.ts b/apps/sim/lib/environment.ts index 32ec457470..835f54c8bc 100644 --- a/apps/sim/lib/environment.ts +++ b/apps/sim/lib/environment.ts @@ -1,7 +1,7 @@ /** * Environment utility functions for consistent environment detection across the application */ -import { env, isTruthy } from './env' +import { env, getEnv, isTruthy } from './env' /** * Is the application running in production mode @@ -21,7 +21,9 @@ export const isTest = env.NODE_ENV === 'test' /** * Is this the hosted version of the application */ -export const isHosted = true +export const isHosted = + getEnv('NEXT_PUBLIC_APP_URL') === 'https://www.sim.ai' || + getEnv('NEXT_PUBLIC_APP_URL') === 'https://www.staging.sim.ai' /** * Is billing enforcement enabled From 007939e22e1f7439ee64d89b59bd25bee20ac45b Mon Sep 17 00:00:00 2001 From: Siddharth Ganesan Date: Thu, 13 Nov 2025 18:13:10 -0800 Subject: [PATCH 2/2] Fix Comment --- apps/sim/executor/execution/block-executor.ts | 1 - 1 file changed, 1 deletion(-) diff --git a/apps/sim/executor/execution/block-executor.ts b/apps/sim/executor/execution/block-executor.ts index f4de40eae8..a50aa5951c 100644 --- a/apps/sim/executor/execution/block-executor.ts +++ b/apps/sim/executor/execution/block-executor.ts @@ -72,7 +72,6 @@ export class BlockExecutor { try { resolvedInputs = this.resolver.resolveInputs(ctx, node.id, block.config.params, block) - // Store resolved inputs in the block log after variable resolution if (blockLog) { blockLog.input = resolvedInputs }