Skip to content

fix(tabs): close tab on double-click (#323) - #584

Closed
aarontrowbridge wants to merge 4 commits into
mainfrom
323-bug-double-clicking-a-session-tab-does-not-close-it
Closed

aarontrowbridge wants to merge 4 commits into
mainfrom
323-bug-double-clicking-a-session-tab-does-not-close-it

Conversation

@aarontrowbridge

Copy link
Copy Markdown
Member

Closes #323

Double-clicking a session or draft tab now closes it via the existing close-tab handler, matching standard tab UX (VS Code native).

  • TabNavItem and DraftTabItem containers now bind onDblClick → closeTab (guarded by editing() for rename)
  • Reuses existing props.onClose/tabs store logic

Tests

  • packages/extension/test/titlebar_dblclick_close.test.ts (source-check: 3 cases, RED→GREEN)
  • packages/app-bundle/overlay/packages/app/e2e/regression/tab-dblclick-close.spec.ts (2 Playwright cases)

Double-clicking a session or draft tab now closes it via the
existing close-tab handler (props.onClose / closeTab), matching
standard tab UX and VS Code's native behavior.

Adds onDblClick to TabNavItem (guarded by editing()) and
DraftTabItem containers, reusing the same closeTab logic as
the close button and middle-click.

Adds e2e regression tab-dblclick-close.spec.ts and vitest
source-check titlebar_dblclick_close.test.ts (RED→GREEN).
@aarontrowbridge aarontrowbridge linked an issue Aug 27, 2026 that may be closed by this pull request
@coderabbitai

coderabbitai Bot commented Aug 27, 2026

Copy link
Copy Markdown

Important

  • 🔍 Trigger review

This repository does not receive automatic reviews because it has fewer than 10 stars.

⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro Plus

Run ID: ff2a502e-f7cf-4a0c-9227-3ea6af5107a6


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.

@aarontrowbridge

Copy link
Copy Markdown
Member Author

Superseded by #590 (same commits rebased onto main at dd12756, manifest re-synced). Closing this draft — CI trigger was stuck on old SHA. Please review #590 instead.

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.

BUG: Double-clicking a session tab does not close it

1 participant