[PR #9524] feat(tui): add switch to last session keybind (ctrl-x o) #13135

Open
opened 2026-02-16 18:18:00 -05:00 by yindo · 0 comments
Owner

Original Pull Request: https://github.com/anomalyco/opencode/pull/9524

State: open
Merged: No


Summary

  • Add session_last keybinding (<leader>o / ctrl-x o) to quickly switch to the previously viewed session
  • Track previous session ID in route context (ephemeral, in-memory)
  • Similar to Emacs's C-x o for switching windows

Closes #9526

Changes

  • packages/opencode/src/config/config.ts - Add session_last keybinding definition
  • packages/opencode/src/cli/cmd/tui/context/route.tsx - Track previous session ID
  • packages/opencode/src/cli/cmd/tui/app.tsx - Add "Switch to last session" command
  • packages/web/src/content/docs/keybinds.mdx - Document the new keybinding
  • packages/sdk/js/src/v2/gen/types.gen.ts - Regenerated SDK types
**Original Pull Request:** https://github.com/anomalyco/opencode/pull/9524 **State:** open **Merged:** No --- ## Summary - Add `session_last` keybinding (`<leader>o` / `ctrl-x o`) to quickly switch to the previously viewed session - Track previous session ID in route context (ephemeral, in-memory) - Similar to Emacs's `C-x o` for switching windows Closes #9526 ## Changes - `packages/opencode/src/config/config.ts` - Add `session_last` keybinding definition - `packages/opencode/src/cli/cmd/tui/context/route.tsx` - Track previous session ID - `packages/opencode/src/cli/cmd/tui/app.tsx` - Add "Switch to last session" command - `packages/web/src/content/docs/keybinds.mdx` - Document the new keybinding - `packages/sdk/js/src/v2/gen/types.gen.ts` - Regenerated SDK types
yindo added the pull-request label 2026-02-16 18:18:00 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#13135