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
{{ message }}
Repository navigation
Agents plugin cannot read Codex limits with Codex CLI 0.149.0 because -a untrusted is invalid #7873
Local Codex token-usage statistics are displayed, but the subscription limit meters and reset times are unavailable.
Codex itself is authenticated and working normally. codex doctor reports no authentication, installation, database, or connectivity failures.
Cause
The packaged Codex collector starts the Codex app server using:
codex -s read-only -a untrusted app-server
Codex CLI 0.149.0 no longer accepts untrusted as an approval policy. Running that command directly produces:
error: invalid value 'untrusted'for'--ask-for-approval <APPROVAL_POLICY>'
[possible values: on-request, never]
Because the app server exits before responding to the initialization RPC, omarchy-agent-usage-codex returns:
{
"tierLabel": "",
"limits": [],
"usageStatusText": "Codex limits unavailable",
"authHelpText": "initialize"
}
The relevant command is currently constructed in:
/usr/share/omarchy/bin/omarchy-agent-usage-codex
It appears that the collector needs to replace -a untrusted with a currently supported value, likely -a never, given that it starts the app server in a read-only sandbox solely to query account information.
## Steps to reproduce
1. Install Omarchy 4.0.0-1 and Codex CLI 0.149.0.
2. Authenticate Codex using codex login.
3. Use Codex so that it appears in the Omarchy Agents plugin.
4. Open the Agents panel or refresh its data.
5. Observe “Codex Limits Unavailable” with “initialize” beneath it.
The issue can also be reproduced directly with:
omarchy-agent-usage-codex --limits-only |
jq '{tierLabel, limits, usageStatusText, authHelpText}'
Result:
{
"tierLabel": "",
"limits": [],
"usageStatusText": "Codex limits unavailable",
"authHelpText": "initialize"
}
## Expected behaviour
The collector should start the Codex app server successfully, query account/rateLimits/read, and display the available Codex limit windows and reset times.
If app-server startup fails, it would also be helpful for the panel to display the underlying stderr message instead of only the RPC stage name initialize.
Confirming this still reproduces on Omarchy 4.0.0-1 with codex-cli 0.149.0 (installed via mise). Root cause matches: codex -s read-only -a untrusted app-server fails immediately with error: invalid value 'untrusted' for '--ask-for-approval', so the collector's initialize RPC call times out.
Workaround that restores the widget without touching /usr/share/omarchy: pin codex-cli back to 0.148.0, the last version that still accepts -a untrusted (0.149.0 is where untrusted was dropped, leaving only on-request/never).
Fixed by #7649 (merged as 4cd8a08). The collector now launches the app-server with -a on-request, which Codex 0.149 accepts, so the panel gets the plan and limit windows again instead of initialize.
Thanks for the report and the root-cause work — it matched exactly. Update and the Codex tab should populate; please reopen if it doesn't.
Activity
h5tark commentedon Aug 24, 2026
Confirming this still reproduces on Omarchy 4.0.0-1 with codex-cli 0.149.0 (installed via mise). Root cause matches:
codex -s read-only -a untrusted app-serverfails immediately witherror: invalid value 'untrusted' for '--ask-for-approval', so the collector'sinitializeRPC call times out.Workaround that restores the widget without touching
/usr/share/omarchy: pin codex-cli back to 0.148.0, the last version that still accepts-a untrusted(0.149.0is whereuntrustedwas dropped, leaving onlyon-request/never).omarchybot commentedon Aug 25, 2026
Fixed by #7649 (merged as 4cd8a08). The collector now launches the app-server with
-a on-request, which Codex 0.149 accepts, so the panel gets the plan and limit windows again instead ofinitialize.Thanks for the report and the root-cause work — it matched exactly. Update and the Codex tab should populate; please reopen if it doesn't.