Directory trusting doesn't account for moved directories
Resolved 💬 0 comments Opened Aug 31, 2025 by genevievehelsel Closed Dec 12, 2025
What version of Codex is running?
0.27.0
Which model were you using?
doesn't matter
What platform is your computer?
Darwin 24.5.0 arm64 arm
What steps can reproduce the bug?
Probably not a big deal, but just pointing out this edge case:
If you "trust" a directory, mv it, make a new (non-repo) directory, cd into the new directory, and run codex, you skip the "trust" codepath.
What is the expected behavior?
_No response_
What do you see instead?
_No response_
Additional information
You could save the st_birthtime in .codex/config.toml and reference that during startup to determine if a directory should continue to be trusted.