Add usage status bar and Codex account switching#483
Merged
Conversation
- Claude fetcher: OAuth API for subscription users, PTY fallback, unavailable status for API key users - Codex fetcher: JSON-RPC via app-server with proper init handshake, PTY fallback for CLI scraping - Polling service with 2min interval, stale data retention on errors - Status bar UI: shows percent remaining, grey progress bars, rich tooltip with session/weekly breakdown and reset countdown - Unavailable providers hidden from status bar entirely
Replace text labels (Claude/Codex) with OpenAI and Claude brand SVG icons in both the status bar and tooltip header. Add green/yellow/red color coding to tooltip progress bars based on remaining capacity. Extract tooltip components to a separate file to stay under max-lines.
Right-clicking the status bar shows a context menu (like VS Code) with checkboxes to toggle Claude/Codex usage visibility and an option to hide the entire bar. Preferences persist across restarts via the UI state store. View > Toggle Status Bar in the app menu re-shows it.
Jinwoo-H
force-pushed
the
Jinwoo-H/usage-tracking
branch
from
April 11, 2026 17:36
6c646dc to
47d649c
Compare
Jinwoo-H
marked this pull request as ready for review
April 11, 2026 18:11
AmethystLiang
pushed a commit
that referenced
this pull request
Apr 11, 2026
AmethystLiang
added a commit
that referenced
this pull request
Apr 11, 2026
* Revert "Revert "test: verify auto-update notification flow" (#478)" This reverts commit 988fa02. * test: fix missing ipc events mock in useIpcEvents.test.ts * Add usage status bar and Codex account switching (#483) * 1.1.14 * feat: add active agent count in top bar (#484) * feat: add active agent count in top bar * fix: pass missing runtime pane title setters to pty connection --------- Co-authored-by: Jinjing <6427696+AmethystLiang@users.noreply.github.com> * Add "No login required" to README features (#486) * Add "No login required" to top of README features Highlight that Orca needs no account or login — users bring their own Claude Code or Codex subscription directly. * Simplify no-login line and add Codex account switching section - Trim "No login required" to just the essentials - Add [New] Hot Swap Codex Accounts section with gif demo * Fix README badge layout — remove blank lines inside HTML blocks (#488) Blank lines inside <p> tags cause GitHub to render each badge as a separate paragraph instead of inline on one row. * Add Codex account switcher gif (#489) The gif was referenced in README but never committed. * Refresh worktree quick jump UI (#487) * fix: Warp-parity keyboard shortcuts — image paste and line-kill bindings (#491) Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com> Co-authored-by: Jinjing <6427696+AmethystLiang@users.noreply.github.com> * Nicer agent list (#492) * test: mock more missing IPC handlers and store actions in useIpcEvents tests --------- Co-authored-by: Jinwoo Hong <73622457+Jinwoo-H@users.noreply.github.com> Co-authored-by: Jinwoo-H <jinwoo0825@gmail.com> Co-authored-by: Yax Patel <74978532+ypatel2022@users.noreply.github.com> Co-authored-by: Colin Chambachan <colin.chambachan@gmail.com> Co-authored-by: Ramzi <79337754+heyramzi@users.noreply.github.com> Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com> Co-authored-by: Neil <4138956+nwparker@users.noreply.github.com>
thomaszdxsn
pushed a commit
to thomaszdxsn/orca
that referenced
this pull request
Jun 15, 2026
thomaszdxsn
pushed a commit
to thomaszdxsn/orca
that referenced
this pull request
Jun 15, 2026
…i#479) * Revert "Revert "test: verify auto-update notification flow" (stablyai#478)" This reverts commit 988fa02. * test: fix missing ipc events mock in useIpcEvents.test.ts * Add usage status bar and Codex account switching (stablyai#483) * 1.1.14 * feat: add active agent count in top bar (stablyai#484) * feat: add active agent count in top bar * fix: pass missing runtime pane title setters to pty connection --------- Co-authored-by: Jinjing <6427696+AmethystLiang@users.noreply.github.com> * Add "No login required" to README features (stablyai#486) * Add "No login required" to top of README features Highlight that Orca needs no account or login — users bring their own Claude Code or Codex subscription directly. * Simplify no-login line and add Codex account switching section - Trim "No login required" to just the essentials - Add [New] Hot Swap Codex Accounts section with gif demo * Fix README badge layout — remove blank lines inside HTML blocks (stablyai#488) Blank lines inside <p> tags cause GitHub to render each badge as a separate paragraph instead of inline on one row. * Add Codex account switcher gif (stablyai#489) The gif was referenced in README but never committed. * Refresh worktree quick jump UI (stablyai#487) * fix: Warp-parity keyboard shortcuts — image paste and line-kill bindings (stablyai#491) Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com> Co-authored-by: Jinjing <6427696+AmethystLiang@users.noreply.github.com> * Nicer agent list (stablyai#492) * test: mock more missing IPC handlers and store actions in useIpcEvents tests --------- Co-authored-by: Jinwoo Hong <73622457+Jinwoo-H@users.noreply.github.com> Co-authored-by: Jinwoo-H <jinwoo0825@gmail.com> Co-authored-by: Yax Patel <74978532+ypatel2022@users.noreply.github.com> Co-authored-by: Colin Chambachan <colin.chambachan@gmail.com> Co-authored-by: Ramzi <79337754+heyramzi@users.noreply.github.com> Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com> Co-authored-by: Neil <4138956+nwparker@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
What Changed
Verification
pnpm exec oxlint src/main/codex-accounts/service.ts src/renderer/src/components/settings/GeneralPane.tsx src/renderer/src/components/settings/Settings.tsx src/renderer/src/components/status-bar/StatusBar.tsx src/renderer/src/lib/codex-session-restart.test.ts src/renderer/src/store/slices/terminals.ts src/renderer/src/store/slices/ui.tspnpm exec tsc --noEmit -p config/tsconfig.node.json --composite falsepnpm exec tsc --noEmit -p config/tsconfig.web.json --composite falseNotes