anomalyco / anomalyco/opencode
Desktop: session switch shortcuts (Alt+↑/↓) do nothing in the new tab layout
@Brendonovich is already working on this.
Since Sep 12, 2026.
- Dominant language
- TypeScript
- Stars
- 209k
- Forks
- 27.5k
- PR merge metrics
- PR metrics pending
Description
Description
In OpenCode Desktop with the new tab-based layout (settings → General → new layout design enabled, session tabs in the title bar), the documented/expected shortcuts for switching between session tabs — Alt+↑ (previous) / Alt+↓ (next) — have no effect.
These keybinds are registered only in the legacy sidebar layout (packages/app/src/pages/layout.tsx, commands session.previous / session.next). The new layout (packages/app/src/pages/layout-new.tsx + Titlebar in packages/app/src/components/titlebar.tsx) registers only tab.new, tab.close, and tab.reopenClosed — there is no command to move to the previous/next tab, so nothing handles Alt+↑/Alt+↓.
Additionally, the "Go" menu still lists "Previous Session" / "Next Session" entries with the Alt+↑/Alt+↓ keybinds shown, but the commands are not registered in this layout, which is misleading (menu items are effectively dead and the displayed shortcut suggests it should work).
Plugins
No response
OpenCode version
1.18.30
Steps to reproduce
- Open OpenCode Desktop and enable the new layout design (tabs in the title bar).
- Open two or more session tabs.
- Press Alt+↑ / Alt+↓ (macOS: Option+↑ / Option+↓).
- Observe: no tab switch happens.
- Open the command palette (Ctrl/⌘+K) and search for "next session"/"previous session" — the commands are missing/disabled.
Screenshot and/or share link
No response
Operating System
windows10
Terminal
No response
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.