ReviewOS

also looking at this

craft-native/craft

feat: add Linux and Windows named-window routing

#325
Merged glennmichael123 wants to merge codex/multi-window-linux-windows into main
29 files +2250 -200

Review threads live on the whole diff, not on one commit, so none are shown here - a thread's line means something in the branch's final form, and painting it into an intermediate step would put it on code it is not about.

.github/workflows/ci.ymlmodified+1-1
Changes to .github/workflows/ci.yml
@@ -112,7 +112,7 @@ jobs:
112112 run: |
113113 # The Pantry .bin shim can print zig version but cannot locate Zig's
114114 # lib directory during a build. Run the locked package binary itself.
115 $env:CRAFT_ZIG = Join-Path $env:GITHUB_WORKSPACE 'pantry/ziglang.org/v0.17.0-dev.1963_e00c6c439/bin/zig.exe'
115 $env:CRAFT_ZIG = Join-Path $env:GITHUB_WORKSPACE 'pantry/ziglang-org/0.17.0-dev.1963_e00c6c439/bin/zig.exe'
116116 if (-not (Test-Path -LiteralPath $env:CRAFT_ZIG)) { throw "Pinned Zig executable missing: $env:CRAFT_ZIG" }
117117 bun run build:core
118118
scripts/zig.test.tsmodified+1-1
Changes to scripts/zig.test.ts
@@ -31,7 +31,7 @@ test('accepts only the locked snapshot by default, even when PATH shadows it', (
3131test('Windows uses the pinned Pantry installation instead of its .bin shim', () => {
3232 const f = fixture()
3333 const version = pinnedZigVersion(f.root)
34 const installed = join(f.root, 'pantry/ziglang.org/v0.17.0-dev.1963_e00c6c439/bin/zig.exe')
34 const installed = join(f.root, 'pantry/ziglang-org/0.17.0-dev.1963_e00c6c439/bin/zig.exe')
3535 expect(pinnedPantryZigPath(f.root, version, f.env, 'win32')).toBeNull()
3636 mkdirSync(join(installed, '..'), { recursive: true })
3737 writeFileSync(installed, '')
scripts/zig.tsmodified+1-1
Changes to scripts/zig.ts
@@ -11,7 +11,7 @@ export function pinnedZigVersion(root: string): string {
1111
1212export function pinnedPantryZigPath(root: string, expected: string, env: NodeJS.ProcessEnv, hostPlatform: string): string | null {
1313 if (hostPlatform !== 'win32' || env.CRAFT_ZIG) return null
14 const installed = join(root, 'pantry', 'ziglang.org', `v${expected.replace('+', '_')}`, 'bin', 'zig.exe')
14 const installed = join(root, 'pantry', 'ziglang-org', expected.replace('+', '_'), 'bin', 'zig.exe')
1515 return existsSync(installed) ? installed : null
1616}
1717