From e482810328b53c7559ee35037e42dc18a754e2c6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20Kr=C3=BCger?= Date: Sun, 16 Aug 2026 17:31:31 +0200 Subject: [PATCH] Show env-passed variables in the displayed run command line redactedCommandLine only ever included argv (script.command + args), so a passAs:env variable like a scene name was invisible in run history even though it's the main thing that varied between runs. Secrets still redact to *** instead of being omitted outright. --- src/lib/runner/build-args.ts | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/src/lib/runner/build-args.ts b/src/lib/runner/build-args.ts index 9f47675..a1d9238 100644 --- a/src/lib/runner/build-args.ts +++ b/src/lib/runner/build-args.ts @@ -26,6 +26,7 @@ export function buildInvocation( const argv = [...script.args]; const env: Record = {}; const redactedArgv = [...script.args]; + const redactedEnvAssignments: string[] = []; const redactedVariables: Record = {}; for (const variable of script.variables) { @@ -55,6 +56,9 @@ export function buildInvocation( case "env": { const value = stringifyValue(raw, variable.joinWith); env[variable.envName!] = value; + redactedEnvAssignments.push( + `${variable.envName}=${variable.secret ? REDACTED : value}`, + ); break; } case "stdin": { @@ -74,7 +78,11 @@ export function buildInvocation( ) : undefined; - const redactedCommandLine = [script.command, ...redactedArgv].join(" "); + const redactedCommandLine = [ + ...redactedEnvAssignments, + script.command, + ...redactedArgv, + ].join(" "); return { argv, env, stdin, redactedVariables, redactedCommandLine }; }