Skip to content

Conversation

@ammar-agent
Copy link
Collaborator

@ammar-agent ammar-agent commented Dec 20, 2025

Remove VerticalTokenMeter now that we have the context usage indicator in the chat area.

Changes:

  • Removed VerticalTokenMeter.tsx and ChatMetaSidebar.tsx components
  • Removed auto-collapse hysteresis logic (was based on chatAreaWidth)
  • Added manual collapse/expand toggle using shared SidebarCollapseButton component
  • Both sidebars now use same collapse button style (20px width, «» chevrons)
  • Tab keyboard shortcuts (Ctrl+1/2/3) auto-expand the right sidebar if collapsed
  • Stories default to collapsed right sidebar; rightsidebar stories explicitly expand

Shared component: src/browser/components/ui/SidebarCollapseButton.tsx

  • Used by both ProjectSidebar and RightSidebar
  • side prop controls chevron direction
  • Optional shortcut prop for tooltip

Generated with mux • Model: anthropic:claude-sonnet-4-20250514 • Thinking: none

@ammar-agent ammar-agent force-pushed the remove-vertical-token-meter branch 11 times, most recently from d0c7872 to 82830a0 Compare December 20, 2025 19:03
Now that we have the context usage indicator in the chat area,
the VerticalTokenMeter in the right sidebar is no longer needed.

Removed:
- VerticalTokenMeter.tsx component
- ChatMetaSidebar.tsx (only existed to show the meter when collapsed)
- Related imports and usage in RightSidebar.tsx

-229 lines
@ammar-agent ammar-agent force-pushed the remove-vertical-token-meter branch from 82830a0 to 0d005bd Compare December 20, 2025 19:05
@ammario ammario merged commit 1776d88 into main Dec 20, 2025
20 checks passed
@ammario ammario deleted the remove-vertical-token-meter branch December 20, 2025 19:14
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.

2 participants