Skip to content

Revert "fix(status-bar): hide usage while a chat is the focused surface (#47778)" - #47933

Merged
AmethystLiang merged 1 commit into
mainfrom
AmethystLiang/revert-47778-usage-hidden
Nov 24, 2026
Merged

AmethystLiang merged 1 commit into
mainfrom
AmethystLiang/revert-47778-usage-hidden

Conversation

@AmethystLiang

@AmethystLiang AmethystLiang commented Nov 24, 2026 •

Copy link
Copy Markdown
Contributor

ELI5

The usage meter at the bottom of the window disappeared whenever a chat was open. People who work mostly in chats never saw it at all. This puts it back.

Files Added Deleted Net
Test 1 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​1 $\color{#cf222e}{\Huge{\mathbf{−}}}$​56 $\color{#cf222e}{\Huge{\mathbf{−}}}$​55
Prod 4 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​40 $\color{#cf222e}{\Huge{\mathbf{−}}}$​78 $\color{#cf222e}{\Huge{\mathbf{−}}}$​38

What Changed

A plain git revert of #47778, with no other edits:

Why

#47778 hid the usage area while a chat was the focused surface. In practice that covers most of the time for chat-first users, so the usage status read as gone, which blocks the release. This revert brings the usage meter back. The trade-off is that it shows under the chat composer again, the placement #47778 set out to fix; any new fix for that will come as its own change.

Linked Issue

No separate issue; reverts #47778.

Visual Proof

N/A: this restores the status bar from before #47778, whose "Before" screenshot shows it.

Testing

  • I manually tested these changes locally
  • Automated tests added/updated, or explained why not below
  • Every added test fails without this change and avoids the test anti-patterns
  • No new tests: this is a clean revert, and it removes the tests fix(status-bar): hide usage while a chat is the focused surface #47778 added for the check it removes.
  • Local pnpm check:changed: unit tests passed. The machine was too loaded to finish typecheck, so CI is the gate for typecheck and lint.

Performance

None, because this removes one boolean store selector from the status bar and returns to the previous rendering.

Risk

Level: Low

Renderer-only, with no saved data, settings, IPC or protocol changes. Users will see usage under chat composers again. To back it out, revert this PR, which re-applies #47778.

AI Disclosure

Review

@coderabbitai

coderabbitai Bot commented Nov 24, 2026

Copy link
Copy Markdown
Contributor

Explain Change →

No actionable comments were generated in the recent review.

Walkthrough

visibleAccountHostId now handles pending native-chat creation and focused terminal-tab host lookup directly. The nativeChatSurfaceVisible function and its tests are removed. The status bar usage area renders unconditionally, and the controller no longer closes the usage menu based on native-chat visibility. The account surface fixture adds a WSL Ubuntu environment, a Usage button interaction, and two WSL viewport fixtures.

Merge Risk: Minimal · up to 7829e

This revert restores the status bar usage meter on every surface, including chat views. It touches only renderer code, with no saved-data or protocol changes. No concrete defects were found, and CI is the remaining gate for typecheck and lint.

Pre-merge checks: Passed 4

Check name Status Explanation
Title check Passed The title names the change accurately: it reverts #47778, which hid the status bar usage area while a chat was focused. The title is specific and identifies the primary change. It has 81 characters, w…
Description check Passed The description follows the template closely. It has ELI5, What Changed, Why, Linked Issue, Visual Proof, Testing, Performance, Risk, and Review sections. It explains the revert, the trade-off, the te…
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: Title check

Explanation

The title names the change accurately: it reverts #47778, which hid the status bar usage area while a chat was focused. The title is specific and identifies the primary change. It has 81 characters, which is long, and it does not describe the reverted behavior in detail. Those points do not make it unrelated or vague.

Full details: Description check

Explanation

The description follows the template closely. It has ELI5, What Changed, Why, Linked Issue, Visual Proof, Testing, Performance, Risk, and Review sections. It explains the revert, the trade-off, the testing limits, and the rollback method. Gaps: the Linked Issue section has no issue number, and it says 'No separate issue; reverts #47778', which the template does not allow for outside contributors. The Visual Proof section says N/A and gives a reason, which the template accepts. The AI Disclosure and Agent skill upstream boundary sections are blank or unchecked. The testing checklist items are marked as complete even though the author says typecheck did not finish and the manual-test box is unchecked.

Resolution

Consider these edits before merge: link the reverted PR or an issue in the Linked Issue section, and confirm the checklist items match the work done. Fill in or mark the AI Disclosure section and the Agent skill upstream boundary section.

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

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

Recent review info

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Repository UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 20cb93ab-e7fb-40e7-8893-31358aa685b2
Commits

Reviewing files that changed from the base of the PR and between f48a4ef and 7829e39.

Files selected for processing: 5

  • src/renderer/src/components/status-bar/StatusBarSurface.tsx
  • src/renderer/src/components/status-bar/composition/use-status-bar-controller.ts
  • src/renderer/src/components/status-bar/usage/AccountSurfaceOwner.fixture.tsx
  • src/renderer/src/lib/workspace/ownership/visible-account-surface.test.ts
  • src/renderer/src/lib/workspace/ownership/visible-account-surface.ts
Files with no reviewable changes: 1

  • src/renderer/src/components/status-bar/composition/use-status-bar-controller.ts

Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 4 remain after this review.

@AmethystLiang
AmethystLiang merged commit b2065bb into main Nov 24, 2026
54 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant