Repository navigation
fix(inbox): rows whose times tie keep the servers' listed order - #1212
Merged
Merged
Conversation
…e and Unarchive session (opencode#66327)
Hona
marked this pull request as ready for review
November 25, 2026 13:15
Hona
added a commit
that referenced
this pull request
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.
Follow-up to #1189: Inbox rows whose times tie keep the servers' listed order.
The fault
The Inbox's rows are sorted by time, newest first. Rows with the same time stood with the active server's rows first, so opening a row of another server reordered every tied pair. A run of #1189 saw it with two servers that list the same sessions: Next session from a second-server row opened its twin below, the pairs flipped, and a second press opened the first row again.
Official builds the list from each server in the servers' own order and sorts by time with a stable sort, so ties keep that order whichever server is focused (
packages/app/src/shell/titlebar/inbox-model.ts:164-166,:228).What changes
apps/desktop/src/session/inbox/model.rs,inbox_entries: rows with the same time stand in the servers' listed order (the app's own first).Run
Headless, on this PR's own Windows x64 CI build beside #1189's final build, against a fixture server and a second server added by address that lists the same sessions, so every session stands twice with the same times; in the Inbox layout.
Not run: a real window; three servers; a tie between rows of different sessions; the Archived group; the upward shortcut; macOS and Linux (compiled only).