GeezerVison is showing github.com — fix(app): inbox sidebar — archived sessions needing attention, archive toggle, session shortcuts by opencode-agent[bot] · Pull Request #66327 · anomalyco/opencode
Conversation
An archived session that asks a question or needs a permission stayed under Archived in the inbox sidebar, so you never saw it was waiting on you.
Now it moves into Needs attention (not dimmed) while it waits, and drops back into Archived once you answer. It isn't unarchived on the server, so a recurring "keep this hidden unless it needs me" session stays hidden after each question. The row's menu still offers Unarchive for when you want it back for good.
inbox.tsx: Needs attention includes archived waiting sessions; Archived leaves them out; the card dims only when archived and not waiting.
inbox-model.ts: inboxWaiting helper.
- e2e: an archived session gets
form.created, shows in Needs attention with Archived gone; form.replied sends it back to dimmed Archived. Fails without the fix, passes with it. The neighbouring archived inbox tests still pass.
Archive shortcut toggles (follow-up from Victor): ⌘⇧S (session.archive) now unarchives the open session if it's archived, and the session stays open. There's also a new Unarchive session command (session.unarchive), with no default shortcut, so it can get its own binding in Settings → Keybinds. The archive command keeps its name.
- e2e: ⌘⇧S unarchives an archived session, then archives it again; the palette offers Unarchive session only while the session is archived, and running it sends
archived: false. Fails without the change.
Session shortcuts in the inbox (also from Victor): the inbox never registered the sidebar's row shortcuts, so ⌘1-9, ⌥↑/⌥↓ (previous/next session) and ⇧⌥↑/⇧⌥↓ (next unread) did nothing there. It now uses the same createSessionRowNavigation as the other sidebars, over the rows in display order: the open session if it isn't listed, Needs attention, Recent, Working, then Archived when expanded (Working last when it's on the bottom shelf). Collapsed sections are skipped. The ⌘-held number badges aren't drawn on inbox cards yet.
- e2e: ⌘1/⌘3 pick rows, ⌥↓ steps and wraps past a collapsed Archived section, ⇧⌥↓ jumps to the unread row. Fails without the change.
Requested by: @Brendonovich (Brendan via Slack)
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
opencode-agent
Bot
changed the title
fix(app): surface archived inbox sessions that need attention
feat(app): surface archived inbox sessions that need attention, and toggle archive
Nov 25, 2026
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.
Looks good. I ran the new e2e test on both branches. On the base it fails because the archived session stays hidden under the collapsed Archived section. With this PR it appears undimmed in Needs attention and goes back to a dimmed Archived row after form.replied. With the PR, the neighbouring inbox e2e tests pass and tsc -b in packages/app passes. The only other failure, the unrelated test at line 701 of tabs.spec.ts (an unread tab whose run failed shows the failed dot), times out on the base too.
Public API is unchanged; this only changes the web app's sidebar view logic.
No blocking concerns.


Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
opencode-agent
Bot
changed the title
feat(app): surface archived inbox sessions that need attention, and toggle archive
fix(app): inbox sidebar — archived sessions needing attention, archive toggle, session shortcuts
Nov 25, 2026
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 commits work as described. The new e2e test fails on the base and passes with the PR. The existing ⌘⇧S archive test and the archived-inbox test still pass, and tsc -b in packages/app passes.
Public API is unchanged. The app gains a session.unarchive palette command with no default shortcut, and session.archive now also unarchives; neither touches the SDK, server, plugin or config.
One concern: on an archived session the palette shows a mislabelled Archive session entry (see inline).
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
|
|
keybind: "mod+shift+s",
|
|
|
disabled: !archivable(),
|
|
|
onSelect: archiveSession,
|
|
|
// Toggles, so one shortcut archives a session and brings an archived one back.
|
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.
session.archive is no longer disabled when the session is archived, and the palette lists every option that isn't disabled. So an archived session shows both Archive session and Unarchive session, and choosing "Archive session" actually unarchives it. Could the title follow the state, e.g. unarchivable() ? command.session.unarchive : command.session.archive? Another option is to hide this entry from the palette while the session is archived and keep only the keybind, since session.unarchive already covers the palette.
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.
The new commits work as described. The new inbox shortcut e2e test fails on the base and passes with the PR. The other inbox and ⌘⇧S e2e tests in tabs.spec.ts pass, apart from the failed-dot test at line 766, which also fails on the base. tsc -b in packages/app passes. The inbox reuses createSessionRowNavigation, and only one sidebar is mounted at a time, so the shortcut registrations don't clash.
Public API is unchanged.
The earlier point about the mislabelled Archive session palette entry on archived sessions is not addressed yet. No new concerns.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
This was referenced Nov 26, 2026
Uh oh!
There was an error while loading. Please reload this page.
Milestone
No milestone
Development
Successfully merging this pull request may close these issues.
Uh oh!
There was an error while loading. Please reload this page.
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.
|