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 — TUI session picker hides older root sessions when recent child sessions fill list · Issue #25897 · anomalyco/opencode

TUI session picker hides older root sessions when recent child sessions fill list #25897

New issue
Copy link
New issue
Copy link
Closed as not planned
Closed as not planned
TUI session picker hides older root sessions when recent child sessions fill list#25897
Copy link
Assignees
simonklee

Description

@jackmazac
jackmazac
opened on May 5, 2026
Issue body actions

Description

The TUI session picker can hide older resumable root sessions in projects with many recent child/subagent sessions.

The TUI bootstrap query currently requests sessions with a 30-day start filter and does not pass roots: true. The dialog then filters roots client-side, so recent child sessions can consume the server-side result window before root filtering happens. The server session list API already supports roots=true, so the TUI can ask for root sessions directly.

Expected behavior: /sessions should list historical root sessions that can be resumed, even when recent child sessions exist.

Plugins

N/A

OpenCode version

Observed on current dev source.

Steps to reproduce

  1. Use a project with historical root sessions and many newer child/subagent sessions.
  2. Open the OpenCode TUI and open /sessions.
  3. Notice older root sessions are missing even though they exist in the session database and the session list API supports root filtering.

Screenshot and/or share link

N/A

Operating System

macOS 15.6

Terminal

Terminal.app / Cursor integrated terminal

Activity

  1. github-actions
    assigned
    simonklee
    on May 5, 2026
  2. github-actions commented on May 5, 2026

    @github-actions
    github-actionsBot
    on May 5, 2026 – with GitHub Actions
    Contributor
    More actions

    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 — TUI bootstrap does not pass roots: true, causing child sessions to fill the server-side result window before client-side root filtering happens. Includes the same proposed fix (roots: true in the sdk.client.session.list() call).
    • TUI /sessions picker only shows recent sessions #13877: Same symptom — TUI /sessions picker only shows recent sessions, older root sessions are missing.
    • TUI /sessions only show sessions from last 30 days, while CLI session list shows all my sessions (thank god) #16733: Same symptom — TUI /sessions only shows sessions from last 30 days due to child session dilution.

    Please review those issues and consider closing this one as a duplicate if the root cause matches.

  3. codeg-old commented on May 9, 2026

    @codeg-old
    codeg-old
    on May 9, 2026
    More actions

    I opened #26432 for this.

    It avoids the earlier broad-bootstrap side effect by leaving the shared sync.data.session list unchanged and querying root sessions only inside the session switch dialog. It also avoids the 30-day bootstrap window for the default dialog list, preserves the existing scope/path filter, and includes a focused unit test for the query shape.

    Verified locally on the current dev base with:

    • bun test test/cli/tui/dialog-session-list.test.ts test/server/session-list.test.ts test/server/httpapi-sdk.test.ts --timeout 30000
    • bun run typecheck
    • bun run build

    Authorship disclosure: prepared with AI assistance.

  4. adamdama
    marked TUI session picker: root sessions hidden when project has many subagent children #31881 as a duplicate of this issue on Jun 12, 2026
  5. github-actions commented on Jul 9, 2026

    @github-actions
    github-actionsBot
    on Jul 9, 2026 – with GitHub Actions
    Contributor
    More actions

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

  6. github-actions
    closed this as not plannedon Jul 9, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

  • @simonklee
    simonklee

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

    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.