Skip to content

Commit bda8c15

Browse files
authored
fix: sign Codex code-mode host with JIT entitlements (#937)
fix(sidecar): sign Codex code-mode host for JIT
1 parent f1af860 commit bda8c15

2 files changed

Lines changed: 8 additions & 1 deletion

File tree

.changeset/fresh-tools-work.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"helmor": patch
3+
---
4+
5+
Fix Codex code-mode tool calls failing in signed macOS builds.

sidecar/scripts/stage-vendor.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -508,7 +508,9 @@ function stageCodexFromVendorRoot(archRoot: string): void {
508508
const hostDest = join(DIST_VENDOR, "codex", `codex-code-mode-host${EXE}`);
509509
copyFile(hostSrc, hostDest);
510510
chmodSync(hostDest, 0o755);
511-
maybeSignMacBinary(hostDest, false);
511+
// The host embeds V8, which needs executable-memory entitlements under
512+
// the hardened runtime or it traps during isolate initialization.
513+
maybeSignMacBinary(hostDest, true);
512514
}
513515

514516
const pathSrc = join(archRoot, pathDir);

0 commit comments

Comments
 (0)