orca icon indicating copy to clipboard operation
orca copied to clipboard

[Bug]: Codex status-bar usage refresh fails after v1.4.124 on Windows + WSL

Open euclodius opened this issue 4 months ago • 3 comments

Environment

  • Windows 11
  • WSL2 / Ubuntu
  • Orca Desktop v1.4.124
  • Project runtime: WSL
  • Codex CLI installed inside WSL
  • Codex auth type: ChatGPT login

Regression

After updating to v1.4.124, the Codex usage / limits indicator in the bottom status bar shows Refresh failed.

This worked correctly before the latest update. After updating, closing and reopening Orca does not recover the Codex usage indicator.

The OpenCode Go usage / limits indicator still works in the same status bar. The failure appears specific to Codex usage refresh.

What still works

Codex itself appears authenticated and usable.

From WSL, the normal Codex home is logged in:

codex login status
# Logged in using ChatGPT

The Orca-managed Codex runtime home is also logged in:

CODEX_HOME=<orca-codex-runtime-home> codex login status
# Logged in using ChatGPT

The Orca-managed Codex runtime home can also fetch the model catalog successfully:

CODEX_HOME=<orca-codex-runtime-home> codex debug models
# exits 0 and returns a large JSON model catalog

So this does not look like a local Codex auth failure or a general OpenAI connectivity failure.

Expected behavior

The Codex status-bar usage / limits indicator should refresh and display current Codex usage, as it did before the update.

Actual behavior

The Codex status-bar usage / limits indicator shows Refresh failed after v1.4.124 and does not recover after restarting Orca.

Related / possibly related

  • #5491
  • #5103
  • #5355
  • #6560
  • #7403

Notes

This may be related to the rate-limit / usage probe path rather than Codex authentication itself. v1.4.123 included #7403, which changed hidden Claude/Codex usage probe working directories and lifecycle handling. There is also an open PR #6560 for usage chips getting stuck on Refresh failed after update relaunch, but this Codex regression still reproduces after closing and reopening Orca on v1.4.124.

euclodius avatar Jul 06 '26 10:07 euclodius

Additional finding after testing a non-system-default Codex managed account:

I added a separate WSL-managed Codex account in Orca. The account was created and authenticated successfully.

From WSL, the managed account home works:

CODEX_HOME=<orca-managed-codex-account-home> codex login status
# Logged in using ChatGPT

CODEX_HOME=<orca-managed-codex-account-home> codex debug models
# exits 0 and returns the model catalog

I also tested the same RPC method Orca uses for rate-limit reads:

CODEX_HOME=<orca-managed-codex-account-home> codex -s read-only -a untrusted app-server
# JSON-RPC account/rateLimits/read returns rateLimits successfully

So the managed Codex account itself is authenticated and can read rate limits from inside WSL.

However, Orca still shows Refresh failed in the Codex status-bar usage indicator.

One suspicious detail: after adding the managed account, the persisted Orca settings still show no active Codex account selected for either host or WSL runtime:

{
  "activeCodexManagedAccountId": null,
  "activeCodexManagedAccountIdsByRuntime": {
    "host": null,
    "wsl": {
      "<distro>": null
    }
  }
}

This makes the issue look less like Codex authentication and more like the status-bar rate-limit fetcher not selecting or applying the WSL managed Codex account correctly.

euclodius avatar Jul 06 '26 13:07 euclodius

Additional detail from the same Windows desktop + WSL runtime setup:

The status bar shows Refresh failed, and the popup/details also say:

RPC process exited unexpectedly

This reproduces the same way for both Codex account modes I tested:

  • system default Codex account
  • a separate Orca-managed Codex account that authenticates successfully

So this does not look like only an account selection/auth/cookie problem. It looks like the Codex usage/rate-limit refresh RPC/probe process exits before returning a result in this Windows + WSL setup.

OpenCode Go usage still refreshes normally; the failure is specific to Codex.

euclodius avatar Jul 06 '26 20:07 euclodius

will be in next release, usually within 24 hours

Jinwoo-H avatar Jul 09 '26 21:07 Jinwoo-H