GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — bug(tui): Switch Session can hide recent root sessions behind child sessions · Issue #23277 · anomalyco/opencode

bug(tui): Switch Session can hide recent root sessions behind child sessions #23277

New issue
Copy link
New issue
Copy link
Closed
Closed
bug(tui): Switch Session can hide recent root sessions behind child sessions#23277
Copy link
Assignees
rekram1-node
Labels
needs:complianceThis means the issue will auto-close after 2 hours.opentuiThis relates to changes in v1.0, now that opencode uses opentui

Description

@jiwangyihao
jiwangyihao
opened on Apr 18, 2026
Issue body actions

Problem

Switch Session fetches a mixed session list and only filters root sessions in the dialog.

When a project has many newer child sessions, recent root sessions can disappear from the default dialog even though opencode session list still shows them.

Repro

  1. Create a project with many recent child sessions / subagent sessions
  2. Keep an older-but-still-recent root session
  3. Open Switch Session
  4. Notice that the root session can be missing from the default list

Why this happens

The dialog path limits the mixed session list before filtering parentID === undefined, so child sessions can crowd root sessions out of the first page.

Related: #16270

Activity

  1. github-actions
    assigned
    rekram1-node
    on Apr 18, 2026
  2. github-actions
    added
    opentuiThis relates to changes in v1.0, now that opencode uses opentui
    on Apr 18, 2026
  3. github-actions commented on Apr 18, 2026

    @github-actions
    github-actionsBot
    on Apr 18, 2026 – with GitHub Actions
    Contributor
    More actions

    This issue doesn't fully meet our contributing guidelines.

    What needs to be fixed:

    • No standard issue template was used. Bug reports must use the Bug Report template, which requires an environment/system information section (OS, OpenCode version, terminal, etc.) to help reproduce and diagnose the issue.

    Please edit this issue to address the above within 2 hours, or it will be automatically closed.


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

    • /sessions TUI only shows recent sessions, ignores historical ones #16270: Describes the exact same root cause (child session dilution in the TUI session list — mixed root+child sessions hitting the limit before client-side filtering). The author even references this issue. Please consider whether this adds new information beyond what is already tracked there.
    • TUI /sessions picker only shows recent sessions #13877: Same symptom (TUI /sessions picker only showing a limited set of recent sessions).

    If you believe this was flagged incorrectly, please let a maintainer know.

  4. github-actions
    added
    needs:complianceThis means the issue will auto-close after 2 hours.
    on Apr 18, 2026
  5. jiwangyihao commented on Apr 18, 2026

    @jiwangyihao
    jiwangyihao
    on Apr 18, 2026
    Author
    More actions

    Closing as a duplicate of #16270. That existing issue already tracks the same root cause: the TUI session dialog requests a mixed root+child list, hits the default limit, and only filters root sessions client-side, so recent child sessions can crowd root sessions out of the default picker.

  6. jiwangyihao
    closed this as completedon Apr 18, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

  • @rekram1-node
    rekram1-node

Labels

needs:complianceThis means the issue will auto-close after 2 hours.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

    You are visitor 01402775 — GeezerVison does not store the pages you look up.
    Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.