Commit Graph
129 Commits
Author SHA1 Message Date
Tobi Lutke b1edd42da8 feat(remote,ui): cache remote SSH scans with SWR, smooth 200ms freshness fades, raise remote deadline to 30m 2026-11-25 19:11:49 -05:00
Tobi Lutke 8df1c08f7d fix(ssh,ui): read /proc/self/exe, open Tailscale SSH approval links, soften freshness fades, remove Apparent size checkbox, tidy selection icons 2026-11-25 18:09:58 -05:00
Tobi Lutke e0a4927b50 app: shade stale, queued-for-refresh, and actively updating tiles distinctly 2026-11-25 17:36:30 -05:00
Tobi Lutke 1d2225cd73 app: compact static-height selection card with top-right open, mark and refresh icons 2026-11-25 17:27:17 -05:00
Tobi Lutke a8da67feac feat: unify disktree-scan into disktree-cli, package predictable release binaries, and offer one-click SSH install 2026-11-25 17:23:26 -05:00
Tobi Lutke 730885a40b app: replace worker-count UI with scanner heuristic; simplify CLI fresh badge 2026-11-25 17:10:47 -05:00
Tobi Lutke e24e9ade35 refactor: make implicit state machines explicit with pure State/Event/Effect/step 2026-11-25 15:54:21 -05:00
Tobi Lutke b22fd263f2 feat(scanner): prioritize unscanned directories ahead of stale ones (oldest first) and splice immediate refreshes 2026-11-25 15:34:27 -05:00
Tobi Lutke 75e0c3f701 fix(scan): never display partial ancestor stubs as complete trees and emit live snapshots before DB persist 2026-11-25 15:28:30 -05:00
Tobi Lutke e85f8a749b refactor: switch workspace all-in on disktree-scanner and remove legacy scanners 2026-11-25 15:23:00 -05:00
Tobi Lutke 2f5b1a4b92 app: scan home directly, default depth 4, and clean up location chooser 2026-11-25 10:31:40 -05:00
Tobi Lutke 018c3bea1a Merge pull request #84 from armada45-pixel/perf-and-hardening
# Conflicts:
#	.github/workflows/release.yml
#	crates/disktree-app/src/marks.rs
#	crates/disktree-app/src/state.rs
2026-11-25 09:56:14 -05:00
Tobi Lutke dfb97ac66d Merge pull request #89 from armada45-pixel/help-close 2026-11-25 09:52:34 -05:00
Tobi Lutke c3ce568e54 Merge pull request #126 from jamerrq/follow-omarchy-font 2026-11-25 09:52:27 -05:00
Tobi Lutke 6d8c453e00 test: pass PathStyle::Native to path_of in lossy removal tests 2026-11-25 09:52:06 -05:00
Tobi Lutke fbfac53223 Merge pull request #81 from phibkro/fix/git-inspection-safety 2026-11-25 09:50:54 -05:00
Tobi Lutke dd3bd98814 Merge pull request #82 from phibkro/fix/lossy-name-safety 2026-11-25 09:50:54 -05:00
Tobi Lutke 89483bfee7 Merge pull request #106 from bet4it/fix/filter-pseudo-volumes 2026-11-25 09:50:53 -05:00
Tobi Lutke 61049e0af4 Merge pull request #109 from bet4it/fix/test-delayed-allocation-sync 2026-11-25 09:50:53 -05:00
Jamer Rebolledo c57f6f9e1f app: follow the Omarchy font on every surface 2026-11-09 23:48:03 -05:00
Harold Hunt 40a66b40cd test: run the scanner's snapshot tests on Unix only
These run disktree-scan on the test machine and read what it sends, so
the machine is the host. Clients now refuse Windows hosts, so on
Windows they failed with that refusal. The disconnect test reads no
snapshot and still runs everywhere.
2026-10-23 23:06:09 -04:00
Harold Hunt 9631475698 test: root remote sessions at a POSIX path on every client
Four window tests built a local fixture, set app.remote, then looked up
the fixture's own paths. On Windows those are C:\ paths, which a Unix
host never sends and POSIX rules do not resolve. remote_view_over roots
the scanned fixture at the temporary directory on Unix, keeping the
nothing-deleted checks real, and at /srv/fixture on Windows.
2026-10-23 22:39:28 -04:00
Harold Hunt 329e87293f ssh: treat remote paths as POSIX paths on every client
SSH hosts are Unix: the remote command, the embedded scanners and the
delete script are POSIX shell and Linux tools. But remote paths were
joined, split and compared with std::path, which follows the client. On
a Windows client that joined /home/x and child into /home/x\child, so
marks, the trail and the exported delete script named files that do not
exist on the host, and a Unix name containing \ or : failed the whole
scan.

