Skip to content

feat(app): close pinned tabs from their right-click menu - #67499

Merged
usrnk1 merged 1 commit into
devfrom
pinned-tab-close
Dec 1, 2026
Merged

usrnk1 merged 1 commit into
devfrom
pinned-tab-close

Conversation

@usrnk1

@usrnk1 usrnk1 commented Dec 1, 2026

Copy link
Copy Markdown
Contributor

Issue for this PR

Closes #

Type of change

  • Bug fix
  • New feature
  • Refactor / code improvement
  • Documentation

What does this PR do?

Right-clicking a pinned tab, loose or inside a group, had no way to close it. You had to unpin it first and then close the tab. The menu now ends with Close tab, which unpins the session and closes its tab in one click. It calls the existing pins.close, the same action as middle-click on a pinned tab, and reuses the translated "Close tab" string.

The pinned area only appears with the navigation prototype setting turned on, so no new flag is needed.

How did you verify your code works?

  • bun typecheck in packages/app: passed
  • bun test for src/shell/tabs/pins.test.ts and src/shell/tabs/tabs.test.ts (with the package's preloads): 30 pass, 0 fail
  • bun run lint:changed origin/dev: 0 problems
  • Captured the app-session-menus--pinned-tab lab story before (with origin/dev's pinned-area.tsx) and after, at the same viewport, theme and state.

Screenshots / recordings

Before:

After:

Checklist

  • I have tested my changes locally
  • I have not included unrelated changes in this PR

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

Looks good. The new Close tab item calls the existing pins.close, the same handler as middle-click on a pinned tab, and reuses the existing common.closeTab string. Grouped pinned tabs get it too, since they use the same PinnedSession component. I couldn't drive the web app here, so I didn't run it. I read the code path: tsc -b in packages/app passes and the pins/tabs tests pass (30/30). Your before/after screenshots cover the visible change.

Public API is unchanged.

@usrnk1
usrnk1 merged commit 0389cad into dev Dec 1, 2026
11 checks passed
@usrnk1
usrnk1 deleted the pinned-tab-close branch December 1, 2026 10:10
@amrkmn amrkmn mentioned this pull request Dec 3, 2026
1 task
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant