Skip to content

TUI: /sessions search does not filter results - shows all sessions #31182

Description

@malventano

Description

When searching in either TUI session list dialog (basic /sessions command or experimental session switcher), typing a search query appears to do nothing - sessions continue to be displayed as if no filtering occurred, regardless of whether the search term matches any sessions or should narrow the results.

Affects:

  • Basic session list (DialogSessionList) - always active
  • Experimental session switcher (SessionSwitcherDialog) - when OPENCODE_EXPERIMENTAL_SESSION_SWITCHER=1

Plugins

None (this is a core TUI feature)

OpenCode version

1.16.2 (also affects v1.15.13+)

Steps to reproduce

Basic session list:

  1. Run opencode
  2. Type /sessions to open the session list dialog
  3. Type any search term that would shrink the session list (even partial matches that should filter results)
  4. Observe: Sessions remain displayed as if search has no effect

Experimental session switcher:

  1. Run OPENCODE_EXPERIMENTAL_SESSION_SWITCHER=1 opencode
  2. Type /sessions to open the enhanced session switcher with preview pane
  3. Type any search term that would shrink the session list
  4. Observe: Same behavior - all sessions continue to display unchanged

Screenshot and/or share link

N/A - easily reproducible without screenshots

Operating System

All platforms (Windows, macOS, Linux)

Terminal

All terminals (issue is in the TUI component)

Activity

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

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions