Repository navigation
feat(inbox): archived sessions that need attention, the archive toggle and Unarchive session (opencode#66327) - #1189
Merged
Merged
Conversation
…e and Unarchive session (opencode#66327)
Hona
marked this pull request as ready for review
November 25, 2026 11:48
Hona
added a commit
that referenced
this pull request
Nov 25, 2026
This was referenced Nov 25, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Ports opencode#66327 (
acce96c36e): the Inbox sidebar's archived sessions that need attention, the archive toggle, and its session shortcuts.What changes
packages/app/src/shell/titlebar/inbox.tsx:142,:157,:895;inbox-model.ts:523inboxWaiting). Ours:apps/desktop/src/session/inbox/model.rs(inbox_sections_with,Entry::waiting),apps/desktop/src/shell/view/inbox.rs(the card's dim).packages/app/src/session/commands/use-session-commands.tsx:609-614). Ours:apps/desktop/src/session/menu.rs,App::open_root_archivedinshell/commands/mod.rs.use-session-commands.tsx:617,en.ts:127), enabled on an archived session; no shortcut of its own. Ours:session.unarchive, its place inshell/commands/order.rs, the string incrates/opencode-i18n/locales/official/en.json.inbox.tsx:178-210,tab-strip.tsx:379). Ours already stepped through the Inbox's rows in the same order as official'snavigationKeys. Three things now follow official's code:inbox.tsx:199).tab-strip.tsx:452,:392).A fault of ours, found by a run and fixed here
The Archive session shortcut (mod+shift+s) never reached its command. The command names its key (so the palette shows it), but the table that sends a pressed key to a command had no line for it (
apps/desktop/src/shell/input/shortcuts.rs,TABLE); it has been so since the command was added. A run pressed the key on this PR's build and on a build ofdev, and nothing happened on either. The line is added, so the key archives the open session and, with this port, brings an archived one back.How it differs from official
use-session-commands.tsx:359-391; the Inbox's own menu the same atinbox-model.ts:478-492). Ours moves the session at once and then writes. A refusal shows the toast in ours too (features/session-menu/src/lib.rs:500-502for an unarchive,apps/desktop/src/session/events/incoming.rs:110-116for an archive), but the session keeps showing as moved: nothing puts it back, and the archived list is read once per run (apps/desktop/src/session/inbox/model.rsArchivedFetch). Ours' Archive and Unarchive worked so before this change; the toggle and the new command call the same two functions (archive_session,unarchive_sessionin that file). It needs nothing from Rune: a follow-up PR. By reading.use-session-commands.tsx:347-351). By reading: such a session opens from the Inbox's Archived group, which is that list.Run
Headless, on this PR's own Windows x64 CI builds beside a build of
devwithout the change, against a fixture server, in the Inbox layout; for the third case with a second server added by address. Cases 1 and 3 ran on head9efd85cc6, one line before the final head (the shortcut's line in the key table); case 2 on the final headd8835d52b.Not run: a real window; a refused archive or unarchive; the Undo in the toast; shift+alt+up and alt+up; a failed row; an archived session the window does not hold; macOS and Linux (compiled only).
Seen in the run and not part of this change: two servers that are one server list every session twice with the same times, and rows that tie stand with the active server's first, so a step to the other server's row reorders them. Official orders ties by the servers' listed order (
inbox-model.ts:164-228). A follow-up PR.