Skip to content

fix(inbox): rows whose times tie keep the servers' listed order - #1212

Merged
Hona merged 5 commits into
devfrom
upstream-f/inbox-tie-order
Nov 25, 2026
Merged

Hona merged 5 commits into
devfrom
upstream-f/inbox-tie-order

Conversation

@Hona

@Hona Hona commented Nov 25, 2026 •

Copy link
Copy Markdown
Member

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.

  1. With the change: the pairs stand in the servers' listed order, the app's own first, whichever server's row is open. Next session pressed once, twice and three times from a second-server row opens the next three rows, one row down each press.
  2. Before: opening a second-server row put every pair's second-server row first; one press opened its twin and every pair flipped back, so two presses ended on the row where they began and it never got past the pair.

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).

@Hona
Hona marked this pull request as ready for review November 25, 2026 13:15
@Hona
Hona merged commit ffb6d82 into dev Nov 25, 2026
7 checks passed
@Hona
Hona deleted the upstream-f/inbox-tie-order branch November 25, 2026 13:15
Hona added a commit that referenced this pull request Nov 25, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant