Skip to content

feat: add keybinding to switch to last session #9526

Closed

Description

@DamianB-BitFlipper

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

Activity

  1. added
    opentuiThis relates to changes in v1.0, now that opencode uses opentui
    on Jan 20, 2026
  2. github-actions commented on Jan 20, 2026

    @github-actions
    Contributor

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

  3. github-actions commented on Mar 26, 2026

    @github-actions
    Contributor

    To stay organized issues are automatically closed after 90 days of no activity. If the issue is still relevant please open a new one.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

opentuiThis relates to changes in v1.0, now that opencode uses opentui

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions