feat(codex): load Windows guidance as a platform overlay#955
Open
TyceHerrman wants to merge 1 commit into
Open
feat(codex): load Windows guidance as a platform overlay#955TyceHerrman wants to merge 1 commit into
TyceHerrman wants to merge 1 commit into
Conversation
TyceHerrman
marked this pull request as ready for review
July 14, 2026 00:06
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What / Why / How
Fixes #940
What
AGENTS.windows.mdoverlay.Why
The shared Codex instructions currently send PowerShell, drive-letter, and Windows path guidance to macOS and Linux sessions. Those rules are useful on Windows but irrelevant elsewhere and consume prompt space.
How
win32sessions.AGENTS.mdalready contains the Windows guidance.AGENTS.mdfiles.Affected platforms
Test plan
npx vitest run tests/adapters/codex.test.ts— 76/76 tests passed.npm run build— passed, including bundle and asymmetric-drift assertions.env -u CONTEXT_MODE_PLATFORM npm test— 210/210 files passed; 4,724 tests passed and 24 skipped.npm run typecheck— passed.Checklist
npm testpassesnpm run typecheckpassesnextbranch (unless hotfix)Cross-platform notes
CI runs on Ubuntu, macOS, and Windows. The overlay helper accepts an explicit platform for deterministic tests, while SessionStart uses the current runtime platform. Path handling uses Node path APIs and packaged file URLs; no hardcoded Windows separators are introduced.