You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix(code-tab): persist tree search query across row clicks
Pierre's FileTree closes the search session on input blur. Their
`searchBlurBehavior: 'retain'` only protects the *initial mount* query
(per the implementation comment in FileTreeView.tsx), so as soon as the
user types and then clicks a result, the filter vanishes — terrible for
the tree+viewer pattern where you want to scan multiple matches.
Workaround: track the live query via `onSearchChange` and re-open the
search inside `onSelectionChange` with a short window-based heuristic.
Escape (close not followed by a selection) still closes; row click
(close immediately followed by a selection) re-opens with the saved
query.
0 commit comments