Omarchy now draws disktree's icon in its own app icon style, a treemap on
an even grid with one block picked out, recolored to follow each theme.
This is its Tokyo Night rendering, so the installed icon matches what
Omarchy shows; the ICO is rendered from the SVG at its previous sizes.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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.
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.
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.
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.
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.
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.
A tag or branch can be moved to new code at any time; a commit SHA
cannot. The release workflow holds contents: write and the signing and
notarization secrets, so whatever code those refs point to at run time
can publish a release. Each pin keeps the ref it replaced as a comment.
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_012Gk1HsqV3Fp5JVGKdfq3sm
CI compiled nothing of the installer, so a broken disktree.iss would first
fail inside a release, after its draft exists, and the Arm64 setup had
never been built at all. The Windows job now compiles the x64 setup and
the Windows aarch64 job the Arm64 one; both run check-setup.ps1, which
installs it silently for the current user, checks the exe, Start menu and
desktop shortcuts and the uninstall entry, installs again as an upgrade
(one entry left), uninstalls and checks nothing remains.
install-inno.ps1 takes over the pinned, hash-checked Inno Setup install
from release.yml and now fails on a non-zero installer exit or a missing
ISCC.exe instead of leaving the next step to report it.
Verified locally on Windows 11 x64: both scripts pass, and the CI
Installer step body, run as written, compiles a 0.0.0 setup and reports
"setup installs, upgrades and uninstalls cleanly". Upgrading while
disktree runs closes it through Restart Manager without a reboot. The
Arm64 job has not run yet.
README: the setup is the default Windows download, per-user unless all
users is chosen, unsigned so SmartScreen needs More info then Run anyway;
the zip remains. AGENTS.md: how to compile the setup locally, and that its
AppId must never change.
Verified: cargo xtask lint is green.
The windows release job installs Inno Setup 7.1.0 from its GitHub release,
checked against a pinned SHA256 (the runners carry 6.7.1 and 6.6.1),
compiles packaging/windows/disktree.iss for the job's architecture, and
uploads the setup with a sha256 file in the same format as the zip's.
Verified: the pinned hash is of the downloaded installer, whose
Authenticode signature is valid; the workflow parses. Not yet run in
Actions.
packaging/windows/disktree.iss builds disktree-<version>-<arch>-windows-
setup.exe from the release binary. It installs for the current user with
no UAC prompt by default (the first page offers all users), adds a Start
menu entry, a desktop shortcut and an uninstaller in Settings > Apps, and
upgrades in place, keyed by a fixed AppId. x86_64 and aarch64 each get
their own setup.
Verified with Inno Setup 7.1.0 on Windows 11 x64: ISCC compiles cleanly;
leaving out /DArch or passing an unknown one aborts the compile; a silent
/CURRENTUSER install creates the exe, both shortcuts and the uninstall
entry, and disktree launches; a second install upgrades with one uninstall
entry; unins000.exe removes all of it including the install folder.
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.
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>
Actions are pinned to commit SHAs, checkouts keep no credentials, and the
macOS signing secrets reach only the two steps that use them instead of
every step of the job, the build's own scripts included.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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>
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>
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>