GeezerVison is showing github.com — feat(app): close other tabs and tabs after from the tab menu by usrnk1 · Pull Request #61631 · anomalyco/opencode
Conversation
usrnk1
commented
Nov 4, 2026
•
edited
Loading
Uh oh!
There was an error while loading. Please reload this page.
Summary
- Tab context menus now offer Close other tabs plus Close tabs to the right (horizontal), Close tabs to the left (horizontal, RTL), or Close tabs below (vertical), right under Close tab.
- Draft tabs get a context menu with the same close actions.
- Bulk closes remove tabs in one update, move to the clicked tab when the active one closes, and record session tabs so repeated ⌘⇧T restores them in their original positions. Items are disabled when there is nothing to close.
Only packages/app changed.
Checks
bun typecheck (packages/app): pass
bun run test:unit (packages/app): 952 pass, 0 fail
bun run lint:changed origin/dev: 0 problems
- New e2e cases in
e2e/regression/tabs.spec.ts (horizontal LTR, horizontal RTL, vertical): pass, 30/30 with --repeat-each=10 --workers=5
- Full
tabs.spec.ts in built mode on macOS: 46 pass, 5 fail. The same 5 fail on origin/dev; they are the Ctrl-shortcut tests that the e2e guide notes fail locally on macOS.
Screenshots
Before (dev), horizontal session tab:

After, horizontal session tab:

Before (dev), vertical session tab:

After, vertical session tab:

After, draft tab (before: no menu):

After, RTL:

Visual
<svg xmlns="http://www.w3.org/2000/svg" width="240" height="72" viewBox="0 0 240 72" fill="none">
<style>
.t{fill:currentColor;opacity:.18}
.k{fill:currentColor;opacity:.45}
.g{animation:g 3s ease-in-out infinite}
@keyframes g{0%,30%{opacity:.18}45%,80%{opacity:0}100%{opacity:.18}}
@media (prefers-reduced-motion:reduce){.g{animation:none}}
</style>
<rect class="t" x="12" y="14" width="44" height="14" rx="4"/>
<rect class="k" x="62" y="14" width="44" height="14" rx="4"/>
<rect class="t g" x="112" y="14" width="44" height="14" rx="4"/>
<rect class="t g" x="162" y="14" width="44" height="14" rx="4"/>
<rect x="80" y="34" width="96" height="30" rx="5" stroke="currentColor" stroke-opacity=".3"/>
<rect class="t" x="86" y="39" width="60" height="5" rx="2"/>
<rect class="k" x="86" y="51" width="80" height="5" rx="2"/>
</svg>
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The change works as described. I ran the web app's Playwright suite in headless Chromium on Linux. The tab menu now shows the new close actions. Bulk close puts the closed tabs back in their original positions on repeated ⌘⇧T, and the items are disabled when there's nothing to close. Unit tests (952) and tsc -b pass.
Public API: unchanged (app UI and i18n keys only).
One concern: the new e2e case is flaky on Linux (see inline comment).


Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
|
|
await expect(menu.getByRole("menuitem")).toHaveText(["Close tab", "Close other tabs", label])
|
|
|
await menu.getByRole("menuitem", { name: label, exact: true }).click()
|
|
|
await expect(titles).toHaveText([a.title, "Session"])
|
|
|
await expect(active).toHaveText("Session")
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This assertion failed in 4 of 12 runs for me on Linux (headless Chromium, --workers=1 --repeat-each=3, and --workers=3). After the active tab closes, the app sometimes ends on Home with no active tab instead of on the draft. I don't think closeTabs causes it: on dev, single-closing the active session tab next to a draft tab hits the same Home landing in 2–3 of 8 runs. Still, this case would make the test flaky in CI. Could you fix the navigation race, or keep the test from depending on landing on a draft tab after the active tab is closed (e.g. right-click a session tab for the first step)?
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
This was referenced Nov 7, 2026
Reviewers
Hona
Awaiting requested review from Hona
Uh oh!
There was an error while loading. Please reload this page.
Assignees
No one assigned
Milestone
No milestone
Development
Successfully merging this pull request may close these issues.
Uh oh!
There was an error while loading. Please reload this page.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
|