Skip to content

Reserve a trailing tab bar inset for the top-trailing pane - #262

Closed
lawrencecchen wants to merge 1 commit into
mainfrom
feat-tab-bar-trailing-inset
Closed

lawrencecchen wants to merge 1 commit into
mainfrom
feat-tab-bar-trailing-inset

Conversation

@lawrencecchen

@lawrencecchen lawrencecchen commented Sep 29, 2026 •

Copy link
Copy Markdown

Adds Appearance.tabBarTrailingInset. Only the pane whose tab bar ends at the container's top-trailing corner (or the zoomed pane) reserves that width after its action lane, as a drag zone painted with the bar color. It mirrors tabBarLeadingInset, which reserves traffic-light space in the top-leading pane.

cmux uses it to draw a persistent right-sidebar toggle over that corner without covering the split buttons.

SplitNode.topTrailingPaneId takes the trailing child of side-by-side splits and the top child of stacked splits. swift test --filter TopTrailingPaneTests passes (4 tests).

🤖 Generated with Claude Code


Summary by cubic

Adds Appearance.tabBarTrailingInset, which reserves a host-defined width after the action lane in the top-trailing pane's tab bar so hosts can draw a control (like a persistent sidebar toggle) over that corner. It mirrors tabBarLeadingInset: only the pane at the container's top-trailing corner, or the zoomed pane, reserves the width, painted with the bar color.

SplitNode.topTrailingPaneId identifies that pane (trailing child of side-by-side splits, top child of stacked splits); tests cover single, side-by-side, stacked, and nested layouts.

Written for commit 1d1f0fb. Summary will update on new commits.

Review in cubic

Hosts can draw a control over the corner where the top-trailing pane's tab
bar ends, such as a persistent sidebar toggle. The new
Appearance.tabBarTrailingInset reserves that width after the action lane
in only that pane (or the zoomed pane), mirroring tabBarLeadingInset.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
@coderabbitai

coderabbitai Bot commented Sep 29, 2026

Copy link
Copy Markdown

Warning

Review limit reached

Next included review available in 26 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available.

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

Learn how review limits work.

Review configuration:

⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Advanced

Run ID: 527e9135-41bc-48a8-8f2f-ef9ec161d1ac

📥 Commits

Reviewing files that changed from the base of the PR and between 64d27c6 and 1d1f0fb.

📒 Files selected for processing (4)
  • Sources/Bonsplit/Internal/Models/SplitNode.swift
  • Sources/Bonsplit/Internal/Views/TabBarView.swift
  • Sources/Bonsplit/Public/BonsplitConfiguration.swift
  • Tests/BonsplitTests/TopTrailingPaneTests.swift

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.

@lawrencecchen

Copy link
Copy Markdown
Author

Superseded by #264, which combines this change with the other right sidebar Bonsplit change for manaflow-ai/cmux#15534.

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