PathStyle (core) holds both rules: Native is std::path for local scans,
Posix is /-separated for SSH hosts. path_of, mark lookup and display,
crumbs, the trail, mark containment and the progress line now go through
it. On Unix clients the two agree, so nothing changes there.

Marks are keyed by exact path text, since PathBuf equality on Windows
treats \ as a separator. The client refuses a Windows host by name, and
checks the header's home and disk root as well as its root. The SSH CLI
refuses a root that is not /-rooted. The round-trip tests that run the
helper locally are Unix-only, since the local machine is the host; new
hand-built streams and a window test cover a Unix host on every client.
2026-10-23 22:04:02 -04:00
Harold Hunt cc026ea761 test: run the live preview dedup test on Unix only
The preview comes from the Unix helper's streaming walk. On Windows
serve sends a finished tree with no preview, so the test's unwrap
failed there. It was hidden on main because cargo test stops at the
first failing test binary, which was the app's.
2026-10-23 22:03:33 -04:00
Harold Hunt 3b972817c8 ssh: accept a Windows host's absolute paths again
serve also runs on Windows, and the round-trip tests there send native
C:\ roots. Accept a path that is absolute on this platform or
/-rooted; \x stays rejected.
2026-10-23 21:17:30 -04:00
Harold Hunt 43d94b07ad ssh: accept only /-rooted remote paths on every client
Path::has_root also accepts \x and C:\x on Windows, which name nothing
on the Unix host the helper runs on. Check for a leading / instead.
2026-10-23 21:04:22 -04:00
Harold Hunt 20847a0de8 ci: fix the macOS and Windows failures on main
Windows clients rejected every path an SSH host sent. The helper is
Unix-only, so remote roots are /-rooted, but Path::is_absolute also
wants a drive letter on Windows. Root discovery, the scan header and
the picker now check remote paths with is_remote_absolute, which
agrees with is_absolute on Unix.

The volume picker test compared against the unresolved temporary
path. Accepting a local root canonicalizes it, and the temporary
directory is /var -> /private/var on macOS and an 8.3 short name on
Windows runners.

spawn_command and wait in remote.rs are only used by the Unix tests,
so clippy -D warnings failed on Windows. Gate them on unix.
2026-10-23 21:00:04 -04:00
Tobi Lutke 9b18b272ca app: show live treemap previews with stable sidebar progress 2026-10-22 18:32:27 -04:00
Tobi Lutke 71868f672a scan: profile SSH indexing and deduplicate hardlinks on the desktop 2026-10-22 18:13:57 -04:00
Tobi Lutke 8d98a855e8 scan: stream live SSH progress and accept deeply nested trees 2026-10-22 17:41:01 -04:00
Tobi Lutke 6a234aa4c3 app: harden source selection and verify chooser lifecycle 2026-10-22 17:05:57 -04:00
Tobi Lutke fb6a7f63b3 app: choose a local or SSH source and root before scanning 2026-10-22 16:56:09 -04:00
Tobi Lutke 1e17fcc86b ssh: discover remote mount roots without starting a scan 2026-10-22 16:47:24 -04:00
Tobi Lutke 8b55208fdc scan: stream SSH walks with bounded memory and strict mount boundaries 2026-10-22 16:41:46 -04:00
Tobi Lutke 2c22ed4d00 build: embed static Linux scanners and deploy them on demand 2026-10-22 16:22:26 -04:00
Tobi Lutke d2cbab6468 app: explore SSH scans read-only and export host-guarded cleanup 2026-10-22 16:22:26 -04:00
Tobi Lutke 48b0284fa7 core: add read-only SSH scanner and checked helper deployment 2026-10-22 16:13:43 -04:00
Bet4 ef1475f864 test: sync noise file so allocation units commit on CoW filesystems 2026-10-17 00:21:53 +08:00
Bet4 8844977d74 fix(space): exclude kernel pseudo filesystems from volume candidates
Sub-mounts under /proc, /sys and /dev (such as /proc/sys/fs/binfmt_misc,
/sys/fs/bpf and /sys/firmware/efi/efivars) as well as ramfs mounts
were previously not filtered out by is_volume_candidate because they have
their own filesystem types that were not part of the fstype blacklist.

