From dab70a8f1d7d7a4d95d70df3eec5afbd80118aea Mon Sep 17 00:00:00 2001 From: Siddharth Ganesan <33737564+Sg312@users.noreply.github.com> Date: Thu, 13 Nov 2025 19:07:53 -0800 Subject: [PATCH] fix(logs): show block inputs (#1979) * Fix executor lgos block inputs * Fix Comment --- apps/sim/executor/execution/block-executor.ts | 3 +++ apps/sim/lib/environment.ts | 6 ++++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/apps/sim/executor/execution/block-executor.ts b/apps/sim/executor/execution/block-executor.ts index 618f48224..a50aa5951 100644 --- a/apps/sim/executor/execution/block-executor.ts +++ b/apps/sim/executor/execution/block-executor.ts @@ -72,6 +72,9 @@ export class BlockExecutor { try { resolvedInputs = this.resolver.resolveInputs(ctx, node.id, block.config.params, block) + 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 32ec45747..835f54c8b 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