Commit graph

140 commits

Author SHA1 Message Date
vrubelroman
b8cf3aefaa feat(archive): Create archives on any FS through WriteAtomic (5A.3)
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>
2026-11-01 04:17:42 +03:00
vrubelroman
edf196a149 fix(transfer): clean up temp files left by a dead connection
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>
2026-11-01 04:15:40 +03:00
vrubelroman
2b1b9b0e95 feat(vfs/archivefs): read-only FS over an archive index; read-only conformance (5A.2)
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>
2026-11-01 04:12:50 +03:00
vrubelroman
3e219f8fcb merge: jobs manager (stage 4), transfer remote acceptance (3.7)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-01 04:12:46 +03:00
vrubelroman
aa6be396c7 test(transfer): remote acceptance on the SSH stand (3.7)
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>
2026-11-01 04:11:54 +03:00
vrubelroman
af453aa705 feat(archive): index zip/tar/tar.gz and stream members in one pass (5A.1)
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>
2026-11-01 04:10:11 +03:00
vrubelroman
f08467d63b feat(jobs): add background job manager (stage 4)
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>
2026-11-01 04:08:13 +03:00
vrubelroman
b3f9452a1d feat(transfer): move by rename or copy+delete per item (3.5)
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>
2026-11-01 04:04:31 +03:00
vrubelroman
058616de38 test(transfer): cancellation inside a file and during Prepare (3.4)
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>
2026-11-01 04:02:22 +03:00
vrubelroman
4bb60d074f test(fs): unskip trash QA tests fixed by localfs.Trash; changelog for trash and config
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>
2026-11-01 04:02:17 +03:00
vrubelroman
481a4af693 merge: sftpfs over pooled SSH connections (2B.5), atomicfile in ssh
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-01 04:01:44 +03:00
vrubelroman
88c67435ed test(transfer): conflict policies, runtime conflicts and error handling (3.3)
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>
2026-11-01 04:01:36 +03:00
vrubelroman
2dd42d0e03 merge: v0.2.8 QA report, QA tests and QA fixes
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

# Conflicts:
#	plans/rework/04-dev-log.md
2026-11-01 04:01:21 +03:00
vrubelroman
0ace9c454a refactor(ssh): write hosts.dat and known_hosts via internal/atomicfile
Drop the stop-gap internal/ssh/internal/atomicwrite now that 2C.1 is
merged.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-01 04:01:04 +03:00
vrubelroman
86c110f0b1 feat(transfer): WriteAtomic and Execute for files, dirs and links (3.2)
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>
2026-11-01 04:00:31 +03:00
vrubelroman
38e05c695f feat(vfs): add sftpfs over pooled SSH connections (2B.5)
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>
2026-11-01 03:59:47 +03:00
vrubelroman
ef735fb37c fix(ui): refuse mirror from an archive pane
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>
2026-11-01 03:59:07 +03:00
vrubelroman
c3606d5873 fix(archive): keep permissions and support long names when replacing an archive
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>
2026-11-01 03:58:18 +03:00
vrubelroman
846ee4d2bc fix(remote): report existing name on F7 in SSH panes; clean path in RemoveRecursive
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>
2026-11-01 03:56:54 +03:00
vrubelroman
76ae6c3a87 feat(transfer): request/plan types, FSSource and Prepare (3.1)
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>
2026-11-01 03:56:21 +03:00
vrubelroman
2cbc0c3d70 fix(ui): type j/k in the filter and '?' in the SSH form
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>
2026-11-01 03:55:32 +03:00
vrubelroman
e5c6b279f6 fix(ui): offer permanent deletion when the trash refuses an item
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>
2026-11-01 03:53:36 +03:00
vrubelroman
250f6a0250 merge: SSH layer (2B.1-2B.4: sshconfig, dialer, conn, pool)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-01 03:52:36 +03:00
vrubelroman
c328fff867 feat(ssh): add refcounted connection Pool and Lease (2B.4)
Panels, jobs and previews hold Leases; only the pool closes a
connection, after IdleClose without leases or on Close, so concurrent
use and release cannot race (N-P0-8) and a mirror keeps its connection
when the other panel leaves (N-P1-12). Concurrent Acquires of one
user@host:port share a single dial (N-P2-8); Reconnect retries with
backoff.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-01 03:51:51 +03:00
vrubelroman
0f9314c12a feat(logx,main): slog log in the state dir; signal-safe teardown (2C.4)
logx writes slog text records to $XDG_STATE_HOME/vcom/vcom.log (0600, dir
0700), rotates once on start above 5 MiB, takes the level from --debug,
--log-level or VCOM_LOG (default warn) and redacts password/passphrase/
answers attributes. The old UI's log.Printf calls go through an slog
adapter at debug level instead of a new /tmp file per run. main creates
the run dir (sweeping dead ones), quits on SIGHUP/SIGTERM via
program.Send, and after Program.Run always saves the session through the
idempotent Model.Shutdown and removes the run dir.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-31 23:39:45 +03:00
vrubelroman
d426752b6e fix(remote): skip unparseable known_hosts lines instead of failing every connection
A single known_hosts line with a key type x/crypto/ssh does not implement
(OpenSSH 10 ssh-mldsa44-ed25519) made knownhosts.New fail and every SSH
connection abort (QA-11). Such lines are now skipped with a warning in the
log. A host recorded only with an unsupported key type is refused instead
of being re-trusted on first use.

