Repository navigation
feat(search): Search sessions finds archived sessions, dimmed (opencode#66356) - #1232
Merged
Merged
Conversation
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#66356 (
45277af6cf, UP-238): Search sessions finds archived sessions, dimmed.What changes
packages/app/src/shell/commands/dialog.tsx:261,:267), and open the session like any other row (session-search.tsx:76-86): nothing is restored.packages/app/src/shell/commands/palette.ts:386,:435-441).session-search.tsx:34-42).The same holds for the session rows of Quick Open, which is this app's session search with projects ahead of it.
How
features/switcher/src/entries.rs: a row knows whether its session is archived (Entry::archived);Listedsays which sessions a search lists and which a server is asked for.features/switcher/src/servers.rs:foundis the one place a server is asked (the window's own server and the others used two copies of it). Both pages and a pasted id go out at once, as official'sPromise.all; in the browser build one after another.features/switcher/src/search_index.rs,session_index.rs: the loaded sessions' index answers a typed session search with archived ones among them (Scope::Sessions); one typed letter still takes the prepared rows.features/switcher/src/view.rs: a row dims by its own session, not by the dialog's mode.Verification
39af4528d, run45646053572) beside a before build (cc991c6505, run45629508899):#fafafab3/#808080b3), time and badge undimmed; before: no row.GET /api/session?parentID=null&archived=false&limit=50&search=...andarchived=true&limit=50&search=...) and rendered the dimmed archived match (#fafafab3/#808080b3, time#aeaeaeff); before: 1 request (archived=false), 0 rows.archived=falseandarchived=truerequests to both servers and rendered both dimmed rows with the second server's name.origin/devinto branch (798e70ac3a, 0 overlapping files) to verify cleanly on the current Rune pin before merge.