feat: add keybinding to switch to last session #6874

Open
opened 2026-02-16 18:05:29 -05:00 by yindo · 1 comment
Owner

Originally created by @DamianB-BitFlipper on GitHub (Jan 19, 2026).

Originally assigned to: @rekram1-node on GitHub.

Description

Currently, switching between sessions requires opening the session list dialog (ctrl-x l), navigating to the desired session, and pressing Enter. This is cumbersome when frequently switching between two sessions.

Proposed Solution

Add a session_last keybinding (<leader>o / ctrl-x o) to quickly switch to the previously viewed session, similar to Emacs's C-x o for switching windows.

The feature should:

  • Track the previous session ID in memory (ephemeral, resets on restart)
  • Allow instant switching with a single keybind
  • Only be available when a previous session exists
Originally created by @DamianB-BitFlipper on GitHub (Jan 19, 2026). Originally assigned to: @rekram1-node on GitHub. ## Description Currently, switching between sessions requires opening the session list dialog (`ctrl-x l`), navigating to the desired session, and pressing Enter. This is cumbersome when frequently switching between two sessions. ## Proposed Solution Add a `session_last` keybinding (`<leader>o` / `ctrl-x o`) to quickly switch to the previously viewed session, similar to Emacs's `C-x o` for switching windows. The feature should: - Track the previous session ID in memory (ephemeral, resets on restart) - Allow instant switching with a single keybind - Only be available when a previous session exists
yindo added the opentui label 2026-02-16 18:05:29 -05:00
Author
Owner

@github-actions[bot] commented on GitHub (Jan 19, 2026):

For keybind-related issues, please also check our pinned keybinds documentation: #4997

@github-actions[bot] commented on GitHub (Jan 19, 2026): For keybind-related issues, please also check our pinned keybinds documentation: #4997
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#6874