Repository navigation
fix(browser): refresh folder counts after file operations - #1937
Conversation
Reuse shared operation-ended notices and viewport metadata admission to update counts without reloading parent listings. Reject stale fills and listings, preserve unrelated work, and resolve shifted targets through the cached metadata index. Cover successive copy/move drops, row insertion/removal, undo, multiple browsers, overlapping writers, and offscreen/unbound metadata lifecycle. Fixes #1917
|
Implemented in The fix reuses the shared operation-ended subscription, viewport admission/batching, and the existing cached location index. It updates source/destination counts across browsers without parent-list reloads, preserves unrelated fills, cancels obsolete-only batches, waits for overlapping writers, and handles stale results/listings and shifted rows. The existing drop scenario now covers move/Ctrl-copy, successive drops, insertion/removal before the target, and undo in all three views. Validation scope and resultsShared activity notifications and viewport routing warranted an initial full Rust and full QA run. Failures were subsequently isolated rather than repeating unrelated suites.
Retained full-run results
QA quality was re-rated 3/4/4/4 = 49, with costs calibrated from the measured full-run inventory and final scoped timings. Independent Haiku grading could not run: the configured provider returned HTTP 402 (account balance required); it is not reported as passed. No owner-policy overrides, host QA runs, desktop display/session-bus use, image rebuilds, or baseline updates were needed. Logs and investigation-only artifacts remain ignored under |
Measured before/after folder-count workflow benchmarkIcons view, moving a small text file into an existing visible folder. 10 measured moves per build per fixture, after two automatic-update probes and one excluded warmup.
Measured work per operation:
Method and limitations
Reproduction and recordsOn the task machine: python3 target/issue-1917/benchmark/run.py --samples 10 --sizes 100,10000The detached baseline worktree and reflinked build cache are retained at Raw data: |
|
CI status update: quality build/lint and Rust shards 0, 1, and 3 passed. Shard 2 failed only |
ReviewMerged Reviewed the full diff against the updated
Local validation on the merged tree:
|
Description
Refresh folder item counts after file operations in Columns, Icons, and List using the existing shared operation notifications and viewport metadata workers. Handle stale metadata/listing results, shifted rows, multiple windows, overlapping operations, and undo without reloading parent listings or recounting offscreen folders. Reuse the cached metadata index to resolve shifted targets.
Visual evidence
folder-count-demo.mp4
How to test
Expected result: The folder count updates automatically from empty to one, then two, and back to empty after undo. Selection stays intact and no manual refresh is needed.
Related issue
Closes #1917