Skip to content

revert: undo tab shrink-to-icons titlebar fold (#41896) - #48560

Merged
AmethystLiang merged 5 commits into
mainfrom
AmethystLiang/revert-41896-tab-shrink
Nov 25, 2026
Merged

AmethystLiang merged 5 commits into
mainfrom
AmethystLiang/revert-41896-tab-shrink

Conversation

@AmethystLiang

@AmethystLiang AmethystLiang commented Nov 24, 2026 •

Copy link
Copy Markdown
Contributor

ELI5

Tabs were turning into tiny icons too early. With 9 tabs open, every one showed as an icon even though about 500px of empty space sat next to the + button. This puts tabs back the way they were before #41896: they keep their titles and scroll when they don't fit.

Files Added Deleted Net
Test 12 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​139 $\color{#cf222e}{\Huge{\mathbf{−}}}$​1287 $\color{#cf222e}{\Huge{\mathbf{−}}}$​1148
Prod 40 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​448 $\color{#cf222e}{\Huge{\mathbf{−}}}$​2532 $\color{#cf222e}{\Huge{\mathbf{−}}}$​2084

What Changed

Reverts #41896 (squash commit 3c7980d).

  • Before: as the left-most pane narrowed, the titlebar header folded into the pane's ⋯ menu ("Orca" word and Forward, then Back and "+"). Tabs shrank, inactive tabs became icons, and tabs that still didn't fit went behind a "+N" chip.
  • After: the header stays as it was, tabs keep their titles and scroll as before, and there is no "+N" chip. An unsplit pane has no ⋯ again, and a split pane's ⋯ holds Close split pane plus quick commands once the strip is too narrow to show them.

Conflicts with later work, and how they were resolved:

Why

The owner asked for this revert: the condense step hid tab titles while the strip still had plenty of free room.

Open PR #48482 (Fit tab-width setting) builds on files this deletes or restores (use-tab-strip-condense.ts, tab-width-rules.ts, use-tab-strip-slot-props.ts, TabBar.tsx, SortableTab.tsx). It will conflict and needs a look after this lands.

Linked Issue

N/A (maintainer revert of #41896).

Visual Proof

N/A: this restores the tab strip as it was before #41896, which shipped earlier today. No new UI.

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

  • pnpm typecheck:web passes. pnpm lint passes (all 49 steps).

  • Unit tests for the touched areas pass: AppShellLeftColumn.test.tsx and strip-actions-return-focus.test.ts (updated for the trigger-based signature).

  • rendered-tab-strip.test.ts is rewritten for the scrolling strip (its old subject, the +N hide rule, is gone); it and pinned-home-tab.test.ts pass.

  • feat(tab-strip): fold titlebar chrome and condense tabs in narrow panes #41896's own unit tests and its narrow-tab-strip-condense e2e spec are removed with the code they covered. pane-actions-quick-command-focus.spec.ts now covers only the split pane; CI e2e runs it.

  • The renderer was not driven locally; behavior was reasoned from the code.

Performance

Mixed, and not measured. This removes #41896's strip ResizeObserver, its titlebar fold observer and its per-render condense planning. In exchange, the restored scrolling strip keeps every tab mounted with its full title, so in a narrow pane it can render and observe more tab rows than the condensed strip did (which hid some behind the +N chip). Net timing was not measured; this is reasoned from reading the code.

Risk

Level: Low

The pre-#41896 tab strip shipped until earlier today, so this goes back to known behavior. The riskiest part is the #48258 port: if it were wrong, focus after closing the Add Quick Command dialog from a narrow split pane's ⋯ would land on the page body instead of the ⋯. To back this out, revert this PR.

AI Disclosure

Review

Agent skill upstream boundary

  • Not applicable, or this change copies or mechanically translates no upstream skill-installer source, tests, fixtures, registry entries, path tables, comments, or documentation.

Notes

Ensure no issues in: Security, Cross-platform support (Linux, Windows, Mac), Remote SSH, Mobile, general backwards compatibility, performance

Checklist

  • This PR is small and focused
  • I explained what changed and why (ELI5, the user-facing before/after, the mechanism, and why over the alternatives)
  • I stated the risk: what could break, for whom, and how to back it out
  • Before/after screenshots or videos attached for UI changes, or N/A with reason
  • Self-reviewed for correctness, security, and performance
  • Cross-platform, SSH/remote, and path/shortcut impact considered (or N/A)
  • pnpm lint, pnpm typecheck, pnpm test, and pnpm build pass (or CI will cover; local preferred)

@coderabbitai

coderabbitai Bot commented Nov 24, 2026 •

Copy link
Copy Markdown
Contributor

Explain Change →

Note

Reviews paused

It looks like this branch is under active development. To avoid overwhelming you with review comments due to an influx of new commits, CodeRabbit has automatically paused this review. You can configure this behavior by changing the reviews.auto_review.auto_pause_after_reviewed_commits setting.

Use the following commands to manage reviews:

  • @coderabbitai resume to resume automatic reviews.
  • @coderabbitai review to trigger a single review.

Use the checkboxes below for quick actions:

  • Resume reviews
  • Trigger review

No actionable comments were generated in the recent review.

Walkthrough

The changes remove titlebar fold state and tab-strip condensation. Tab strips now render projected items and show scroll arrows when the strip overflows. Tab sizing and decorations no longer use density-based compact modes. Pane actions move to inline controls, and the pane actions menu manages its own open state and quick-command content.

Merge Risk: Low · previous review 3ff98

This reverts the adaptive tab strip to scrolling tabs. A minor defect remains: Close Others can be enabled when the only other tab is pinned, and it then does nothing. Narrow panes with many tabs may also render more tab rows than before, which is a possible small performance cost that was not measured. Neither is likely to block use, but both are worth a look before or soon after merging.

Pre-merge checks: Passed 4

Check name Status Explanation
Title check Passed The title "revert: undo tab shrink-to-icons titlebar fold (#41896)" matches the main change: the PR reverts #41896, which introduced tab shrink-to-icons, the +N overflow chip, and titlebar fold behavi…
Description check Passed The description follows the repository template closely. It has ELI5, What Changed (before/after and mechanism), Why, Testing, Performance, Risk with level and rollback, and the Checklist. Linked Issu…
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 "revert: undo tab shrink-to-icons titlebar fold (#41896)" matches the main change: the PR reverts #41896, which introduced tab shrink-to-icons, the +N overflow chip, and titlebar fold behavior. The changeset removes the condense planner, fold modules, and TabStripOverflowChip, and the description confirms the revert. The title names the reverted feature and the PR number, so a teammate scanning history can identify the change.

Full details: Description check

Explanation

The description follows the repository template closely. It has ELI5, What Changed (before/after and mechanism), Why, Testing, Performance, Risk with level and rollback, and the Checklist. Linked Issue is marked N/A with a maintainer-revert reason, which the template allows for maintainers. Visual Proof is N/A with a reason. The AI Disclosure section is empty, but the template says to leave it blank for internal team members. The Testing section lists unchecked boxes for manual testing and for the test-anti-pattern check, and it states that the renderer was not driven locally. The lint, typecheck, and test checklist item is unchecked. These gaps are minor, so the description is mostly complete.

  • 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: cf98efed-ffa5-4eae-b68c-11bd3f24745b
Commits

Reviewing files that changed from the base of the PR and between 13fee50 and 3ff98b1.

Files selected for processing: 1

  • src/renderer/src/components/tab-bar/strip/tab-bar-surface.tsx
Files skipped from review as they are similar to previous changes: 1

  • src/renderer/src/components/tab-bar/strip/tab-bar-surface.tsx

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

@AmethystLiang
AmethystLiang force-pushed the AmethystLiang/revert-41896-tab-shrink branch from a97ccbf to 0552afe Compare November 25, 2026 01:07
This reverts commit 3c7980d.

Tabs folded to icons while there was still empty room in the strip.

Conflict resolution against later work:
- tab-bar-surface.tsx keeps #48329's bot-home search (botHome, filtered
  BotNewChatMenuItems) on top of the pre-#41896 strip.
- #48258's focus handback after the Pane Actions quick-command editor
  closes moves from the removed TabGroupStripActions onto the restored
  split-pane menu: the ⋯ trigger, else the active tab. Its store ownership
  check moves into is-group-focused-in-store.ts, and its e2e spec covers
  the split pane only, since an unsplit pane has no ⋯ again.
@AmethystLiang
AmethystLiang force-pushed the AmethystLiang/revert-41896-tab-shrink branch from fecdeb8 to 13fee50 Compare November 25, 2026 02:46

@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.

Actionable comments posted: 1

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: 27d4a4e5-e08b-46d7-ab0d-dab812a7ad76
Commits

Reviewing files that changed from the base of the PR and between fecdeb8 and 13fee50.

Files selected for processing: 16

  • src/renderer/src/components/tab-bar/TabBar.tsx
  • src/renderer/src/components/tab-bar/TabBarBotHome.fixture.tsx
  • src/renderer/src/components/tab-bar/model/pinned-home-tab.ts
  • src/renderer/src/components/tab-bar/model/tab-bar-item-surface.tsx
  • src/renderer/src/components/tab-bar/strip/PinnedHomeTabSlot.tsx
  • src/renderer/src/components/tab-bar/strip/rendered-tab-strip.test.ts
  • src/renderer/src/components/tab-bar/strip/rendered-tab-strip.ts
  • src/renderer/src/components/tab-bar/strip/tab-bar-surface.tsx
  • src/renderer/src/components/tab-bar/strip/tab-strip-width-budget.ts
  • src/renderer/src/components/tab-bar/terminal-tabs/SortableTab.tsx
  • src/renderer/src/components/tab-group/TabGroupPanel.tsx
  • src/renderer/src/components/tab-group/panel/TabGroupPaneActionsMenu.tsx
  • src/renderer/src/components/tab-group/panel/TabGroupStripActions.tsx
  • src/renderer/src/i18n/en-runtime-required.json
  • src/renderer/src/i18n/locales/en.json
  • src/renderer/src/i18n/locales/tr.json
Files with no reviewable changes: 5

  • src/renderer/src/components/tab-bar/strip/tab-strip-width-budget.ts
  • src/renderer/src/components/tab-group/panel/TabGroupStripActions.tsx
  • src/renderer/src/i18n/en-runtime-required.json
  • src/renderer/src/i18n/locales/en.json
  • src/renderer/src/i18n/locales/tr.json

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

@AmethystLiang
AmethystLiang merged commit a8a3347 into main Nov 25, 2026
57 checks passed
@AmethystLiang
AmethystLiang deleted the AmethystLiang/revert-41896-tab-shrink branch November 25, 2026 05:44
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