Repository navigation
Revert "Size tabs to titles and preserve floating panel drag space" - #34506
Conversation
Walkthrough
Priority: Merge Risk:
|
There was a problem hiding this comment.
Caution
Some comments are outside the diff and can’t be posted inline due to GitHub limitations.

Minor · Restore the dedicated drag handle for overflowing tab… · FloatingTerminalPanelSurface.tsx:181-186
src/renderer/src/components/floating-terminal/FloatingTerminalPanelSurface.tsx:181-186
🎯 Functional Correctness | 🟡 Minor | ⚡ Quick winRestore the dedicated drag handle for overflowing tab strips.
When
hasOverflowis true, fixed-width tabs fill the available strip.isFloatingTerminalDragTargetrejects tab and button targets, while the scroll indicator stops propagation. After this change removes the dedicated grab area, the floating panel can no longer be moved from its titlebar.Suggested fix
</div> + {/* Keep a grab area even when the tab strip overflows. */} + <div + className="h-full w-16 shrink-0 select-none" + data-floating-terminal-drag-handle + aria-hidden + /> <FloatingTerminalWindowControls

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:
c09e5325-5fac-4be6-9f35-c16ab953dd5b
Files selected for processing: 13-
src/renderer/src/components/floating-terminal/FloatingTerminalPanelSurface.tsxsrc/renderer/src/components/tab-bar/BrowserTab.tsxsrc/renderer/src/components/tab-bar/ClientHostedBrowserTab.tsxsrc/renderer/src/components/tab-bar/EditorFileTab.tsxsrc/renderer/src/components/tab-bar/SortableTab.tsxsrc/renderer/src/components/tab-bar/TabBar.context-menu.test.tssrc/renderer/src/components/tab-bar/TabBar.fixture.tsxsrc/renderer/src/components/tab-bar/TabHoverCard.tsxsrc/renderer/src/components/tab-bar/TerminalTabLeadingIcon.tsxsrc/renderer/src/components/tab-bar/tab-title-tooltip.test.tsxsrc/renderer/src/components/tab-bar/tab-width-rules.tstests/e2e/floating-workspace-pane-height.spec.tstests/e2e/tab-strip-active-dock.spec.ts
Files with no reviewable changes: 3-
- src/renderer/src/components/tab-bar/TabBar.fixture.tsx
- src/renderer/src/components/floating-terminal/FloatingTerminalPanelSurface.tsx
- tests/e2e/tab-strip-active-dock.spec.ts
Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 9 remain after this review.
-
…ent renames (#34527) * Reapply "Size tabs to titles and preserve floating panel drag space (#34025)" (#34506) This reverts commit 4b4bcc2. * Hold tab widths through agent renames and gate title-fit tabs as experimental Title-sized tabs resized whenever an agent, shell, CLI, or page changed a tab's live title, shifting neighbors. Tabs now size from a settled title that only updates when the strip changes, the workspace is shown again, or the user renames; the live title overlays it. Title fitting is opt-in via Settings > Experimental > Fit tabs to titles; fixed widths remain default. * Settle title-fit tab widths after titles go quiet and never under the pointer Holding widths until the strip changed left agent-renamed tabs truncated beside empty space. Tabs now follow their titles once no title in the strip has changed for 3s, all at once, and never while the pointer is over the strip. * Stabilize tab widths when agent activity icons change * Stabilize tab widths during title changes * Stabilize fit-to-title tab widths during live updates - Refit only on workspace return or confirmed inline rename - Preserve tab geometry through title, status, and control changes * Use stable fixed widths for tab strips * Distribute tab widths across available strip space * Keep tab chrome consistent when only one tab is open * Update tab strip test to expect full available width * Fix editor tab hover card to show the file display name
Reverts #34025 to restore the previous tab sizing and floating panel behavior.