DashboardcliIssue-list sort defaults and server ran…

Issue-list sort defaults and server ranking preservation

Category: gotcha
Confidence: 0.80
ID: 01a082b1-bd56-7b9f-a32b-41acaa7fe093
Project ID: c760f4f9-42b0-4ce0-b36d-6b8c38d770b2
Cross-project: No
Recalled in other projects: 1
Source session: 1RoZiOyO54DGph0sA
Created: 2026-06-23 09:40:01
Updated: 2026-09-08 20:24:41

Cross-Project Recalls

ProjectHitsLast recalled
opencode-lore 3 4d ago

Content

Client-side sorting is only for multi-project issue results. Never apply getComparator('recommended') to a single-project result: it falls back to lastSeen ordering and would silently overwrite the server’s relevance ranking. Tests must also omit the sort flag and verify that the resolved default reaches the API: recommended for SaaS and date for self-hosted. Existing tests that always pass sort explicitly do not cover this integration behavior.

Move to: