Skip to content

mario: the launcher finds the interpreter and the browsers by name - #30

Merged
richard-epsilla merged 1 commit into
mainfrom
kit-mario-launcher
Sep 20, 2026
Merged

richard-epsilla merged 1 commit into
mainfrom
kit-mario-launcher

Conversation

@richard-epsilla

Copy link
Copy Markdown
Contributor

Two findings from the hosted System One port, both about the kit's launcher plugin/bin/mario-env:

  1. An MCP stdio server gets a restricted environment from the SDK, so PLAYWRIGHT_BROWSERS_PATH exported by the image never reaches mario_env.py. It worked on the open-source image only because the launcher's fallback root happened to be the volume path.
  2. A hosted sandbox's HOME is made per session, so the $HOME/.systemone-venv candidate never matches a venv the image installed.

The launcher now finds both by name: SYSTEMONE_PYTHON if the host set it for the server, then /data/agent-tools/systemone-venv, /opt/systemone-venv and the home venv; and, when PLAYWRIGHT_BROWSERS_PATH is unset, the first of /data/agent-tools/ms-playwright, /opt/ms-playwright, /ms-playwright and ~/.cache/ms-playwright that holds a chromium-* directory. An image that keeps its browsers in one of those places needs no link or export. Plugin 0.3.2, so a launched harness relaunches onto it from the kit page.

No change to the environment or the kit's instructions; the released 0.3.1 game logic is untouched.

🤖 Generated with Claude Code

An MCP stdio server gets a restricted environment from the SDK, so nothing the
image exported reaches the launcher, and a hosted sandbox's HOME is made per
session, so a home-relative venv never matches one the image installed (both
found by the hosted port). The launcher now takes SYSTEMONE_PYTHON if the host
set it for the server, then the known venv paths, and picks the first known
browser root that holds a chromium-* directory when PLAYWRIGHT_BROWSERS_PATH is
unset. Plugin 0.3.2, so a launched harness relaunches onto it.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
@richard-epsilla
richard-epsilla merged commit c5b4a31 into main Sep 20, 2026
6 checks passed
@richard-epsilla
richard-epsilla deleted the kit-mario-launcher branch September 20, 2026 23:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant