Suppoert symlinked .rules files

Open 💬 2 comments Opened Mar 15, 2026 by KeqiZeng

What version of Codex CLI is running?

codex-cli 0.114.0

What subscription do you have?

Plus

Which model were you using?

gpt-5.4

What platform is your computer?

Darwin 25.3.0 arm64 arm

What terminal emulator and version are you using (if applicable)?

Kitty 0.46.0

What issue are you seeing?

The symlinked rules file in rules folder is ignored by rules loader

What steps can reproduce the bug?

echo 'prefix_rule(pattern=["git", "add"], decision="allow")' >> /tmp/demo.rules
ln -sf /tmp/demo.rules ~/.codex/rules/demo.rules

# in a git repo
codex

and then ask the agent to use git add to stage some files. It still ask for the approval even if the demo.rules defined the prefix_rule for git add

What is the expected behavior?

The symlinked rules file should be loaded automatically.

Additional information

_No response_

View original on GitHub ↗

This issue has 2 comments on GitHub. Read the full discussion on GitHub ↗