Skip to content

Agents plugin cannot read Codex limits with Codex CLI 0.149.0 because -a untrusted is invalid #7873

Closed

Description

@josh-weston-g

System details

Omarchy 4.0.0-1, AMD Ryzen 7 7700X (8 cores/16 threads), 32 GB RAM, NVIDIA GeForce RTX 5070 (12 GB VRAM), NVIDIA driver 610.57.04, Linux kernel 7.1.8-arch1-3

What's wrong?

The Omarchy Agents plugin displays:

Codex Limits Unavailable
initialize

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.

Activity

  1. h5tark commented on Aug 24, 2026

    @h5tark

    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).

  2. omarchybot commented on Aug 25, 2026

    @omarchybot
    Collaborator

    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.

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions