Enter on a file (archives still go to 6.5): an executable opens a Run /
Edit / View menu and never runs by itself (U-P1-3, N-P0-2; Run pauses for
Enter afterwards); text goes to $VISUAL/$EDITOR (parsed with quotes);
other files go to xdg-open, reaped in the background (no zombies:
U-P1-15). A file on SSH (or in an archive) is downloaded to the run dir;
edits are uploaded back via WriteAtomic only if the copy changed, and if
the server file changed meanwhile the user chooses overwrite / save a copy
beside / keep the local copy (U-P1-12). p mirrors with a reference per
mount (U-P1-14, N-P1-12); S sorts (saved to the config); y copies paths.
The session goes through internal/state: restored at start (remote and
archive panels as their local place), saved every 30 s when changed, on
SIGHUP (tui.Signal) and in main's teardown (App.Shutdown).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Enter on an archive indexes it in a job (progress, cancel; Update never
waits: U-P1-9) and pushes an archivefs mount; ".." from its root returns
with the cursor on the archive. Nothing is unpacked to a temp directory
and every mutating action is refused inside (U-P0-2). a: format list →
name proposed by archive.Name → archive.Create in a job (refuses to write
over or into a source: U-P0-1). e/F11 extracts the archive under the
cursor into the other panel (local or SSH: N-P1-15) through the same
plan → execute flow as copy, so existing files are conflicts (U-P1-11);
inside an archive it copies the marked members out.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Copy/move run as jobs: Prepare (scanning) → plan dialog (files, size,
existing targets with a policy choice, hidden marks) → Execute with a
Progress modal (b/Esc background, c asks before cancelling), conflict
dialogs with apply-to-all and Retry/Skip/Skip all/Abort on item errors,
then a summary and reload of the affected panels (each keeps its cursor).
F8 trashes (default button), refused items are offered for permanent
deletion; X deletes permanently (default Cancel), SSH panels without a
trash go straight to that dialog. F7/F2 work through the panel's FS with
name validation (no "/"). Space computes a directory size in the
background ("≥ X (N unreadable)"); B lists jobs and brings one back.
Read-only (archive) panels and the host list are never targets. Jobs hold
references on the panels' mounts while they run.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
main starts the new UI behind --ui=next with the jobs manager, the SSH
pool and resolver in Deps, and tears them down after Program.Run. A test
guard forbids os, io/fs, path/filepath, localfs and sftp imports in
internal/tui (except deps.go and external.go) and raw key string
matching outside the keys package.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- QA-16: a session read from the old location is applied even when moving
it to an unwritable state dir fails; the error goes to the status line.
- QA-19: the theme selector no longer overwrites a "save failed" status
with "Theme: X"; finalizeTheme reports success itself.
- QA-17: a trash job keeps going after an item the trash refuses; only the
refused items are offered for permanent deletion, the rest are trashed.
- QA-18: mirroring into a pane that is inside an archive (or a remote
host) clears its archive mounts and removes their temp dirs.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The new UI's root model: Screen x viewer focus x native selection x
filter edit x modal stack, one inputOwner, keys resolved through the
registry, an action table that features extend from register_*.go.
Directory reads and previews run in Cmds with tickets: Update never
blocks (N-P1-1), stale results are dropped (U-P1-13), failed navigation
keeps the panel and a vanished directory climbs up (U-P1-8). q closes
layers before asking to quit (U-P1-16), PgDn pages (U-P1-6), the theme
list previews live and saves with config.SetKey. Mouse mode is
reconciled after every Update; View only reads state.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
With -config or $VCOM_CONFIG naming a missing file, main now passes that
path to the UI and paths.DefaultConfigFile returns $VCOM_CONFIG, so
SetKey creates the file every later start reads instead of writing
~/.config/vcom/vcom.toml. A broken-config notice now starts with
"Config error:" so the status line shows it as an error.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
atomicfile.Write refuses a target the process cannot write (EACCES, as a
plain write in v0.2.7 did) instead of replacing it by rename. SetKey edits
a section written in the root table as dotted keys (ui.theme = ...) or as
a one-line inline table (ui = { theme = ... }), adding the key in the same
form when missing; multi-line inline tables are refused without touching
the file.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Both main and Bubble Tea handled SIGTERM. When main's tea.Quit won the
race, Bubble Tea's signal goroutine blocked forever on an unbuffered send
and Program.shutdown waited for it: vcom hung in the alt screen without
saving the session. Bubble Tea already handles SIGTERM/SIGINT; main now
only adds SIGHUP.
Also: .gitignore 'vcom' ignored the whole cmd/vcom/ dir, anchor it to the
binary (/vcom); the SIGTERM pty test runs 2 iterations by default and the
full 12 with VCOM_SLOW_TESTS=1.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A panel holds a mount stack, the sorted listing, cursor, marks, filter,
history and cursor memory. Navigation is applied as one transaction;
mounts are released when no snapshot uses them and re-acquired for a
mirror. Clicks map through the visible rows (U-P1-4), reload keeps each
panel's cursor and leaves it at the index of a deleted entry (U-P1-7),
symlinks to directories are navigable (U-P1-2). Rows are cached; a
20k-entry panel renders in ~0.3 ms.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Adds golang.org/x/image v0.39.0 (draw, webp; vendored; x/sys and x/text
unchanged). SyncTTY serialises renderer frames and image blocks under one
mutex. The actor keeps only the latest Desired state (100 Apply → ≤ 2
decodes), refuses images above 50 Mpx from the header alone, scales with
ApproxBiLinear and writes kitty graphics as one ESC7/CUP/APC/ESC8 block
(raw RGBA, chunked or via a temp file, tmux passthrough). ueberzugpp gets
JSON lines through a pipe with a 200 ms write deadline; a helper that stops
reading is killed with its process group and the backend falls back to
none with an event. Stop removes the placement, temp files and processes.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Structured dialogs (fields, warnings, buttons with hotkeys, danger
default on Cancel), multi-field input that types every key, and a
scrollable list/text that fits small terminals (crutch #10). The stack
owns all input while open; clicks outside the top modal are ignored.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Build(ctx, req) never opens FIFOs, sockets or devices (Kind=Special;
U-P1-10), reads at most MaxBytes, keeps at most DirLimit directory entries
and MaxLines text lines, and honours ctx in reads, tools and highlighting.
pdftotext/pdfinfo/ffprobe run in their own process group with a 3 s timeout
and are killed with their children. A chroma formatter writes foreground
SGR only (no background, no regexp post-processing); the first
HighlightLines (400) lines are highlighted, so 64 KiB of Go takes ~20 ms
(was 190). Remote images are downloaded to an LRU cache only up to
max_remote_image_bytes (N-P1-16); a 32-entry result cache avoids rebuilds.
theme.ChromaStyle maps every built-in theme (U-P2); KindLabel fixes the
inverted label (U-P2).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Notes with a TTL by level (errors stay until a key after 3 s), timers
that only hide their own note (U-P1-1, crutch #13) and a 200-entry log.
All lipgloss styles are built once per theme with a generation counter
for render caches.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Re-verify QA-1..QA-11 fixes and the stage-2C config/session/signal changes
used by the old UI. New bugs QA-12..QA-19 are skip-tagged tests; QA-12
(SIGTERM can hang vcom: main and Bubble Tea both handle it) blocks the
release. The cross-device trash test now cleans the topdir trash it uses.
Report: plans/rework/05-qa-v0.2.8.md, section RC2.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
ActionIDs bound per input context; Browse/Info table from design §8.1,
modal and viewer contexts. ЙЦУКЕН keys are translated for command
contexts only, text contexts pass everything but control keys through
(U-P1-5); chords (y y) use a per-context buffer; help and footer are
generated from the table (U-P1-16).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
An existing file is a conflict for the policy instead of a silent overwrite
(U-P1-11); a symlink in the target where the archive has a directory is a
type mismatch that is never written through (KeepBoth puts the directory
beside it); unpacking into and from a remote panel uses the same engine
(N-P1-15).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Create refuses an archive path that is one of the sources or lies inside a
source directory, also through symlinks (U-P0-1); an existing archive is a
conflict for Resolve (Overwrite / KeepBoth "name (1).tar.gz" / Skip). The
archive is written via transfer.WriteAtomic, so cancel or failure removes
the partial file and keeps a previous archive; Close/flush errors of the
zip, tar and gzip writers fail the operation (N-P2-13). Symlinks are stored
as links; sources and target can be remote (N-P1-15, tested on the stand).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
When the ctx a remote file was opened with is cancelled while one of its
operations is still stuck, probe the connection after a short grace
period and tear it down if the keepalive goes unanswered. A cancel in the
middle of a file on a frozen network now returns in about 2 s with the
default keepalive instead of up to 40 s; a slow but live link is left
alone.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A failed write whose temp file cannot be removed (the connection is gone)
is remembered by the executor and removed again on Retry (typically after
the pool reconnected inside OnError) and at the end of Execute; whatever
still cannot be removed is named in Report.Warnings. Prepare now always
lists ToDir once (instead of a Lstat per root), so leftovers next to a
single top-level file are reported too. TestOverwriteThenDrop checks this
strictly, TestOverwriteThenDropRetryLeavesNoTemp covers the retry path.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
archivefs mounts an archive by indexing it: no temp directory, virtual posix
paths, symlinks resolved inside the archive (absolute and escaping links are
broken), members opened directly (zip) or by a sequential scan (tar). All
mutations return ErrReadOnly (U-P0-2). vfstest.RunReadOnly checks any
read-only FS against a fixture tree; it runs on zip, tar and tar.gz mounts
and on vfs.ReadOnly(localfs). archive.OpenMember opens a single member.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Run the key transfer scenarios over sftpfs: overwrite cut mid-file keeps
the old file (N-P0-4), the same file through two aliases is refused and
never truncated (N-P0-5), broken symlinks up and down (N-P1-8), mode and
mtime (N-P1-9), remote to remote between users (N-P1-10), retry after a
lost connection (N-P1-2), cancel and freeze in the middle of a file.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
BuildIndex reads the zip directory or walks a tar(.gz) once, with progress
and cancellation; no temp directory. Zip-slip names (.., absolute, drive
letters) and members below a symlink or file of the same archive are
rejected in any order; member count and total size are limited. NewSource
feeds members to transfer: directories and links from the index, file
contents in archive order from a single open; Unpack = Prepare + Execute.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A Manager independent of Bubble Tea: FIFO queue limited to maxParallel
jobs, latest-value progress published at most 10 times a second by a
ticker, events delivered in order by a dispatcher so a slow notify never
blocks a job. Ask blocks only the asking job; Cancel, panics, holds and
Shutdown are handled on every path without leaking goroutines.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
With SameConn a top-level item without a target is renamed whole
(NoReplace), and files merged into an existing directory are renamed one by
one; EXDEV or any rename failure falls back to copy. Otherwise each file or
link is copied, its size checked and only then removed from the source
(Remove never follows links: N-P0-3); source directories are removed
bottom-up only when empty, so skipped and failed items stay in place.
Links are always moved as links (FollowLinks is ignored for a move: N-P1-8).
Affected includes the source directories.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A cancel 150 ms into a slow 3 MiB overwrite returns within 200 ms with
Report.Cancelled (not success), keeps the old target, copies nothing after
it and leaves no temp (N-P1-7); a cancelled Prepare stops walking and
writes nothing.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
QA-1 (cross-device), QA-5 and QA-8 are closed by the freedesktop trash
from 2A.4; list them and the 2C config/session/log changes in v0.2.8.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Ask with ApplyToAll, Abort, OverwriteOlder, KeepBoth naming ("name (1).ext",
.tar.gz kept together, dot-files and dirs unsplit), a file/dir type mismatch
is never overwritten, a target that appears after Prepare is a conflict
(NoReplace commit), Retry after a write error, SkipRest/SkipAll/Abort and
the Report counters and Affected list.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Every file is written to .vcom-part-<rand>-<name>, closed (a Close error
fails the item: N-P2-6), chmod/chtimes'ed and only then renamed over the
target, so a failed or cancelled overwrite keeps the old file (N-P0-4) and
leaves no temp. Without atomic replace the old file is renamed aside and
restored on failure. Directories are merged, never replaced (N-P0-7), and
get their real mode/mtime post-order (N-P1-17); symlinks are copied as
links, broken ones too (N-P1-8); mode and mtime are preserved (N-P1-9);
FIFOs and devices are skipped with a warning. The copy loop goes through a
ctx-aware reader with Size() and throttled byte progress. Conflict and
error policies are wired in here; their tests follow in 3.3.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
SFTP implementation of vfs.FS on a conn.Lease: passes the conformance
suite on the in-process stand (and on a real sshd under the integration
tag), including RemoveTree on a symlink to a directory (N-P0-3).
Volume is the host key fingerprint (N-P0-5); metadata calls return on
ctx cancel, a watchdog probes hung calls; io.Copy uses concurrent
reads/writes (N-P1-6). Connection errors map to vfs.ErrConnLost.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Mirroring (p) an archive pane gave the passive pane the temporary
extraction directory as a plain writable local directory: changes there
were lost when the archive was closed and the pane was left on a deleted
directory (QA-2). Mirror is refused inside an archive until archive
mounts can be shared.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The temporary archive was chmodded to 0644, so replacing a private 0600
archive made it world-readable (QA-6). A replaced archive now keeps its
permissions; a new one gets 0666 minus the umask, as before the
temp-file change.
The temp name embedded the archive name, so names near NAME_MAX failed
with ENAMETOOLONG (QA-7). It is now a short fixed-length .vcom-tmp-<rand>.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
F7 with a taken name in an SSH pane silently succeeded because mkdir went
through MkdirAll (QA-10). The new SSHClient.MkdirNew creates missing
parents but fails with ErrExist on an existing name, like the local
MakeDir.
RemoveRecursive cleans its path first: lstat("link/") resolves the link on
POSIX servers and deleted the target's contents (QA-9; not reachable from
the UI).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Prepare refuses a read-only or non-directory target, a root that is the
same file as its target (also through a symlinked directory: N-P0-6) and a
directory copied into itself; walks the source once (links as links, or
followed with loop detection); lists each existing target directory once
instead of a stat per file (N-P2-4/5); fills Existing and the per-file
Conflicts and computes exact TotalFiles/TotalBytes (N-P1-13).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
In filter mode j/k (any printable key) were matched as Up/Down before the
text input, so a filter for "jpg" became "pg" (QA-3); the arrow keys
and PgUp/PgDn still move through the filtered list.
In the SSH add-host form '?' toggled the help instead of being typed, so
passwords and user names with '?' could not be entered (QA-4). F1 opens
the help; '?' only closes it while it is shown.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
With the trash as the default delete, F8 on a file the trash cannot take
(another filesystem than the home trash, a broken trash) only showed an
error (QA-1). The delete job now opens a confirmation in the same flow to
delete the remaining items permanently; Esc/n keeps them. Nothing is
deleted without that explicit confirmation.
sshtest.IsolatedHome also isolates XDG_DATA_HOME so no test can reach the
real trash.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>