Host key algorithms of keys already recorded for the host are offered
first (like OpenSSH), so a host known only by its ed25519 key is not
reported as changed because x/crypto prefers ECDSA. Algorithms of skipped
lines are never offered.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-31 23:39:02 +03:00
vrubelroman
4ed81ef635 feat(state): atomic session in XDG_STATE_HOME; old UI saves theme via SetKey (2C.3)
state.Save writes session.toml atomically (0600, state dir 0700), drops
cursor-memory entries under cache/temp mounts and caps each pane at 200
entries; Load migrates the old ~/.config/vcom/session.toml once. The old
UI's session functions are aliases over state, and theme selection uses
config.SetKey, so the user's comments and keys survive. config.Save is gone.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-31 23:37:23 +03:00
vrubelroman
351970078f feat(ssh): add Conn with keepalive, states, reconnect and exec (2B.3)
Keepalive with a per-reply timeout marks a frozen link Lost and closes
it so hung SFTP calls fail with ErrConnLost (N-P1-2). Reconnect installs
a new generation in the same Conn. Exec takes a ctx (SIGKILL + close on
cancel) and an output limit (N-P2-15, N-P1-7).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-31 23:37:01 +03:00
vrubelroman
28fd86b8d5 feat(config): non-fatal loading with warnings and in-place SetKey (2C.2)
Load finds the file through paths (no ./vcom.toml), returns defaults plus an
error for a broken file instead of exiting, warns about unknown and
deprecated keys (strict second pass), resets invalid values with a warning,
and aliases center_width_percent to ui.preview_width_percent. New keys from
design §9.2 get defaults. SetKey edits one line keeping comments, order and
unknown keys, appends missing keys/sections, creates the XDG file, refuses
a file that does not parse and verifies the result before an atomic write.
The old UI shows config errors in the status line and survives an unknown
theme name; the reference vcom.toml is documented and current.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-31 23:35:23 +03:00
vrubelroman
4bd84dc8d2 test(qa): independent v0.2.8 checks and regression tests
Probe the stage-1 hotfixes from adjacent paths (all archive formats,
symlink variants, every text field and layer, trash edge cases, Close
under concurrent transfers, background jobs leaving the host) and add a
regression pass over the main local and SSH scenarios. Tests exposing
open bugs are skipped with BUG QA-n (see plans/rework/05-qa-v0.2.8.md).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-31 23:34:19 +03:00
vrubelroman
94002e286f feat(ssh): add conn dialer with bounded handshake, host keys and auth chain (2B.2)
The whole handshake (TCP, kex, auth, SFTP init) runs under a deadline
that ctx cancellation cuts short, and a late client is closed (N-P1-3).
HostKeyAlgorithms come from known_hosts (N-P1-4); unknown and changed
keys go to a Prompter (N-P2-14). Auth tries identity files, then agent
keys over one shared agent connection, then default keys, password and
keyboard-interactive through the Prompter (N-P2-1, N-P2-2).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-31 23:33:26 +03:00
vrubelroman
1c57f92c42 feat(paths,atomicfile): XDG/sudo path rules and atomic local file writes (2C.1)
paths: config lookup -config → $VCOM_CONFIG → XDG → ~/.config (never the
working directory; StrayCwdConfig only reports one), state/cache/data dirs
of the effective user under sudo (inherited XDG_* ignored for writes),
run-<pid> dir with a sweep of dead processes' dirs (U-P1-15).
atomicfile: temp + fsync + rename + dir fsync; keeps the old file on any
error, writes through symlinks and keeps mode/owner of an existing file.
The trash now takes its home from paths.DataHome.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-31 23:31:14 +03:00
vrubelroman
39e8264528 feat(vfs/localfs): freedesktop trash with topdir support (2A.4)
Items on another volume go to $topdir/.Trash/$uid (real, sticky .Trash only)
or $topdir/.Trash-$uid instead of failing with EXDEV (N-P2-12). The
.trashinfo is reserved with O_EXCL (collisions get a .N suffix and skip
orphans in files/), Path= is URL-encoded, DeletionDate is local time, and
under sudo the effective user's trash is used. The old UI's MoveToTrash now
delegates here.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-31 23:28:31 +03:00
vrubelroman
8584a638f1 feat(ssh): add sshconfig resolver and host store (2B.1)
Resolve host aliases through ~/.ssh/config with kevinburke/ssh_config:
HostName defaults to the alias, key=value syntax, Host * defaults,
Include, quotes, several IdentityFile, '#' inside values (N-P1-5).
Endpoint.Key includes the user (N-P2-3). Port the hosts.dat store with
atomic writes and a base64 password field.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-31 23:27:58 +03:00
vrubelroman
9d5b6bf0c4 test(vfs/vfstest): conformance suite and FaultFS; run it on localfs (2A.3)
vfstest.Run checks any writable vfs.FS through the API only (so it also runs
over SFTP): Lstat/Stat/ReadDir with symlinks, Create Excl/Trunc, ReadAt,
Mkdir, Rename in both modes, Remove (file, link, empty and non-empty dir),
RemoveTree on a link to a directory, Chmod/Chtimes, RealPath, Sync and the
error mapping. FaultFS hooks every FS and File method; FailNth and Gate
cover ENOSPC on the n-th write and blocking ReadDir.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-31 23:26:28 +03:00
vrubelroman
5132daa292 feat(vfs): Walk, RemoveTree, DirSize, SameFile and Within helpers (2A.2)
One implementation for every FS. Walk and RemoveTree never follow symlinks,
so deleting a link to a directory removes only the link (N-P0-3). DirSize
returns the root error and counts unreadable subdirectories instead of
reporting a silent 0 B (N-P1-14). SameFile compares inodes locally and
RealPath on other volumes, so an alias directory is recognised (N-P0-6);
Within resolves symlinks on both sides and accepts a not-yet-existing child.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-31 23:24:12 +03:00
vrubelroman
c3de5a06ef feat(vfs/localfs): local vfs.FS with renameat2 NOREPLACE and lazy birth time (2A.1)
ReadDir has lstat semantics and resolves symlink targets (NavigableDir for
links to directories, Target=nil + LinkErr for broken links: U-P1-2 at the
data level). Birth time is only computed through BirthTimer. NoReplace falls
back to link+unlink, then to an Lstat check, when renameat2 is unsupported.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-31 23:22:49 +03:00
vrubelroman
2db51e9385 feat(vfs): define the vfs.FS contract, sentinels, PathOps and ReadOnly wrapper (2.0)
Types and interfaces from design §2.1: FS, File, FileInfo, Caps, VolumeID,
RenameMode, CreateMode, PathOps (posix and native), Location.Same, the
optional Trasher/BirthTimer/Execer interfaces and ReadOnly(fs).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-31 23:21:41 +03:00
vrubelroman
0a98a75212 chore: prepare v0.2.8 (changelog, version bump)
Version in model.go, README, PKGBUILD and flake.nix (which was still at
0.2.6). Tagging/publishing is left to the maintainer.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-31 23:15:39 +03:00
vrubelroman
dc3d1b77fe fix(remote): make SSHClient safe to close concurrently; refcount shared clients
- sshConn/sftpCli are immutable after Connect; Close is serialized, only
  sets an atomic closed flag and closes the clients, so concurrent calls
  get errors instead of a data race or nil dereference (N-P0-8)
