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 panel: Codex tab shows "initialize" error — codex-cli 0.149.0 rejects the collector's --ask-for-approval value #7842
The Codex tab in the agents bar widget/panel shows a red error card with the literal text "initialize" instead of usage limits, and usageStatusText reads "Codex limits unavailable".
Root cause
/usr/share/omarchy/bin/omarchy-agent-usage-codex launches the Codex app-server with:
codex-cli 0.149.0 no longer accepts untrusted for --ask-for-approval:
$ codex -s read-only -a untrusted app-server
error: invalid value 'untrusted' for '--ask-for-approval <APPROVAL_POLICY>'
[possible values: on-request, never]
The app-server process exits immediately (exit code 2) instead of starting the RPC loop. rpc_request() then blocks on a closed pipe until its select() loop times out and raises TimeoutError(method) — whose string representation is just the method name, "initialize". That exception message becomes authHelpText, which the panel renders verbatim, producing the confusing "initialize" card.
Fix
Swap "untrusted" for "never" (an equivalent "don't auto-approve" policy — this app-server session only ever issues the read-only account/read and account/rateLimits/read RPCs, so nothing here ever needs approval either way):
Separately, it'd be worth having fetch_codex_rpc()'s except block use a friendlier message than str(exc) for a bare TimeoutError — a raw RPC method name leaking into the UI as the entire error text is confusing regardless of what breaks the app-server invocation next time.
Steps to reproduce
Have codex CLI >= 0.149.0 installed and logged in.
Open the agents panel (bar icon), switch to the Codex tab.
Observe the "initialize" error card instead of limits.
Or directly: codex -s read-only -a untrusted app-server — exits immediately with the CLI's invalid value error instead of starting the server.
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
InevitableMarble249 commentedon Aug 23, 2026
Thanks for the temporary fix - having the same issue
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.