feat: multi-select saved search-config sessions (union) with per-session deselect - #96
Merged
Merged
Conversation
Clicking a session chip now toggles it. Clicking the active session again deselects it: its loaded search configs are removed and the results overview is cleared (zero enabled configs → the batch runner already clears + repaints). Previously a chip could only be applied, never un-applied, so there was no way to clear a session's configs without deleting them one by one. - toggleSearchConfigSession(): apply if not active, deselect if active. - deselectSearchConfigSession(): drop the session's configs + results, activeSessionId = null, re-render, re-run batch (clears display). - Active chip shows a ✕ badge + "click to deselect" tooltip; inactive chips keep the config-count badge + "click to apply" tooltip. - CSS: active ✕ badge bolded and brightens on hover (deselect cue). tsc 0 · 663 tests green · bundle built. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
…on deselect Extends the session toggle: sessions are no longer mutually exclusive. Selecting a session now APPENDS its search configs to the working set instead of replacing everything, so several sessions can be active at once (their patterns union). Clicking an active chip deselects just that session — removing only the configs it contributed, leaving the other sessions' (and any manual) configs untouched. - activeSessionId (single) → activeSessionIds Set + sessionConfigIds Map (sessionId → the config ids it added) for precise deselect. - selectSearchConfigSession() appends; deselectSearchConfigSession(id) removes that session's configs; toggle picks by membership. - Saving current configs as a session marks it active + attributes the live configs to it (deselectable like the rest). - Deleting an active session pulls its configs out of the working set. - loadSearchConfigs() resets the selection tracking (it's scoped to a file's working set; configs reload per-file). tsc 0 · 663 tests green · bundle built. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
ozgesolidkey
added a commit
that referenced
this pull request
Aug 19, 2026
feat: multi-select saved search-config sessions (union) with per-session deselect
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.
Why
Saved search-config sessions could only be applied one at a time (applying one replaced everything) and couldn't be un-applied. Requested: select multiple sessions at once and deselect them individually.
What
activeSessionId(single) →activeSessionIdsSet +sessionConfigIdsmap (session → the config ids it added) for precise per-session removal.loadSearchConfigs()resets the selection tracking (scoped to a file's working set; configs reload per-file).Verify
tsc 0 · 663 tests green · bundle built. GUI: select two sessions → both chips active, both pattern sets applied; deselect one → only its configs/results drop, the other stays.
🤖 Generated with Claude Code