🚀 Feature Request: Add Quick Session Search Interface (Ctrl+K) #2228

Closed
opened 2026-02-16 17:34:45 -05:00 by yindo · 3 comments
Owner

Originally created by @riatzukiza on GitHub (Oct 22, 2025).

Originally assigned to: @rekram1-node on GitHub.

Feature hasn't been suggested before.

  • I have verified this feature I'm about to request hasn't been suggested before.

Describe the enhancement you want to request

Problem Statement

Currently, users need to navigate through multiple steps to switch
between sessions:

  1. Open the session list modal (via command or keybind)
  2. Manually scroll through potentially long session lists
  3. Find the desired session visually

This workflow becomes inefficient as users accumulate more sessions and
creates friction in the development flow. The existing session list
modal shows all sessions but doesn't provide quick filtering or search
capabilities.

Proposed Solution

Implement a Ctrl+K quick session search interface that provides:

• Instant access: Press Ctrl+K from anywhere in the TUI to open search
• Real-time filtering: Type to instantly filter sessions by title
• Visual indicators: Current session clearly marked with ● bullet point
• Keyboard-driven workflow: Enter to select, 'n' for new session, Esc
to cancel
• Consistent UX: Follows existing dialog patterns and styling

Why This Feature Belongs in OpenCode

  1. Core workflow improvement: Session switching is a fundamental
    operation that happens frequently during development
  2. Addresses user friction: Multiple related issues (#3262, #2776)
    indicate users want better session management
  3. Performance enhancement: Reduces cognitive load and time spent
    navigating sessions
  4. Industry standard: Ctrl+K for search/quick switch is a familiar
    pattern in modern developer tools
  5. Scalability: Essential as users accumulate more sessions over time

Implementation Details

The feature has been implemented with:

• SessionSearchCommand with ctrl+k keybinding (no leader required for
quick access)
• Session search dialog with real-time title filtering
• Current session highlighting for better orientation
• Responsive design that adapts to terminal width
• Proper integration with existing modal system and command framework

Use Cases

• Developers with many sessions: Quickly find specific sessions without
scrolling
• Context switching: Rapidly jump between different project contexts
• Session discovery: Easily locate sessions from previous work sessions
• Workflow efficiency: Maintain focus on development rather than
navigation

Alternatives Considered

  1. Enhancing existing session modal: Would require more clicks and
    doesn't provide instant access
  2. Command-based session switching: Requires remembering session
    names/IDs
  3. API-only solution: Doesn't improve the TUI user experience

The proposed Ctrl+K interface provides the best balance of speed,
discoverability, and user experience.

Originally created by @riatzukiza on GitHub (Oct 22, 2025). Originally assigned to: @rekram1-node on GitHub. ### Feature hasn't been suggested before. - [x] I have verified this feature I'm about to request hasn't been suggested before. ### Describe the enhancement you want to request ### Problem Statement Currently, users need to navigate through multiple steps to switch between sessions: 1. Open the session list modal (via command or keybind) 2. Manually scroll through potentially long session lists 3. Find the desired session visually This workflow becomes inefficient as users accumulate more sessions and creates friction in the development flow. The existing session list modal shows all sessions but doesn't provide quick filtering or search capabilities. ### Proposed Solution Implement a Ctrl+K quick session search interface that provides: • Instant access: Press Ctrl+K from anywhere in the TUI to open search • Real-time filtering: Type to instantly filter sessions by title • Visual indicators: Current session clearly marked with ● bullet point • Keyboard-driven workflow: Enter to select, 'n' for new session, Esc to cancel • Consistent UX: Follows existing dialog patterns and styling ### Why This Feature Belongs in OpenCode 1. Core workflow improvement: Session switching is a fundamental operation that happens frequently during development 2. Addresses user friction: Multiple related issues (#3262, #2776) indicate users want better session management 3. Performance enhancement: Reduces cognitive load and time spent navigating sessions 4. Industry standard: Ctrl+K for search/quick switch is a familiar pattern in modern developer tools 5. Scalability: Essential as users accumulate more sessions over time ### Implementation Details The feature has been implemented with: • SessionSearchCommand with ctrl+k keybinding (no leader required for quick access) • Session search dialog with real-time title filtering • Current session highlighting for better orientation • Responsive design that adapts to terminal width • Proper integration with existing modal system and command framework ### Use Cases • Developers with many sessions: Quickly find specific sessions without scrolling • Context switching: Rapidly jump between different project contexts • Session discovery: Easily locate sessions from previous work sessions • Workflow efficiency: Maintain focus on development rather than navigation ### Alternatives Considered 1. Enhancing existing session modal: Would require more clicks and doesn't provide instant access 2. Command-based session switching: Requires remembering session names/IDs 3. API-only solution: Doesn't improve the TUI user experience The proposed Ctrl+K interface provides the best balance of speed, discoverability, and user experience.
yindo added the discussion label 2026-02-16 17:34:45 -05:00
yindo closed this issue 2026-02-16 17:34:45 -05:00
Author
Owner

@github-actions[bot] commented on GitHub (Oct 22, 2025):

This issue might be a duplicate of existing issues. Please check:

  • #3262: Configure switch session modal keybinds - User requests ability to customize session modal keybinds due to session navigation friction
  • #2776: allow selecting session with /tui/select-session - User wants programmatic session selection API for better session management workflow
  • #3291: [FEATURE]: Navigation to parent session from child/subagent sessions - Requests improved session navigation with keyboard shortcuts for session hierarchy

Feel free to ignore if none of these address your specific case.

@github-actions[bot] commented on GitHub (Oct 22, 2025): This issue might be a duplicate of existing issues. Please check: - #3262: Configure switch session modal keybinds - User requests ability to customize session modal keybinds due to session navigation friction - #2776: allow selecting session with `/tui/select-session` - User wants programmatic session selection API for better session management workflow - #3291: [FEATURE]: Navigation to parent session from child/subagent sessions - Requests improved session navigation with keyboard shortcuts for session hierarchy Feel free to ignore if none of these address your specific case.
Author
Owner

@rekram1-node commented on GitHub (Oct 22, 2025):

We actually have this in opentui version already that will ship this week

@rekram1-node commented on GitHub (Oct 22, 2025): We actually have this in opentui version already that will ship this week
Author
Owner

@riatzukiza commented on GitHub (Oct 22, 2025):

oh? XD ok. I guess I should have also searched the closed issues before posting this then.

@riatzukiza commented on GitHub (Oct 22, 2025): oh? XD ok. I guess I should have also searched the closed issues before posting this then.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#2228