Skip to content

fix(search): reset vault-specific search state - #940

Merged
antonreshetov merged 1 commit into
mainfrom
fix/snippets-search-vault-switch
Sep 18, 2026
Merged

antonreshetov merged 1 commit into
mainfrom
fix/snippets-search-vault-switch

Conversation

@antonreshetov

Copy link
Copy Markdown
Member

Switching vaults during a snippet search retained the query and pre-search selection. Clearing the query could restore a snippet or folder from the previous vault. Reset snippet search state when the Code space is reset, and also discard the HTTP pre-search selection snapshot during its existing search reset.

Audited the remaining search entry points: Notes was fixed in #939; Math, Drawings, editor content search, and local HTTP filters are component-local and unmount when navigating to vault settings; the command palette clears its search on close.

Validation: 35 targeted tests passed across snippet search, Code initialization, HTTP search/initialization, and Notes search/initialization. Scoped ESLint passed. Added regressions covering vault changes and subsequent search restoration. No manual application UI verification.

@antonreshetov antonreshetov self-assigned this Sep 18, 2026
@antonreshetov
antonreshetov merged commit 0599cac into main Sep 18, 2026
@antonreshetov
antonreshetov deleted the fix/snippets-search-vault-switch branch September 18, 2026 02:19
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