Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion tests/clients/remote-workspace-codex-runtime.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -244,7 +244,9 @@ test.skipIf(process.platform === "win32")("a macOS bundle alias is replaced by t
const home = mkdtempSync(join(tmpdir(), "ocx-remote-mac-home-"));
const bundleBinary = join(home, "Applications", "ChatGPT.app", "Contents", "Resources", "codex-cli", "bin", "codex");
mkdirSync(dirname(bundleBinary), { recursive: true });
try { linkSync(process.execPath, bundleBinary); } catch { copyFileSync(process.execPath, bundleBinary); }
// A hardlink shares Bun's inode; macOS realpath can return either pathname.
// Give the bundle binary its own identity so canonicalization has one target.
copyFileSync(process.execPath, bundleBinary);
const canonicalBinary = realpathSync(bundleBinary);
const aliasRoot = mkdtempSync(join(tmpdir(), "ocx-remote-mac-alias-"));
const alias = join(aliasRoot, "codex");
Expand Down
Loading