Skip to content

The agent that grows with you

fix(update): the minted launcher keeps the first line gateway identity recognises

Teknium37074db421ed
diff --git a/hermes_cli/_launchers.py b/hermes_cli/_launchers.py
index a70412e9fe7..1e15625cb19 100644
--- a/hermes_cli/_launchers.py
+++ b/hermes_cli/_launchers.py
@@ -436,8 +436,10 @@ def _launcher_script(name: str, repo_root: Path, dependencies: Path | None) -> s
.replace("__ROOT__", repr(root))) # last: a path is never re-substituted
return (
# The repair's own stdlib, bound before the checkout root goes on sys.path: a stdlib-named
- # file in the tree must not run in its place ahead of the closure's verification.
- "import contextlib, hashlib, io, os, pathlib, re, shutil, subprocess, sys\n"
+ # file in the tree must not run in its place ahead of the closure's verification. The first
+ # line stays the shape gateway.status._BOOTSTRAPS recognises as this launcher (#124318).
+ "import os, re, sys\n"
+ "import contextlib, hashlib, io, pathlib, shutil, subprocess\n"
"os.environ.pop('PYTHONHOME', None)\n"
"os.environ.pop('PYTHONPATH', None)\n"
f"sys.path.insert(0, {root!r})\n"