diff --git a/packages/mosaic/framework/tools/fleet/test-start-agent-session.sh b/packages/mosaic/framework/tools/fleet/test-start-agent-session.sh index eca95fdf..e7d8e94f 100755 --- a/packages/mosaic/framework/tools/fleet/test-start-agent-session.sh +++ b/packages/mosaic/framework/tools/fleet/test-start-agent-session.sh @@ -304,6 +304,13 @@ PANE_BASH_ENV="$ROOT/pane-boundary.bash-env" printf 'MOSAIC_RUNTIME_BIN=%s\n' "$FAKE_BIN" > \ "$HOME_PANE_BOUNDARY/fleet/agents/coder-pane-boundary.env.local" chmod 600 "$HOME_PANE_BOUNDARY/fleet/agents/coder-pane-boundary.env.local" +# This case does not go through run_start, so its pane binaries come from +# MOSAIC_RUNTIME_BIN=$FAKE_BIN in the env.local written above — not from the +# symlinks install_pane_binaries planted under the generated home, which this +# launcher never consults because HOME here is the trusted parent. That is a +# legitimate resolution path, but it means dropping MOSAIC_RUNTIME_BIN from +# this case on the belief that the symlinks cover it would break the #1241 +# binary check rather than exercise it. LD_PRELOAD='/not/loaded/by-clean-bootstrap.so' \ BASH_ENV="$PANE_BASH_ENV" \ MOSAIC_UNTRUSTED_SENTINEL='must-not-reach-pane' \