Repository navigation
Conversation
…licy
codex-cli dropped "untrusted" as an --ask-for-approval value, keeping only
on-request and never. The app-server subprocess omarchy-agent-usage-codex
spawns now exits immediately on this invalid flag, so the initialize RPC
never gets a reply and times out after 8s. The widget then shows "Codex
limits unavailable" with the raw TimeoutError text ("initialize") as the
help line, even though local token stats keep working fine via the
separate file-scan path.
Use "never": this process only calls the read-only account/read and
account/rateLimits/read RPCs, so it never needs to ask for approval.
Fixes omacom#7781
Contributor
There was a problem hiding this comment.
Copilot wasn't able to review any files in this pull request.
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
Author
|
Closing as a duplicate — #7770 covers the same root cause (retired |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
omarchy-agent-usage-codexstartscodex app-serverwith-a untrusted, but currentcodex-cli(0.149.0+) only acceptson-requestorneverfor--ask-for-approval. The subprocess now exits immediately on this invalid flag instead of speaking the RPC protocol, so the script'sinitializerequest times out after 8s and the Codex tab shows "Codex limits unavailable" with the rawTimeoutErrortext (initialize) as the help line. Local token stats are unaffected since they come from a separate file-scan path.-a never. Verified this is semantically correct, not just a value that happens to work: this process only calls the read-onlyaccount/readandaccount/rateLimits/readRPCs and never asks the model to run anything, so paired with-s read-onlyit makes the intent explicit — a fully non-interactive, read-only probe that can never block on an approval prompt.Fixes #7781
Test plan
codex -s read-only -a untrusted app-serverfails witherror: invalid value 'untrusted' for '--ask-for-approval <APPROVAL_POLICY>'-a never(and separately with-a on-request, for comparison) returns real rate limits (plan: plus, weekly window populated) instead of timing out./test/all— only pre-existing, environment-caused failures unrelated to this change (missingomarchy-pkgscheckout forconfig-test.sh/unowned-system-paths-test.sh, a permission bit onsnapper-test.sh); confirmed these three also fail identically onquattrobefore this change🤖 Generated with Claude Code