Skip to content

fix(status-bar): show usage after mid-session installs - #8064

Open
bbingz wants to merge 2 commits into
stablyai:mainfrom
bbingz:fix/status-bar-live-agent-usage
Open

bbingz wants to merge 2 commits into
stablyai:mainfrom
bbingz:fix/status-bar-live-agent-usage

Conversation

@bbingz

@bbingz bbingz commented Jul 10, 2026 •

Copy link
Copy Markdown
Contributor

Summary

A CLI installed and authenticated after Orca starts can remain hidden by the cached startup PATH result. The status bar and its visibility menu now accept the existing configured-provider snapshot as evidence that overrides that negative result. Existing provider rules still hide unavailable or empty initial-fetch snapshots and keep transient configured-provider errors visible.

The same evidence is passed for all six CLI-gated providers, including Antigravity. Non-CLI items remain ungated. The separate Appearance settings switches retain their existing PATH-based behavior; this change covers the status bar and its context menu.

Testing and review

At c25c4e0405878b3825386864b3d81d6f0714fba0, independent verification passed 341 tests across 50 status-bar test files. The new regression checks positive provider evidence against a cached-negative PATH result. CLI, Node and Web TypeScript checks (--composite false), changed-file lint/format and diff whitespace passed. Independent Cursor review passed on this exact commit.

Full repository tests, packaging and rendered Electron before/after or Windows/Linux/SSH smoke were not run. The visibility logic has automated coverage; no manual visual proof is claimed. Renderer-only change, with no RPC or stream schema changes.

AI disclosure

Cursor ported and independently reviewed the change; Codex checked the original requirements, source and verification results.

@coderabbitai

coderabbitai Bot commented Jul 10, 2026 •

Copy link
Copy Markdown
Contributor

Review Change StackReview Change Stack

Important

Review skipped

We couldn't safely recover the incremental review. No full review was started, and the last reviewed checkpoint was preserved. Retry later, or explicitly request a full review by commenting @coderabbitai full review.

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review

Note

Reviews paused

It looks like this branch is under active development. To avoid overwhelming you with review comments due to an influx of new commits, CodeRabbit has automatically paused this review. You can configure this behavior by changing the reviews.auto_review.auto_pause_after_reviewed_commits setting.

  • Last reviewed commit: c25c4e0405878b3825386864b3d81d6f0714fba0
  • Latest commit, not reviewed: 94371ab

Use the following commands to manage reviews:

  • @coderabbitai resume to resume automatic reviews.
  • @coderabbitai review to trigger a single review.

Use the checkboxes below for quick actions:

  • ▶️ Resume reviews
  • 🔍 Trigger review

No actionable comments were generated in the recent review.

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Repository UI

Review profile: CHILL

Plan: Advanced

Run ID: 7256bc7f-9f96-46d2-a3de-83d62147d6ca

📥 Commits

Reviewing files that changed from the base of the PR and between 12f2c6b and c25c4e0405878b3825386864b3d81d6f0714fba0.

📒 Files selected for processing (4)
  • src/renderer/src/components/status-bar/StatusBarVisibilityMenu.tsx
  • src/renderer/src/components/status-bar/status-bar-agent-gating.test.ts
  • src/renderer/src/components/status-bar/status-bar-agent-gating.ts
  • src/renderer/src/components/status-bar/use-status-bar-controller.ts
🚧 Files skipped from review as they are similar to previous changes (2)
  • src/renderer/src/components/status-bar/status-bar-agent-gating.ts
  • src/renderer/src/components/status-bar/status-bar-agent-gating.test.ts

Included review availability: Your plan provides up to 10 included reviews per hour; 3 remain after this review.

Walkthrough

isStatusBarItemAvailable now accepts provider evidence and can override missing PATH detection. Status bar entries and visibility menu items now require provider configuration for supported agents. The controller exposes provider rate-limit snapshots for six agents. Tests cover Codex availability with and without live provider evidence.

Priority: Low

Merge Risk: Minimal · up to c25c4

