Skip to content

Fix and verify Codex hooks on native Windows - #1

Merged
dextah merged 2 commits into
mainfrom
fix/codex-windows-hooks
Oct 22, 2026
Merged

dextah merged 2 commits into
mainfrom
fix/codex-windows-hooks

Conversation

@dextah

@dextah dextah commented Oct 22, 2026

Copy link
Copy Markdown
Owner

Codex workers on Windows could run normally while every Office hook failed because quoted Node commands used POSIX syntax. Preserve the existing PowerShell quoting fix, verify generated commands through the real Windows shell and authenticated lifecycle bridge, and keep callback failures visible as informational Codex warnings. Large tool events now have a bounded 1 MiB input budget, while only lifecycle metadata reaches the Office.

Add a focused Windows CI job, a Windows junction regression for usage-path containment, and setup/restart troubleshooting in README.md and docs/agents.md. Native SessionStart and UserPromptSubmit callbacks were also verified using installed Codex CLI 0.163.0 and an isolated temporary Codex home, without credentials or model requests.

Validation: npm run typecheck and npm run build passed. All 14 focused Codex tests passed, as did the model catalogue and source-size checks. npm test was attempted on Windows but encountered existing POSIX fixture/platform failures (including Unix executable fixtures and symlink privileges) and stalled; that run was stopped. The existing Ubuntu workflow remains the full-suite check.

dextah and others added 2 commits October 22, 2026 02:22
Codex runs hook commands through PowerShell on Windows, where the POSIX
'...' quoting made every Office hook fail, so Codex workers never reported
status, needs-input or usage. Windows now gets `& '...' '...' 'Event'`
with single quotes doubled; POSIX is unchanged. The boot hint and docs say
to trust the Office hooks when Codex asks.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@dextah
dextah merged commit 74270b2 into main Oct 22, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant