GeezerVison is showing github.com — fix(tui): keep older pinned sessions visible by jipeng6036-del · Pull Request #64339 · anomalyco/opencode
Conversation
jipeng6036-del
commented
Nov 17, 2026
•
edited by opencodejr
Bot
Loading
Uh oh!
There was an error while loading. Please reload this page.
Issue for this PR
Closes #64337
Type of change
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

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.
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


Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
This branch has not been deployed
No deployments
Uh oh!
There was an error while loading. Please reload this page.
Assignees
No one assigned
Milestone
No milestone
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.