Configured CLI providers can now show status-bar usage after becoming available post-launch, while unconfigured providers remain hidden. The implementation consistently applies this behavior across the affected status-bar entries and menu.

🚥 Pre-merge checks | ✅ 3 | ❌ 2

❌ Failed checks (2 warnings)

Check name Status Explanation Resolution
Description check ⚠️ Warning The description explains the problem, behavior, scope, and testing results. However, it omits required template sections, including ELI5, What Changed, Why, Linked Issue, Visual Proof, Review, Agent s… Update the description to include the required template sections. Add the linked issue after Fixes #. For this UI change, attach before-and-after visual proof, or write exactly N/A with a brief reason. Complete the testing checkboxes, A…
Docstring Coverage ⚠️ Warning Docstring coverage is 0.00% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 4 functions across 5 files. Write docstrings for the functions missing them to satisfy the coverage threshold.
✅ Passed checks (3 passed)
Check name Status Explanation
Title check ✅ Passed The title clearly describes the primary change: status-bar usage now appears after a CLI agent is installed and authenticated during a session.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
Full details: Description check

Explanation

The description explains the problem, behavior, scope, and testing results. However, it omits required template sections, including ELI5, What Changed, Why, Linked Issue, Visual Proof, Review, Agent skill upstream boundary, Notes, and Checklist. It also does not provide the required linked issue or the exact N/A statement for visual proof.

Resolution

Update the description to include the required template sections. Add the linked issue after Fixes #. For this UI change, attach before-and-after visual proof, or write exactly N/A with a brief reason. Complete the testing checkboxes, AI Disclosure, Review, Agent skill upstream boundary, Notes, and Checklist sections.

  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Comment @coderabbitai help to get the list of available commands.

@bbingz

bbingz commented Jul 13, 2026

Copy link
Copy Markdown
Contributor Author

@coderabbitai review

@coderabbitai

coderabbitai Bot commented Jul 13, 2026 •

Copy link
Copy Markdown
Contributor
✅ Action performed

Review finished.

Note: CodeRabbit is an incremental review system and does not re-review already reviewed commits. This command is applicable only when automatic reviews are paused.

@bbingz

bbingz commented Jul 22, 2026

Copy link
Copy Markdown
Contributor Author

Rebased onto current main (34c160442f9e77d8162b4c54ecd9b39f0ba6a4f2). Conflicts resolved in: StatusBar.tsx (kept main's Antigravity usage UI; threaded isProviderConfigured evidence into CLI gating including Antigravity). Ready for re-review.

@bbingz
bbingz force-pushed the fix/status-bar-live-agent-usage branch from 03b13a4 to e35fd8e Compare July 22, 2026 01:29
@nwparker nwparker added the bug Something isn't working label Jul 27, 2026
@bbingz
bbingz force-pushed the fix/status-bar-live-agent-usage branch from e35fd8e to 2e2d1f0 Compare August 5, 2026 23:43
@coderabbitai

coderabbitai Bot commented Aug 5, 2026

Copy link
Copy Markdown
Contributor

Note

GitHub couldn't provide a complete incremental comparison for this pull request, so CodeRabbit is performing a full review instead. This review may take a little longer.

@coderabbitai

coderabbitai Bot commented Sep 8, 2026

Copy link
Copy Markdown
Contributor

Note

GitHub couldn't provide a complete incremental comparison for this pull request, so CodeRabbit is performing a full review instead. This review may take a little longer.

@bbingz
bbingz force-pushed the fix/status-bar-live-agent-usage branch from c25c4e0 to 1f2ef1b Compare September 20, 2026 11:09
bbingz and others added 2 commits October 25, 2026 15:21
PATH detection can stay cached-negative after a CLI is installed and
authenticated in the same session. Live provider evidence now overrides
that snapshot for usage bars and the status-bar toggle menu.

Co-authored-by: Cursor <[email protected]>
@bbingz
bbingz force-pushed the fix/status-bar-live-agent-usage branch from 1f2ef1b to 94371ab Compare October 25, 2026 07:27

This branch has not been deployed

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

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants