From cc848b0d80b161aa169bcef8f7851d01e3837c34 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Franti=C5=A1ek=20Boh=C3=A1=C4=8Dek?= Date: Sat, 26 Sep 2026 21:52:24 +0200 Subject: [PATCH] Export AGENT_ENV_LAUNCHER, the launcher's command name --- checks/default.nix | 1 + modules/launcher.nix | 1 + 2 files changed, 2 insertions(+) diff --git a/checks/default.nix b/checks/default.nix index ed1ee2e53b3282ad60d17aa7cf883c329c1e218e..b11748e2588140964d46176072d26a9c07158a93 100644 --- a/checks/default.nix +++ b/checks/default.nix @@ -14,6 +14,7 @@ let { echo "CLAUDE_CONFIG_DIR=''${CLAUDE_CONFIG_DIR:-}" echo "CODEX_HOME=''${CODEX_HOME:-}" + echo "AGENT_ENV_LAUNCHER=''${AGENT_ENV_LAUNCHER:-}" if command -v hello >/dev/null; then echo "HELLO=yes"; else echo "HELLO=no"; fi } >"$log.env" ''; diff --git a/modules/launcher.nix b/modules/launcher.nix index 233757325a8165e9fa0b6a43e20aa2bde3214ce0..d362be4338bd4fab13fa3a46409c85cc4c988e7a 100644 --- a/modules/launcher.nix +++ b/modules/launcher.nix @@ -106,6 +106,7 @@ let exec {lock}>&- export ${agent.stateEnvVar}="$state" + export AGENT_ENV_LAUNCHER=${lib.escapeShellArg name} ${lib.optionalString ( runtimePath != "" ) ''export PATH=${lib.escapeShellArg runtimePath}"''${PATH:+:$PATH}"''}