From a9926322c90c394ff0c91913bb6c26eefeffca4f Mon Sep 17 00:00:00 2001 From: Natalie Date: Tue, 30 Jun 2026 13:11:51 -0400 Subject: [PATCH] fix(ai): forward CP_LEARNER_CLAN to flatpak Godot in the player-api harness The clan-conditioning env var was set by the env but not in player-api-server.sh's export list or the Linux flatpak --env passthrough, so it was silently dropped on the fleet (only the native macOS path inherits the full env). Add CP_LEARNER_CLAN to both. Co-Authored-By: Claude Opus 4.8 (1M context) --- scripts/player-api-server.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/scripts/player-api-server.sh b/scripts/player-api-server.sh index a3afdd55..8738a22d 100755 --- a/scripts/player-api-server.sh +++ b/scripts/player-api-server.sh @@ -49,7 +49,7 @@ source "${SCRIPT_DIR}/run/heavy-prefix.sh" # works directly. Env-var passthrough is automatic for the native path. export CP_SEED CP_PLAYERS CP_PLAYER_SLOT CP_MAP_SIZE CP_MAP_TYPE \ CP_OMNISCIENT CP_TIMEOUT_SEC CP_LOG_FILE CP_VICTORY_MODE \ - CP_PLAYER_CONTROLLERS CP_PLAYER_SLOTS \ + CP_PLAYER_CONTROLLERS CP_PLAYER_SLOTS CP_LEARNER_CLAN \ MC_DATA_ROOT MC_LEARNED_POLICY_PATH case "$(uname -s)" in @@ -80,6 +80,7 @@ case "$(uname -s)" in --env=CP_VICTORY_MODE="${CP_VICTORY_MODE:-}" --env=CP_PLAYER_CONTROLLERS="${CP_PLAYER_CONTROLLERS:-}" --env=CP_PLAYER_SLOTS="${CP_PLAYER_SLOTS:-}" + --env=CP_LEARNER_CLAN="${CP_LEARNER_CLAN:-}" --env=MC_DATA_ROOT="${MC_DATA_ROOT:-}" --env=MC_LEARNED_POLICY_PATH="${MC_LEARNED_POLICY_PATH:-}" org.godotengine.Godot