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 — fix(tui): keep older pinned sessions visible by jipeng6036-del · Pull Request #64339 · anomalyco/opencode

Conversation

@jipeng6036-del

@jipeng6036-del jipeng6036-del commented Nov 17, 2026 •
edited by opencodejr Bot
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown

Issue for this PR

Closes #64337

Type of change

  • Bug fix

What does this PR do?

The session picker only reads the 50 most recent sessions, so older pins disappear. Fetch missing pinned sessions by ID and keep only unarchived root sessions in the selected scope. Thanks @Jet-00656 for the report and @opencodejr for reproducing it.

How did you verify your code works?

  • bun run --cwd packages/tui test test/cli/tui (440 passed)
  • TUI package typecheck passed. The regression covers an older pin and a pin from another project.

Screenshots / recordings

Session picker before and after, captured from the TUI test renderer

Checklist

  • I have tested my changes locally
  • I have not included unrelated changes in this PR

Added by the opencode bot (AI-generated).

Related: #60236

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@jipeng6036-del
fix(tui): keep older pinned sessions visible
dcd5e18
opencodejr[bot]
opencodejr Bot reviewed Nov 17, 2026
View reviewed changes

@opencodejr opencodejr Bot left a comment

Copy link
Copy Markdown
Contributor

There was a problem hiding this comment.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This fixes #64337, the bug where pinned sessions disappeared from the session list once they fell outside the newest 50. I ran the issue's reproduction with tabs off: 3 pins, then 55 newer sessions. On the base the "Pinned" group is gone. With this change all three pins are listed under "Pinned" with their 1–3 quick-switch numbers, and nothing is duplicated in the date groups. The dialog test and the TUI package type check (tsc -b) pass.

The public API is unchanged; this is internal to the TUI session dialog.

I found nothing that blocks a merge. Pins from another project are left out unless "all projects" is on, as are archived and child sessions. A pin that fails to load is skipped. Pinning or unpinning now reloads the list once and looks up each missing pin by ID, which is fine for the usual handful of pins.

Related: #60236

Before

After

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@opencodejr opencodejr Bot mentioned this pull request Nov 26, 2026
tui: /sessions drops pinned sessions outside the listed page and Ctrl+F no longer follows the pinned row #66534
Open

This branch has not been deployed

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

Reviewers

@opencodejr opencodejr[bot] opencodejr[bot] left review comments

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

tui: pinned sessions disappear from the session list once outside the newest 50

Uh oh!

There was an error while loading. Please reload this page.

1 participant

@jipeng6036-del
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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.