Skip to content

Fix Codex usage limits with current app-server approval policy - #7911

Closed
limineol wants to merge 1 commit into
omacom:quattrofrom
limineol:fix/codex-usage-app-server-policy
Closed

limineol wants to merge 1 commit into
omacom:quattrofrom
limineol:fix/codex-usage-app-server-policy

Conversation

@limineol

Copy link
Copy Markdown

Summary

  • Use Codex CLI's current non-interactive approval policy when starting the app-server.
  • Add a regression check that rejects the obsolete approval-policy argument and requires a successful app-server handshake.

Testing

  • bash test/shell.d/agent-usage-codex-scanner-test.sh
  • ./test/all (the suite reaches the changed tests successfully; six unrelated environment/fixture tests fail because the omarchy-pkgs companion checkout is unavailable and the sandbox lacks normal compositor/runtime paths)

Copilot AI balanced review requested due to automatic review settings August 23, 2026 15:29

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Updates the Codex usage collector to use the supported non-interactive approval policy and adds regression coverage for the app-server handshake.

Changes:

  • Replace the obsolete untrusted policy with never.
  • Verify exact app-server arguments and successful handshake behavior.

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 Uses the current non-interactive Codex approval policy.
test/shell.d/agent-usage-codex-scanner-test.sh Adds argument and handshake regression checks.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants