mirror of
https://github.com/stablyai/orca.git
synced 2026-11-19 04:23:57 +00:00
The rate-limit quota poller fetches Codex usage on app start, window focus, and every poll. Unlike the Claude and Gemini fetchers (which read credentials from files/keychain and hit an HTTP endpoint), the Codex fetcher always spawns the real codex binary — 'codex app-server' over RPC, and on RPC failure an interactive codex PTY running /status. For users who have Codex installed but never signed in, this surfaces as an unexpected Codex process starting in the background even though they never launched Codex. The spawn can only fail without auth. Gate the fetch on the presence of Codex auth (auth.json under the resolved CODEX_HOME / managed-account home). When absent, return status 'unavailable' without spawning anything, mirroring how the other providers stay quiet until configured. Signed-in users are unaffected.