~ruther/agent-environments

cc848b0d80b161aa169bcef8f7851d01e3837c34 — František Boháček 2 months ago 354e163
Export AGENT_ENV_LAUNCHER, the launcher's command name
2 files changed, 2 insertions(+), 0 deletions(-)

M checks/default.nix
M modules/launcher.nix
M checks/default.nix => checks/default.nix +1 -0
@@ 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"
    '';

M modules/launcher.nix => modules/launcher.nix +1 -0
@@ 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}"''}