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(app): pin inbox sessions and list archived ones in the sidebar by opencode-agent[bot] · Pull Request #65961 · anomalyco/opencode

Conversation

@opencode-agent

@opencode-agent opencode-agent Bot commented Nov 24, 2026 •
edited by opencodejr Bot
Loading

Uh oh!

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

Copy link
Copy Markdown
Contributor

Issue for this PR

Follow-up to Slack feedback on the experimental Inbox sidebar (pinning missing, Archived as a button + dialog).

Stacked on #65416 (fold unread into Recent): its commit is the first one here. Merge that first, or review only the last three commits.

Type of change

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

What does this PR do?

  • Pinning. Session cards get Pin / Unpin in their context menu. Pinned sessions sit in a Pinned section at the top of the inbox, in pin order, whatever their state (their status dot/ring still shows). It reuses the shared navigation.pins store, so pins carry across sidebar layouts.
  • Archived is a list, not a button + dialog. Archived sessions are a collapsible Archived section at the end of the list (collapsed by default, remembered). The Working shelf stays attached to the bottom. A current archived session still shows at the top while the section is collapsed.
  • Working placement. Right-clicking anywhere in the inbox list outside a card opens a menu whose Working sessions submenu picks Pinned to the bottom or Above archived. The choice is saved. "Above archived" renders Working as a collapsible section between active and archived sessions. Cards stop pointer-down propagation so a touch long-press opens only the card's menu.
  • Less code. Without the dialog, DialogSessionSearch's archived mode had no callers. I removed it, along with session-search-machine (it only handled restore-on-select) and the now-unused sidebar.inbox.archived.title strings. The whole stack is −666 / +259.
  • Focus rescue. Inbox rows use roving tabindex. When pinning or archiving moved a row, focus jumped to the next tab stop ("Show more" / "Archived") and the list scrolled. Rows now carry data-roving, so focus rescue lands on the neighbouring row instead.

Tradeoff: archived sessions can no longer be searched past the newest 50 per server, since that was the dialog's job. The sidebar loads the same 50 as before.

How did you verify your code works?

  • bun run typecheck in packages/app and packages/ui
  • bun test (unit) for src/shell, src/home, src/runtime/i18n: 593 pass
  • Playwright e2e: every inbox test in tabs.spec.ts, plus a new one that replaces the Archived-dialog test and covers the collapsed archived list plus pin/unpin ordering. The only failures (tabs.spec.ts:701, :749) also fail on dev.
  • focus-rescue component tests pass
  • oxlint panics in my sandbox (allocator abort), so lint wasn't run locally. Relying on CI.

Screenshots / recordings

Screenshots are from the real app on the e2e mock server. I couldn't attach images to the PR from my environment, so they're in the Slack thread.

Checklist

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

Requested by: aj via Slack


Added by the opencode bot (AI-generated).

Fixes #59906

Public API: adds "pin" to the plugin's AppIconName type (backwards compatible)

Sorry, something went wrong.

Uh oh!

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

All reactions
@github-actions github-actions Bot added the contributor label Nov 24, 2026
opencodejr[bot]
opencodejr Bot reviewed Nov 24, 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.

I recommend merging this. Pinning and the collapsible Archived section work as described. I ran the same mocked inbox (two active sessions, two archived) on the base branch and on this PR in Playwright: pinning moves the session into a Pinned section at the top, and Archived expands to list archived sessions newest first. Screenshots are below. The new e2e test and the other inbox tests in tabs.spec.ts pass; the only failure, tabs.spec.ts:701, fails the same way on dev. Unit tests for src/shell and i18n pass, and tsc is clean in packages/app and packages/ui.

I checked that pinned sessions outside the newest 50 still appear under Pinned: the shared pins store loads them, and the inbox includes them. The new archivedExpanded setting falls back to its default for existing saved state.

Public API: unchanged. Only app-internal components, one translation string and a focus-handling selector in the UI package change.

The one product-level note is the tradeoff you already describe: once the dialog is gone, the Inbox layout can no longer reach archived sessions older than the newest 50 per server. Nothing blocking.

Fixes #59906

Before

After

Sorry, something went wrong.

Uh oh!

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

All reactions
Brendonovich and others added 3 commits November 24, 2026 02:58
@Brendonovich @opencode-agent
fix(app): fold unread inbox sessions into Recent
97e5218
@hearnadam @opencode-agent
feat(app): pin inbox sessions and list archived ones in the sidebar
5888cc2
Brendan @opencode-agent
feat(app): drop the inbox Recent header
a050581
opencodejr[bot]
opencodejr Bot reviewed Nov 24, 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 removes the visible Recent header as intended and keeps the group's accessible name. Nothing from my earlier review was left open.

I ran the inbox Playwright tests in tabs.spec.ts: 10 of 11 pass, including the updated scroll-position test. The one failure, tabs.spec.ts:701, fails the same way on dev. tsc in packages/app is clean. I also took screenshots of the same mocked inbox (one unread session, one already viewed) on dev and on this commit; they're below.

Public API: unchanged.

One visual problem, which I've left as an inline comment: without the header, read sessions look like they belong to whichever labelled section comes before them, usually Unread.

Before

After

Sorry, something went wrong.

Uh oh!

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

All reactions
Comment thread packages/app/src/shell/titlebar/inbox.tsx
get label() {
return language.t("sidebar.inbox.section.recent")
},
unlabeled: true,

