Skip to content

A scan that failed says so - #99

Open
armada45-pixel wants to merge 1 commit into
tobi:mainfrom
armada45-pixel:failed-scan-says-so
Open

armada45-pixel wants to merge 1 commit into
tobi:mainfrom
armada45-pixel:failed-scan-says-so

Conversation

@armada45-pixel

@armada45-pixel armada45-pixel commented Oct 13, 2026 •

Copy link
Copy Markdown
Contributor

One of a set of small PRs that replace #87 and #88, one feature each. Rebased onto 1.5.0 (73bdbb3); they touch neighbouring lines in state.rs, views.rs and tests.rs, so whichever merges later will need another rebase; I'll do those as they come up.

1.5.0 already shows "Scan failed" with no spinner when a scan ends in an error, so this is now only the side panel: after a failed or stopped scan, "Worth a look" went on saying "Waiting for the scan". It now says "Nothing was scanned". A few debug_selectors let the window harness tell the states apart.

Verified. cargo xtask lint is green on Windows and all 98 disktree-app tests pass, including a new one. 9 tests in disktree-cli, disktree-core and disktree-scanner (btrfs, hardlink and cache tests) fail on Windows on an unchanged 1.5.0 too, so the full cargo xtask test run is red there for reasons outside this PR.

Not verified. Nothing was run on Linux or macOS. On this branch the feature was exercised through the window-harness tests only; the app was not launched from it.

🤖 Generated with Claude Code

When a scan ended in an error, or was stopped, with no tree to show,
"Worth a look" went on saying "Waiting for the scan" for a scan that was
not coming. It now says nothing was scanned. The viewport already says
"Scan failed" with the error and offers to scan again; this brings the
side panel in line with it. Debug selectors tell the three states apart
for the window-harness test.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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