Stale search text silently empties a freshly opened folder view; count footer disagrees #602
Labels
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: Cordy/Cairn#602
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Found while eyeballing #571 on the enc dogfood (v0.6.215).
Repro
admin1) and leave it there.display: nonefrom the client-side filter — while the count footer still reads the unfiltered totals ("0 folders, 2 files").Why it's bad
Suggested fix (pick one)
A is simpler and matches how the header search already spawns a dedicated "Results for 'X'" view; the sticky text seems to be leftover state, not a feature.
Shipped in v0.6.225 (PR #624, tag on
4a400c3), live on both dogfoods — fix A as picked.Search is per-view now: any route or folder change clears the searchbox (and bumps
searchSeq+ cancels the debounce, so an in-flight header search can't land on the new view either). The one deliberate exception: a same-path reload — the refreshload(cwd)after rename/delete/upload — keeps your active filter, which is what the end-of-load()filter reapply was originally for. Leaving the dedicated "Results for…" view always clears.Decision logic is the
pure:search-resetblock with a node test covering all four cases (folder change, route change, same-path refresh, leaving search view). Repro from the report: type text → Shares → open a shared folder → the folder now lists normally with an honest footer.