fix(windows): launch npm-installed native session CLIs (#122334)

* fix(windows): resolve runnable npm launchers

* fix(windows): preserve npm shim argv in terminal sessions
This commit is contained in:
Peter Steinberger
2026-08-11 18:41:35 -07:00
committed by GitHub
parent c37023ff96
commit a5420dfd91
15 changed files with 567 additions and 144 deletions
@@ -262,6 +262,21 @@ describe("detectChangedScope Windows routing", () => {
}
});
it("routes node-host executable resolution and native coverage to Windows", () => {
for (const executablePath of [
"src/plugin-sdk/node-host.ts",
"src/plugin-sdk/node-host.test.ts",
"src/process/terminal-pty.test.ts",
"src/tui/tui.ts",
"src/tui/tui.resolve-codex-bin.test.ts",
]) {
expect(detectChangedScope([executablePath]), executablePath).toMatchObject({
runNode: true,
runWindows: true,
});
}
});
it("routes explicit memory extra-file owners and native coverage to Windows", () => {
for (const memoryPath of [
"packages/memory-host-sdk/src/host/explicit-extra-markdown.ts",