mirror of
https://github.com/tobi/disktree.git
synced 2026-11-28 08:00:53 +00:00
7.6 KiB
7.6 KiB
Changelog
All notable changes to disktree are documented here.
[1.5.0] - 2026-11-27
Highlights
- 6–9× faster Linux scanning & 2.2–2.7× lower peak RAM: strategy-invariant
ScanBackendabstraction with Linuxopenat+ 64 KiBgetdents64+ relativestatx, optional batchedio_uring(IORING_OP_STATX,--backend auto|statx|uring|portable), zero-allocation iterative direct subtree walker, Struct-of-Arrays (SoA)LeafSlab, bulk O(N)TreeArena::graft_subtree/replace_node_contents, and removal of build-timeStringPool/ hardlink hash tables (up to 8.9× faster and 2.7× less RAM on 63-core Linux benchmarks). - Full-duplex
disktree-cli --connectedremote engine: runsdisktree-scannerdirectly against the remote host's ownscan-cache.redbwith cadence-based incremental checkpointing (every 4 s), streams depth-4 pruned trees (~1,300× less SSH traffic on 25M+ file volumes), proactively prefetches depth 5 for top folders, and answers on-demandFocus/Prioritizecommands over the same open SSH pipe in milliseconds. - Tailscale SSH auto-auth & saved SSH hosts: detects Tailscale SSH check URLs live from stderr, opens the browser login page automatically while keeping SSH waiting, and persists successfully connected SSH hosts as one-click Recent hosts pills in Open location → SSH remote.
- Calm, animated desktop UX: buffered incremental subtree updates (1.2 s cadence), 200 ms cubic ease-out per-tile rectangle gliding and colour freshness fades, subtle neutral fade-only freshness shading, unified dense sidebar scan status card (keeping Selection interactive during background refreshes), and cleaner top-bar / selection controls.
Added
- Incremental resume & checkpointing: completed depth-1 and large depth-2 subtrees flush to
scan-cache.redbevery 4 seconds in one batchedredbwrite transaction so interrupted cold scans resume by skipping finished folders and prioritizing unscanned holes first. - Remote version visibility & error logging:
Header.helper_versionreports the remotedisktree-cliversion in the UI, and runtime discovery/scan/SSH failures append timestamped entries to~/.local/state/disktree/errors.log(auto-rotated at 2 MiB). - Stronger "Copy as prompt" host checks: always includes expected
hostname(with SSH host fallback) and/etc/machine-idwhen available, instructing the agent to double-check both and stop to ask what to do on any mismatch.
Fixed
- Open
/proc/self/exedirectly on Linux inpayload::Archive::current()so in-placemake installupgrades under a running window never fail SSH withENOENT. - Scale Linux helper
RLIMIT_AStoMemTotal / 4(4–32 GiB), raise remote wall deadline to 30 min, and store bounded depth-3 summaries in--connectedto eliminate OOM crashes on 25M+ file servers. - Stop
gpui-omarchy's backgroundnotify-rswatcher in headless tests and fix cross-platform macOS/Windows lints and test races.
[1.0.0] - 2026-11-25
Highlights
- Standalone
disktree-scannerengine: compact 64-byte arena nodes, prefix-trie front-coded string pool, columnar Protobuf + LZ4 persistent cache DB (redb, 15-minute default TTL), priority-interruptible stale-while-revalidate (SWR), and automatic fallback to in-memory/streaming when the cache disk is full, read-only, or unwritable. - Unified
disktree-clibinary: Ratatui interactive TUI, structured--json/--ndjson/--streammodes,cache&invalidatesubcommands, and the--stdio-v1read-only SSH remote server (replacing the separatedisktree-scancrate). - Read-only SSH exploration with zero-setup Linux deployment: discover remote mounts without scanning, stream bounded-memory walks over SSH, auto-deploy embedded static
x86_64/aarch64disktree-clihelpers from portable Linux builds, or offer one-click remote installation (and copyablecurlone-liner) from predictable GitHub release URLs. - Live freshness & queue visibility: unscanned (no-data) directories walk ahead of stale ones (oldest first), clicking into a stale directory preempts background work to refresh it immediately, and treemap tiles shade Stale (washed + muted corner pip), Queued (lightly veiled + dashed accent border), and Refreshing (accent tint + solid accent border) distinctly.
Added
- Desktop UX & Omarchy integration:
- Direct
$HOMEscan on startup with live treemap previews during cold scans, default treemap depth4, and a tabbed Open location dialog (This computer/SSH remote) with native Browse… folder picking and~expansion. - Compact, static-height Selection card with top-right Open, Mark/Unmark, and Refresh icon buttons so Worth a look and Marked never jump while hovering or marking tiles.
- Instant zero-rescan toggles for Hidden files (
i) and Apparent size (d) re-projected directly fromTreeArena. - Follow the Omarchy desktop font live across every surface, including
gpui-omarchycontrols (#126). - Omarchy-styled app icon (
assets/disktree.svgand.ico) (#128). - Close the
?key list via a Close button or clicking outside (#89).
- Direct
- Linux Btrfs awareness: local
/scans include distinct same-filesystem Btrfs subvolumes (such as Omarchy's/home) while keeping duplicate bind mounts, snapshots, other disks, and network mounts out. - Packaging & releases:
- Predictable raw release binaries (
disktree-cli-{linux,macos,windows}-{x86_64,aarch64}) uploaded alongside desktop archives; Linux tarballs andmake installinclude bothdisktreeanddisktree-cli. - Windows Inno Setup installer built and checked in CI (#108).
- Predictable raw release binaries (
Performance & Architecture
- Automatic worker-count heuristic inside
disktree-scanner(scales smoothly up to 8 workers without UI configuration;--scan-threads Nstays as an override). - In-place Size/Files re-ranking (
Arc::make_mut), lazy formatting for only the 150 drawn treemap labels,select_nth_unstable_bylayout selection, cached marked crumbs, and off-UI-threadspace_infopolling (#84). - Explicit
State/Event/Effect/stepstate machines across find/filter, location discovery, scan lifecycle, worker pause gate, priority walk phases, storage fallback, and CLI TUI modes. - Emit live snapshots to interactive UIs immediately before committing Protobuf shards to the cache DB, and never display incomplete partial ancestor stubs as a complete tree.
Security & Fixes
- Refuse removal on paths containing lossy UTF-8 replacement characters (
U+FFFD) (#82). - Harden Git checkout inspection against repo-controlled external diff,
textconv, inheritedGIT_CONFIG_*, and transport protocols (#81, #84). - Treat SSH remote paths as POSIX paths on every client, including Windows (#114, #115).
- Exclude Linux kernel/virtual pseudo-filesystems (
/proc/*,/sys/*,/dev/*,binfmt_misc,bpf,efivarfs,ramfs,gvfsd-fuse) from volume candidates (#106). - Sync test fixture allocation writes on CoW/ZFS filesystems (#109) and pin GitHub Actions workflows to commit SHAs with per-step signing secrets (#112, #84).
- Fix
Node::findBFS ordering, shift-scroll pan clamping, and saturating byte totals (#84).
[0.11.0] - 2026-10-04
- macOS
getattrlistbulkbulk directory listing and compact 88-byteNodelayout (#53). - Cross-volume free-space projection attribution (#56).
- Right-click reveal in file manager (#49), non-Unicode export flagging (#52), and size rounding fixes (#70).
- Snapshot-booted Btrfs root subvolume handling.
[0.10.1] - 2026-09-25
- Windows support, NTFS MFT fast scan, and macOS bundle signing/notarization releases.