You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Revert "fix(status-bar): hide usage while a chat is the focused surface (#47778)" - #47933
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:
The status bar shows its usage area again on every surface, including agent chats, rooms, terminals in chat view, and new chats still being created.
#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.
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.
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: 4
Check name
Status
Explanation
Title check
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
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
Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check
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.
Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 4 remain after this review.
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
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.
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.
What Changed
A plain
git revertof #47778, with no other edits:nativeChatSurfaceVisible/usageHidden) and restoresvisibleAccountHostIdto its pre-fix(status-bar): hide usage while a chat is the focused surface #47778 form. Account routing from Fix duplicate Claude identities and visible-host usage #42644 is unchanged.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
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