@opencodejr opencodejr Bot Nov 24, 2026

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 no header, read sessions now look like part of the section above them. In the screenshot, the already-viewed "Older inbox session" appears under Unread, separated only by the pb-2.5 gap. Pinned and Needs attention have the same problem when they come right before Recent. Could Recent get a visual separator (a divider or more spacing), or keep its header when another section comes before it? Then read sessions won't look unread.

Sorry, something went wrong.

Uh oh!

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

All reactions
Brendan @opencode-agent
feat(app): lead Recent with pinned inbox sessions
144f85a
@opencode-agent
opencode-agent Bot force-pushed the inbox-pins-archived-list branch from c181f84 to 144f85a Compare November 24, 2026 03:04
opencodejr[bot]
opencodejr Bot reviewed Nov 24, 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.

My earlier point about read sessions looking unread is addressed: the Unread section is gone, so read and unread sessions share Recent and only the dot tells them apart. Pinned sessions now lead Recent with a pin icon.

At the new head, tsc is clean in packages/app and packages/ui, the unit tests for src/shell, src/home and i18n pass (593 of 593), and 10 of 11 inbox Playwright tests pass. The one failure, tabs.spec.ts:701, also fails on dev. I also took before and after screenshots of the same mocked inbox; they're below.

Public API: unchanged.

One design note, not blocking: a pinned session that needs approval or is still running stays at the top of Recent rather than in Needs attention or the Working shelf. Its status dot or ring still shows, which matches what the description says.

Before

After

Sorry, something went wrong.

Uh oh!

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

All reactions
Brendan @opencode-agent
feat(app): choose where the inbox shows Working from the list's menu
ca28007
opencodejr[bot]
opencodejr Bot reviewed Nov 24, 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 works as described: right-clicking the list outside a card opens the Working placement menu, "Above archived" moves Working into the list between Recent and Archived, and the choice survives a reload. Right-clicking a card still opens only the card's own menu. My earlier point about read sessions looking unread was already addressed by the previous push.

At the new head, tsc in packages/app is clean, the unit tests pass (593 of 593), and 11 of 12 inbox Playwright tests pass, including the new placement test. The one failure, tabs.spec.ts:701, also fails on dev. Before and after screenshots of the same mocked inbox are below.

Public API: unchanged.

Not blocking: the placement menu only opens by right-clicking blank space or a section header, which can't take keyboard focus. Keyboard-only users can't reach this setting, and there's no other place to change it.

Before

After

Sorry, something went wrong.

Uh oh!

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

All reactions
Brendan @opencode-agent
feat(app): move Working placement into a submenu
03cd1c8
opencodejr[bot]
opencodejr Bot reviewed Nov 24, 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 works: right-clicking the inbox list (outside a card) now shows a single Working sessions item, and its submenu offers Pinned to the bottom and Above archived, with the current choice checked. My earlier point about read sessions looking unread was already addressed when the Unread section was removed.

At the new head, tsc in packages/app is clean and 11 of 12 inbox Playwright tests pass, including the updated placement test. The one failure, tabs.spec.ts:701, also fails on dev. Screenshots are below.

Public API: unchanged.

Nothing new to raise.

Before

After

Sorry, something went wrong.

Uh oh!

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

All reactions
@github-actions github-actions Bot mentioned this pull request Nov 24, 2026
📊 AI CLI 工具社区动态日报 2026-11-24 litang9/big_model_radar#751
Open
Brendan @opencode-agent
chore(plugin): regenerate icon names for pin
54a06a6
opencodejr[bot]
opencodejr Bot reviewed Nov 24, 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 regenerates the plugin's icon-name type for the pin icon. Re-running bun run generate in packages/plugin produces exactly the committed file, and the rest of the stack is unchanged from my last review. My earlier point about read sessions looking unread was addressed earlier, when the Unread section was removed.

Public API: the plugin package's AppIconName type gains one value, "pin". This only adds an option, so existing plugins are unaffected.

Nothing new to raise.

Sorry, something went wrong.

Uh oh!

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

All reactions
Brendan @opencode-agent
style(app): space session search select
70b9bf0
opencodejr[bot]
opencodejr Bot reviewed Nov 24, 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 only adds blank lines in session-search.tsx, so behaviour is unchanged and there was nothing new to verify. My earlier point about read sessions looking unread was addressed earlier, when the Unread section was removed.

Public API: unchanged by this commit. The stack as a whole still only adds "pin" to the plugin's AppIconName type, which is backwards compatible.

Nothing new to raise.

Sorry, something went wrong.

Uh oh!

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

All reactions
@Brendonovich
Brendonovich merged commit b5948e5 into dev Nov 24, 2026
10 checks passed

Uh oh!

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

@Brendonovich
Brendonovich deleted the inbox-pins-archived-list branch November 24, 2026 06:41
@opencode-agent opencode-agent Bot mentioned this pull request Nov 26, 2026
fix(app): show the Recent header in the inbox sidebar again #66494
Merged
3 of 6 tasks
@amrkmn amrkmn mentioned this pull request Nov 26, 2026
opencode 2.4.2 amrkmn/homebrew-tap#1260
Closed
1 task
This was referenced Nov 26, 2026
feat: opencode release v2.4.2 sprisa/opencode-server#97
Merged
Tool release: OpenCode 2 v2.4.2 (was v2.3.2) agent-sh/agnix#1894
Closed
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

contributor

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Allow pinning sessions on the new experimental view.

Uh oh!

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

2 participants

@Brendonovich @hearnadam
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.