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 — feat(tui): show pinned sessions in the session list when tabs are enabled by sitole · Pull Request #60237 · anomalyco/opencode

Conversation

@sitole

@sitole sitole commented Oct 29, 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 #60236
Fixes #52794 — the same symptom, reported as a bug.

Type of change

  • Bug fix
  • New feature
  • Refactor / code improvement
  • Documentation

What does this PR do?

#39396 made tabs replace pinned quick slots and hid pins from the session list. Only quick slots collide with tab keys. The Pinned category does not.

In packages/tui/src/component/dialog-session-list.tsx, the Pinned category and ctrl+f pin action now work with tabs enabled. Quick slots stay disabled under tabs, and gutter slot numbers stay hidden.

Pins outside the fetched page of 50 sessions are read from the local session store. A createEffect calls data.session.sync(sessionID) for pinned IDs missing from the store, which fetches GET /api/session/{id}. A pin that returns 404 (deleted elsewhere) is skipped.

The scope filter (current directory vs. all projects) still applies to pins. During a search, only pins in the search results appear, as before. This uses the existing session.json pins. No new state, protocol, or server changes.

How did you verify your code works?

Added a test to packages/tui/test/cli/tui/dialog-session-list.test.tsx. With tabs enabled, session.json pins ses_old, the list endpoint returns only ses_recent, and GET /api/session/ses_old returns the old session. The frame shows "Old pinned session" under "Pinned" and "Recent session". The test fails when the store fallback is removed.

In packages/tui:

  • bun check --no-script -b: clean.
  • bun test test/cli/tui/dialog-session-list.test.tsx test/config.test.tsx: 16 pass, 0 fail.
  • bun run test (whole package): 1564 pass, 2 skip, 1 fail. The failure is test/component/go-upsell-art.test.tsx and fails the same way on dev without this change.
  • The test also pins a session that the server returned from another worktree of the same project. It must stay under Pinned, not under its date. This covers the review fix in 99fef80.
  • Root bun run lint: clean.

Not tried interactively with bun run dev:live.

Screenshots / recordings

None. The change adds a list category that the test covers.

Checklist

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

Added by the opencode bot (AI-generated).

Fixes #52794

Related: #59938

Sorry, something went wrong.

Uh oh!

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

All reactions
@sitole
feat(tui): show pinned sessions in the session list when tabs are ena…
d1ac40f
…bled

Tabs replaced the pinned quick slots because <leader>1-9 collides with
ctrl+1-9. The Pinned category in the session list and the ctrl+f pin
action never collided, yet they were hidden too, and pins saved before
enabling tabs became unreachable.

Pins that fall outside the fetched page of 50 sessions are now read from
the local session store, synced on demand, so an old pinned session does
not drop out of the Pinned category.
@opencodejr opencodejr Bot mentioned this pull request Oct 29, 2026
[FEATURE]: show pinned sessions in the session list when tabs are enabled #60236
Open
1 task done
opencodejr[bot]
opencodejr Bot reviewed Oct 29, 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.

With tabs on, the Pinned category and ctrl+f now work and quick slots stay hidden. I checked this in the TUI with opencode-drive: on the base, ctrl+f does nothing and there is no pin hint; with this change the session moves under "Pinned" (screenshots below). The dialog test passes. The type check gives the same errors as the base, none in the changed file.

Public API: unchanged. This only changes the TUI dialog, and session.json keeps its format.

One behaviour change is worth fixing (see the inline comment). The scope filter now also applies to pins the server already returned, so for users without tabs, some pins that used to show under Pinned now show under their date.

Fixes #52794
Related: #59938

Before

After

Sorry, something went wrong.

Uh oh!

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

All reactions
Comment thread packages/tui/src/component/dialog-session-list.tsx Resolved

Uh oh!

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

@sitole
fix(tui): keep server-scoped pins out of the local scope check
99fef80
The server scopes the fetched page by project and subpath, so a pin
from another worktree of the same project was dropped from Pinned by
the directory check that only the store fallback needs.
opencodejr[bot]
opencodejr Bot reviewed Oct 29, 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.

The new commit addresses the scope-filter point. Pins the server already returned now always stay under "Pinned", and the directory check applies only to pins taken from the local store. The updated test covers a pinned session from another worktree. The dialog test passes. The type check gives the same errors as the base, none in the changed file. A re-run in the TUI with tabs on still shows "Pinned" and pin/unpin ctrl+f.

Public API: unchanged.

No further concerns.

Before

After

Sorry, something went wrong.

Uh oh!

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

All reactions
@neriousy neriousy mentioned this pull request Nov 23, 2026
tui: pinned sessions disappear from the session list once outside the newest 50 #64337
Closed
@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.

[FEATURE]: show pinned sessions in the session list when tabs are enabled tui: /sessions shows no pin option and no Pinned section in 2.0.21 on Windows

Uh oh!

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

1 participant

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