Skip to content

Commit 2d794cd

Browse files
committed
test(release): filter owned smoke launch environment
1 parent 7630821 commit 2d794cd

1 file changed

Lines changed: 7 additions & 5 deletions

File tree

scripts/smoke-pylon-prime-agent-release.mjs

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -393,12 +393,14 @@ try {
393393
if (!client.hello?.serverCapabilities?.includes("correlated_prompt_lifecycle_v1")) throw new Error("Daemon did not offer correlated lifecycle.");
394394
if (!client.hello?.serverCapabilities?.includes("caller_owned_session_environment_cleanup_v1")) throw new Error("Daemon did not offer caller-owned environment cleanup.");
395395
const launchEnv = Object.fromEntries(
396-
Object.entries(process.env).filter(
397-
([name, value]) =>
396+
Object.entries(process.env).filter(([name, value]) => {
397+
const normalizedName = name.toUpperCase();
398+
return (
398399
typeof value === "string" &&
399-
!name.startsWith("PRIME_AGENT_INTERNAL_DAEMON_") &&
400-
!name.startsWith("RLM_"),
401-
),
400+
!normalizedName.startsWith("PRIME_AGENT_INTERNAL_") &&
401+
normalizedName !== "RLM_DEPTH"
402+
);
403+
}),
402404
);
403405
launchEnv.PRIME_AGENT_CODING_AGENT_DIR = agentDir;
404406
const sessionConfig = {

0 commit comments

Comments
 (0)