- Acquire/Release user counting: panes own the client from Connect,
  mirror and remote copy/delete jobs take a reference, and leaving a host
  (goParent at root, re-mirror, exit SSH mode) releases instead of closing
  a client another pane or job still uses (N-P1-12, partial)
- ports TestCloseRace; adds a mirror-then-leave UI regression test

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-31 23:14:53 +03:00
vrubelroman
fbaffb4354 fix(archive): never archive over or into a source; confirm overwrite (U-P0-1)
- CreateArchive refuses an archive path that is a source or lies inside
  one (symlinked parents resolved) and writes to a temp file renamed over
  the target only on success, so failures/cancels leave no partial file
  and keep an existing archive intact
- the UI checks the target before starting and asks before replacing an
  existing archive

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-31 23:12:35 +03:00
vrubelroman
2ba00b0ad0 fix(ui): Cyrillic text input, PgDn, and q closing layers before quitting
- Russian-layout translation applies only to command keys; mkdir, rename,
  filter and the SSH form receive the typed runes (U-P1-5)
- PgDn is bound (U-P1-6); help text no longer promises an unbound 'b'
- q with the info pane, a filter or a selection closes that layer like
  Esc and quits only from the bare browser; q no longer closes the SSH
  form while typing (U-P1-16, partial)
