You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Bug]: Persisted Codex shim device IDs cause false ownership refusal after an APFS restart #7041
The private Codex PATH shim persists st_dev + st_ino as its ownership identity (src/codex/shim-overlay.ts:45). On APFS the device number of the volume changes across reboots while the inode stays the same. After a restart ocx treats its own unchanged wrapper as foreign ("Private Codex launcher was replaced; preserving it"), reports the shim unhealthy and refuses to repair it.
Reproduction
Install the Codex PATH overlay on macOS/APFS (ocx codex-shim install).
Reboot.
Compare ~/.opencodex/codex-shim.json with stat(), then run ocx update or ocx codex-shim install.
Wrapper owner, content and recorded launcher still match.
Version
@bitkyc08/opencodex 2.84.0
Operating system
macOS 27 (Apple Silicon, APFS)
Provider and model
n/a
Logs or error output
Private Codex launcher was replaced; preserving it
Codex shim installation was refused
opencodex: Codex shim repair failed (1)
Redacted configuration
Client mode, Codex shim installed via ocx codex-shim install.
Proposed fix
Separate durable ownership from same-inspection identity: for the persisted check use a reboot-stable volume identifier (or inode plus the existing path/owner/content validation) instead of st_dev. Keep dev in sameId() for snapshot/transaction checks, which guard against concurrent replacement. Our local workaround compares only the inode for the persisted check.
Screenshots and supporting files
No response
Checks
I searched existing issues and documentation.
I removed secrets, tokens, account details, request credentials, and personal data.
Activity
lidge-jun commentedon Oct 15, 2026
Fixed on dev by #7061 (merged 2026-10-13); dev isn't the default branch, so it didn't auto-close.