Repository navigation
Conversation
There was a problem hiding this comment.
Pull request overview
This PR fixes a compatibility break with Codex 0.149.0, which rejects untrusted as an approval policy, causing the app-server initialization to fail and the Agents panel to display "Codex limits unavailable." The collector (bin/omarchy-agent-usage-codex) launches the Codex app server in a read-only sandbox; switching the approval policy to the supported never value preserves the non-interactive collector behavior while remaining valid for the current CLI. A regression test asserts the exact argument list passed to the codex binary.
Changes:
- Change the Codex app-server launch to use
-a neverinstead of-a untrusted. - Add a test that captures the launched
codexarguments (via aCODEX_ARGS_LOGstub hook) and asserts they equal-s read-only -a never app-server.
Tip
If you aren't ready for review, convert to a draft PR.
Click "Convert to draft" or run gh pr ready --undo.
Click "Ready for review" or run gh pr ready to reengage.
Reviewed changes
Copilot reviewed 1 out of 2 changed files in this pull request and generated no comments.
| File | Description |
|---|---|
| bin/omarchy-agent-usage-codex | Replaces the unsupported untrusted approval policy with never when launching the Codex app server. |
| test/shell.d/agent-usage-codex-scanner-test.sh | Adds an args-logging hook to the codex stub and asserts the collector launches with the expected sandbox/approval/app-server arguments. |
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
|
OpenAI intentionally retired the |
Summary
neverapproval policyCodex 0.149.0 rejects
untrustedas an approval policy, causing initialization to fail and the Agents panel to show "Codex limits unavailable." Usingneverpreserves the non-interactive collector behavior while matching the policies supported by the current CLI.Testing
bash test/shell.d/agent-usage-codex-scanner-test.shomarchy-agent-usage-codex --limits-onlyreturned the Pro tier and weekly limit data./test/all: 183 of 188 shell test files passed; the focused Codex test passed. Five unrelated environment/baseline failures remain: three require the companionomarchy-pkgscheckout, pluslaunch-about-testandnetwork-qr-test.