Fix Codex global RTK reference path on macOS#1002
Conversation
|
Thx mate , wanted to do it this weekend but u are so reactive ❤️ |
df1e594 to
925100c
Compare
925100c to
76709a4
Compare
em0t
left a comment
There was a problem hiding this comment.
I tested this on macOS with a temporary HOME and the behavior matches the PR description.
On this branch:
- global
rtk init -g --codexwrites a plain absolute RTK path into~/.codex/AGENTS.md - legacy global references migrate correctly
- uninstall removes the RTK reference cleanly and stays idempotent
- local
rtk init --codexstill keeps the project-local@RTK.mdflow
No blockers from my side.
|
Thanks for the quick fix @jiemojiemo — you were one of the first to jump on issue #996 and the approach was sound at the time. However, this PR is now outdated and we'll close it. Here's why: 1. Fix already landed in 2. 3. Native Codex hooks incoming (PR #899) Closing this PR — thank you again for the contribution and the responsiveness on the issue. The fix is live in |
Description:
Summary
This PR fixes a Codex global init issue on macOS where
rtk init -g --codexwrote@RTK.mdinto~/.codex/AGENTS.md, but Codex resolved that reference relative to the current project instead of~/.codex. As a result, Codex could fail to find the globalRTK.mdwhen opened in another repository.What changed
~/.codex/RTK.mdpath into~/.codex/AGENTS.md@RTK.mdreference@RTK.mdreferences to the new absolute-path formatTests
Added and updated unit tests covering:
AGENTS.md@RTK.mdreference to an absolute pathValidated with:
Why this matters
Codex global instructions should remain valid no matter which project is opened. Writing an absolute path for global Codex setup makes the configuration stable across repositories, while preserving the existing local-project workflow.