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
Plannotator's document chat / "Ask" flow appears to launch Codex with approval_policy = Never, which breaks in enterprise-managed environments where that policy is disallowed.
In my environment, Codex only allows OnRequest and UnlessTrusted, so the document chat flow shows an approval-policy error and does not behave correctly.
Observe the launched Codex session / chat behavior.
Actual behavior
The document chat flow shows this error:
Configured value for `approval_policy` is disallowed by requirements; falling back to required value OnRequest. Details: invalid value for `approval_policy`: `Never` is not in the allowed set [OnRequest, UnlessTrusted] (set by enterprise-managed requirements ...)
In practice, this makes the document chat flow broken or unreliable.
Expected behavior
Plannotator should launch Codex in a way that is compatible with enterprise-managed requirements.
For example, it should:
inherit the user's allowed/default Codex approval policy, or
use OnRequest, or
expose the approval policy for this flow as a configurable option
Investigation notes
This does not appear to be caused by:
the normal Plannotator binary install
Codex hooks setup
my visible Codex config file
From local debugging, the problematic sessions appear to be launched as a codex-auto-review / guardian-style flow, and the recorded session config shows:
approval_policy = "never"
sandbox_policy = "read-only"
That suggests this is specifically related to how the document chat / Ask flow launches Codex, rather than a general install issue.
Related issues
These seem related but do not appear to cover this exact bug:
Activity
fix(ai): drive Codex Ask AI via codex app-server (#971)