code-mode: cut production over to stdio host

This commit is contained in:
Channing Conger
2026-06-21 08:35:01 +00:00
parent 60dad3fc7e
commit afef87eb07
40 changed files with 598 additions and 2866 deletions
+7
View File
@@ -54,6 +54,13 @@ def main() -> int:
check=True,
env=env,
)
target_dir = Path(env.get("CARGO_TARGET_DIR", CODEX_RS_ROOT / "target"))
if not target_dir.is_absolute():
target_dir = CODEX_RS_ROOT / target_dir
host_name = (
"codex-code-mode-host.exe" if os.name == "nt" else "codex-code-mode-host"
)
env["CODEX_CODE_MODE_HOST_PATH"] = str(target_dir / "debug" / host_name)
return subprocess.run(
[cargo, "nextest", "run", "--no-fail-fast", *sys.argv[1:]],
cwd=CODEX_RS_ROOT,