"Automations" don't seem to properly respect the Rules
What version of the Codex App are you using (From “About Codex” dialog)?
Version 260203.1501 (523)
What subscription do you have?
Business
What issue are you seeing?
Commands run via Automation locally are not properly evaluated against Rules, but instead are run in the sandbox and, as such, fail.
What steps can reproduce the bug?
When creating an Automation in the "Automations", and asking the Automation to run a command which is explicitly allowed in a Rule in the repository, it does not actually succeed in running the command (which requires network access), instead the command is run inside the sandbox (with no network access) and fails. The command I used was UV_CACHE_DIR=/tmp/uv-cache uv run pip-audit, but I believe that any command will reproduce the issue.
What is the expected behavior?
Just like in the Codex CLI, which works, the commands run should be checked against the Rules and if they are allowed under the rules, they should be allowed to run outside the sandbox.
Additional information
_No response_
6 Comments
Potential duplicates detected. Please review them and close your issue if it is a duplicate.
Powered by Codex Action
Thanks for the bug report. Are you able to run the same command successfully in a normal thread in the app, a thread that's not started via an automation?
So interestingly, when I try to run it in a normal thread, I get prompted whether or not to approve network access (this despite the rule explicitly allowing running this command outside the sandbox). So I guess this is two bugs:
.codex/rules/my-thing.rules.Does that make sense?
Since there isn't anything particularly special / secret / interesting about my code here, I can share a snippet:
My
.codex/rules/pip-audit.rulesfile:My prompt:
Other than having a
venvcreated withuvand havingpip-auditinstalled in thatvenv, I don't think that there is anything specific to our codebase, but since that codebase is open source anyway, here is the branch I was testing this from: https://github.com/Hirundo-io/hirundo-python-sdk/tree/sdk-87-allow-codex-to-run-pip-audit-and-fix-vulnerabilitiesWeirdly, I just upgraded to Codex CLI version 0.96.0 and it also doesn't seem to run the command automatically, but prompts for whether to allow network access... so maybe something changed that affects both Codex app and Codex CLI recently?
same issue here...automation dont have network/fetch access...but moment you continue conversation it works
Also seeing this issue. @etraut-openai do you need more info on this to debug this?
@etraut-openai Is it worth trying to ask Codex to debug this issue in the Codex App and fix it? :P
If so, I'd happy to give it a try