Filter out mounts rooted under /proc, /sys or /dev, and explicitly
include binfmt_misc, bpf, efivarfs and ramfs in the pseudo filesystem
blacklist.
2026-10-15 12:16:34 +08:00
armada45-pixelandClaude Opus 5.5 b44c774c07 Close the key list by a button and by a press outside it
The list `?` opens could only be closed from the keyboard, so a hand on
the mouse had to go back to it. Its heading now ends in a Close button,
and a press outside the card closes it as Escape does. A press on the
card is the card's own, and neither reaches the screen behind.

The dimmed page and its heading are `modal` and `page_header`, which
take the function that closes them, so another page can be built on
them.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-13 12:04:09 +07:00
armada45-pixelandClaude Opus 5.5 05612e2d70 Harden the git probe, the link guard and the file-table reader
The git probe sets GIT_ALLOW_PROTOCOL=none: a scanned checkout's own
configuration could otherwise name a transport for git to run while
disktree only meant to read its status.

The removal guard no longer passes a path whose real location cannot be
read while its parent is there to read; a link leading out of the scanned
root could hide behind that failure.

The NTFS file-table reader bounds what a crafted volume can make it do:
attribute-list records are capped, a table that claims more than its
runs hold is refused, and a directory graph with a cycle stops the walk
so the scan falls back to the ordinary one.

Byte totals saturate instead of overflowing; release builds check
overflow, so a wrapped sum was a panic.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-13 06:56:45 +07:00
armada45-pixelandClaude Opus 5.5 cec7ac9409 Cut per-frame and per-keystroke work in the explore screen
Switching the metric re-ranks the tree in place instead of cloning it,
which on a whole disk is tens of millions of nodes copied to change an
order. A frame builds label text only for the tiles whose labels it will
draw, and reuses the set of marked crumbs until the marks or the tree
change. The sibling menu names only the rows it shows, layout picks its
kept children with a partial sort, and `Node::find` walks a real queue.

The free-space ticker asks the volume off the UI thread, since a network
or sleeping drive can take seconds to answer, and shift-scroll panning is
clamped like every other way of moving the view.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-13 06:56:38 +07:00
Philip B. Krogh ba6a2e4248 Harden Git inspection against executable configuration 2026-10-11 15:21:25 +02:00
Philip B. Krogh 7496e6356d Refuse removal through ambiguous lossy paths 2026-10-11 14:56:53 +02:00
Tobi LütkeandClaude Opus 5.5 fcb627634f Keep a snapshot-booted root's subvolumes, and stat directories on macOS
The projection from #56 tested the scanned mount for being a snapshot as
well as the other one. On a system booted from a Snapper snapshot, as
openSUSE is by default, `/` is one, so every mark under `/var` or `/home`
was called another volume's although the scan walks them as its own.
Only the other mount is tested now, as `foreign_mounts` does.

The bulk listing from #53 is thought to report a mount point with the
attributes of the directory it covers, so its device would be the parent
volume's and the walk would cross into every disk, share and system
volume below the root. Directories are stated with `statat` again, as
`lstat` did before; files keep the bulk path.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-04 17:05:04 +00:00
Tobias Lütke 536f037e0f Merge pull request #56 from itsmunzir/fix/cross-volume-projection
fix(space): exclude foreign-volume marks from free-space projection
2026-10-04 13:03:22 -04:00
Tobias Lütke b985693ff0 Merge pull request #53 from joshgosse/scan-speed
Improves scan speed on macOS, better memory profile everywhere
2026-10-04 13:03:18 -04:00
Tobias Lütke 21c81f4d62 Merge pull request #49 from aronchick/fm/disktree-reveal
Reveal a tile in the file manager on right-click
2026-10-04 12:26:38 -04:00
Tobias Lütke c2318a490a Merge pull request #69 from huntharo/fix/finish-scan-waits-for-scan
test: wait for widening scans to finish before assertions
2026-10-04 12:26:33 -04:00
kevin9327 13250c0980 Show a size that rounds up to 1024 in the next unit
human_bytes steps up a unit only at 1024, but above 9.95 it prints no decimal, so anything from 1023.5 to 1024 of a unit rounded to "1024 KiB" instead of "1.0 MiB" (1,048,575 bytes, for one). human_count had the same edge at 1000: 999,999 files read "1000.0k". Both now step up where the shown number would round to the next unit.
2026-10-04 20:10:32 +09:00