fix: reload MCP launchers when runtime changes

This commit is contained in:
HumbleTurtle
2026-08-21 22:33:56 -03:00
parent 7ca30e690d
commit 8921b131ef
3 changed files with 74 additions and 7 deletions
+6
View File
@@ -46,6 +46,12 @@ directory, add a trusted project `.codex/config.toml` override with both
`cwd` and `NAPSEER_PROJECT_ROOT`. MCP processes inherit their launch directory;
they cannot infer a later client workspace switch over stdio.
If `NAPSEER_MCP_WORKER_PATH` points to a stable launcher that loads a separate,
replaceable runtime, set `NAPSEER_MCP_WORKER_WATCH_PATHS` to the
`os.pathsep`-separated runtime paths. The supervisor then reloads the launcher
after any watched runtime is atomically replaced, preserving the same bounded,
non-replaying request lifecycle used for direct workers.
The public operator surface is intentionally small:
```text