Skip to content

Revert "Size tabs to titles and preserve floating panel drag space" - #34506

Merged
AmethystLiang merged 1 commit into
mainfrom
AmethystLiang/revert-tab-pr-34025
Oct 27, 2026
Merged

AmethystLiang merged 1 commit into
mainfrom
AmethystLiang/revert-tab-pr-34025

Conversation

@AmethystLiang

@AmethystLiang AmethystLiang commented Oct 27, 2026 •

Copy link
Copy Markdown
Contributor
Files Added Deleted Net
Test 4 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​39 $\color{#cf222e}{\Huge{\mathbf{−}}}$​330 $\color{#cf222e}{\Huge{\mathbf{−}}}$​291
Prod 9 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​15 $\color{#cf222e}{\Huge{\mathbf{−}}}$​196 $\color{#cf222e}{\Huge{\mathbf{−}}}$​181

Reverts #34025 to restore the previous tab sizing and floating panel behavior.

@coderabbitai

coderabbitai Bot commented Oct 27, 2026 •

Copy link
Copy Markdown
Contributor

Review in Change Stack →

Walkthrough

Tab container width rules and tab icon spacing classes change. Tab roots no longer apply the root-width class. The changes also revise tab width assertions and remove tab layout fixtures and several end-to-end tests. The floating terminal titlebar no longer contains the spacer grab area; its pointer-drag handlers remain on the titlebar container.

Priority: Low

Merge Risk: Low · up to c0e06

Moving a floating terminal by its header may fail when its tabs overflow. Restore a dedicated grab area; the remaining risk is localized.

Pre-merge checks: Passed 3 · Failed 2

Failed Failed checks: 2 warnings

Check name Status Explanation Resolution
Description check Warning The description follows the template in part. It has a short purpose statement, a LoC summary, and a note that the PR reverts #34025 to restore previous tab sizing and floating panel behavior. It does… Add the template sections: an ELI5 explanation, a What Changed section that describes the before and after user-visible behavior of tab sizing and floating panel dragging, and a Why section that explains the reason for the revert. Add a Lin…
Docstring Coverage Warning Docstring coverage is 12.50% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Documentation-only edits and deletions within surv… Write docstrings for the functions missing them to satisfy the coverage threshold.
Passed Passed checks: 3 passed
Check name Status Explanation
Title check Passed The title states that the PR reverts an earlier commit, "Size tabs to titles and preserve floating panel drag space". The raw summary matches this: it removes the tab root width classes, restores the …
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 states that the PR reverts an earlier commit, "Size tabs to titles and preserve floating panel drag space". The raw summary matches this: it removes the tab root width classes, restores the prior tab container sizing, and removes the floating titlebar grab area. The title names the main change, so it is a clear, specific summary of the PR.

Full details: Description check

Explanation

The description follows the template in part. It has a short purpose statement, a LoC summary, and a note that the PR reverts #34025 to restore previous tab sizing and floating panel behavior. It does not include the required ELI5, What Changed, or Why sections, and it has no Linked Issue (the template says one is required for outside contributors). The Visual Proof section is missing even though the change alters UI behavior, and the Testing checklist is unchecked. The AI Disclosure and Review sections are absent.

Resolution

Add the template sections: an ELI5 explanation, a What Changed section that describes the before and after user-visible behavior of tab sizing and floating panel dragging, and a Why section that explains the reason for the revert. Add a Linked Issue entry (Fixes #...) or explain why none applies. Add Visual Proof with before and after media, or write N/A with a reason. Complete the Testing section, including the platforms tested and the checkboxes. Complete the Notes and Checklist items, or state N/A where they do not apply.

Full details: Docstring Coverage

Explanation

Docstring coverage is 12.50% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Documentation-only edits and deletions within surviving functions are included; unchanged diff context and fully deleted functions are excluded. Analyzed 8 functions across 10 files.

Resolution

Write docstrings for the functions missing them to satisfy the coverage threshold.

Finishing Touches: 💡 1
📝 Generate docstrings: 💡
  • Commit to this branch
  • Create a new PR
  • 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

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

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Caution

Some comments are outside the diff and can’t be posted inline due to GitHub limitations.

⚠️ Outside diff range comments (1)

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 win

Restore the dedicated drag handle for overflowing tab strips.

When hasOverflow is true, fixed-width tabs fill the available strip. isFloatingTerminalDragTarget rejects 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
Commits

Reviewing files that changed from the base of the PR and between 55dffb4 and c0e0654.

Files selected for processing: 13
  • src/renderer/src/components/floating-terminal/FloatingTerminalPanelSurface.tsx
  • src/renderer/src/components/tab-bar/BrowserTab.tsx
  • src/renderer/src/components/tab-bar/ClientHostedBrowserTab.tsx
  • src/renderer/src/components/tab-bar/EditorFileTab.tsx
  • src/renderer/src/components/tab-bar/SortableTab.tsx
  • src/renderer/src/components/tab-bar/TabBar.context-menu.test.ts
  • src/renderer/src/components/tab-bar/TabBar.fixture.tsx
  • src/renderer/src/components/tab-bar/TabHoverCard.tsx
  • src/renderer/src/components/tab-bar/TerminalTabLeadingIcon.tsx
  • src/renderer/src/components/tab-bar/tab-title-tooltip.test.tsx
  • src/renderer/src/components/tab-bar/tab-width-rules.ts
  • tests/e2e/floating-workspace-pane-height.spec.ts
  • tests/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.

@AmethystLiang
AmethystLiang merged commit 4b4bcc2 into main Oct 27, 2026
39 checks passed
AmethystLiang added a commit that referenced this pull request Nov 1, 2026
…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
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