- smoke tests for PgDn and Cyrillic mkdir are no longer skipped

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-31 23:10:42 +03:00
vrubelroman
6696fea67a fix(ui): caret mode no longer panics under the Ascii color profile (U-P0-3)
The background-preserving reset was built by slicing lipgloss output,
which is empty without colors (NO_COLOR, dumb terminals). It is now
derived from the active termenv profile and skipped when there are no
colors.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-31 23:09:23 +03:00
vrubelroman
f57565989c fix(ui): delete moves to trash by default; n cancels yes/no dialogs (U-P0-4)
- F8 dialog defaults to the trash; permanent deletion only via D/d
- n/N closes confirm and archive-type dialogs, as their notes promise
- behavior.confirm_delete=false now works, and only skips the question
  for the trash (remote and permanent deletes still ask)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-31 23:08:24 +03:00
vrubelroman
8d6fe48536 fix(remote): never follow a symlink when deleting recursively (N-P0-3)
RemoveRecursive used Stat on the root, so deleting a remote symlink to a
directory walked into the target and deleted its contents. The root is
now examined with Lstat (links are removed with Remove), and Walk also
Lstats its root. Ports the analysts' TestRemoveRecursiveSymlinkToDir onto
the sshtest server.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-31 23:07:26 +03:00
vrubelroman
2f3491c1db fix(ui): block local-path actions in SSH panes and writes into archive panes
- SSH panes: rename, Enter/open/edit/execute on files, archive and unpack
  are refused with a status message instead of acting on the local file
  with the same path (N-P0-1, N-P0-2, N-P1-15)
- copy/move/archive/unpack refuse a passive pane that is an archive
  mount (temp dir deleted on exit) or the ssh:// host list (canWriteTo;
  U-P0-2, N-P2-10); mkdir in the host list is refused too
- startProcess hook so tests can observe xdg-open launches

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-31 23:06:24 +03:00
vrubelroman
511375492a fix(ui): show status and errors in a line above the footer (U-P1-1)
m.status was set in ~200 places but never rendered. A single status line
now sits between the panels and the footer, coloured by wording (error /
warning / info); the filter bar takes the same slot instead of growing
the view past the terminal height. Local mkdir now fails on an existing
name instead of silently reporting success.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-31 23:03:53 +03:00
vrubelroman
829b1237b2 ci: gofmt/vet/race/vendor checks via Makefile; release reuses CI
- Makefile targets: build, test, race, fmt-check, vet, vendor-check, lint, ci
- ci.yml runs fmt-check, vet, vendor-check, build and race tests; also on
  rework/** branches and callable from release.yml
- gofmt the three files that were not formatted

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-31 23:02:31 +03:00
vrubelroman
1f6f400276 test: add teadriver and behavioural smoke tests for the old UI
teadriver feeds keys/mouse to Update, runs returned commands concurrently
(unwrapping Batch and Sequence), feeds results back until quiet, skips
long timers, records Quit and ExecProcess requests, and renders View
without ANSI under an Ascii profile (WithProfile for others).

Smoke tests cover navigation, mkdir, copy, rename, filter and delete on
t.TempDir(); PgDn and Cyrillic input are skipped until task 1.6.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-31 23:01:22 +03:00
vrubelroman
ffcc8f5806 test: add fstree helper to build, snapshot and diff directory trees
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-31 22:57:11 +03:00