Commit graph

185 commits

Author SHA1 Message Date
vrubelroman
95406c3d2d merge: fast cancel on frozen link; new UI skeleton internal/tui (6.1, --ui=next)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-01 09:15:54 +03:00
vrubelroman
ebe3b56348 feat(tui): --ui=next entry point and import guard (6.1.6)
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>
2026-11-01 09:14:14 +03:00
vrubelroman
8c4b70370e docs: changelog and dev log for QA-13..QA-19
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-01 09:12:32 +03:00
vrubelroman
0aace09917 fix(ui): keep the migrated session, visible theme-save errors, trash only refused items, mirror leaves archives (QA-16..QA-19)
- 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>
2026-11-01 09:12:01 +03:00
vrubelroman
40b8722d58 feat(tui): App skeleton with mode machine, async navigation and effects (6.1.5)
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>
2026-11-01 09:11:39 +03:00
vrubelroman
ec3eeef436 fix: save the theme to an explicit config that does not exist yet (QA-15)
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>
2026-11-01 09:10:51 +03:00
vrubelroman
98aaa09a2b fix(config): keep read-only configs; edit dotted and inline ui tables (QA-13, QA-14)
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>
2026-11-01 09:10:05 +03:00
vrubelroman
0059d26b3b fix: do not subscribe to SIGTERM next to Bubble Tea (QA-12)
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>
2026-11-01 09:07:29 +03:00
vrubelroman
166116e57a docs(rework): mark stage 5 done; dev log for archive, preview, imgview and the temp fix
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-01 09:05:25 +03:00
vrubelroman
bb7f98016b feat(tui): panel model with mounts, filter, marks, history and cached render (6.1.4)
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>
2026-11-01 09:03:14 +03:00
vrubelroman
6c13b19ad1 feat(imgview): image actor with kitty/ueberzugpp, SyncTTY and off-UI decoding (5C.1)
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>
2026-11-01 09:01:26 +03:00
vrubelroman
a124b7164c feat(tui): modal stack with Dialog, Input and List (6.1.3)
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>
2026-11-01 08:59:38 +03:00
vrubelroman
5d36b76bbe feat(preview): pure Build over vfs with limits, tools timeout and fast highlighting (5B)
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>
2026-11-01 08:57:15 +03:00
vrubelroman
9f29935356 feat(tui): notification center and per-theme styles (6.1.2)
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>
2026-11-01 08:56:53 +03:00
vrubelroman
030dccb37b merge: v0.2.8 RC2 QA report and tests
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-01 08:56:42 +03:00
vrubelroman
2e3c5959b6 test(qa): RC2 re-check of v0.2.8 (QA fixes, config, session, signals)
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>
2026-11-01 08:56:17 +03:00
vrubelroman
526ba9270f feat(tui): key registry with contexts, layout translation and chords (6.1.1)
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>
2026-11-01 08:55:59 +03:00
vrubelroman
2cfd41160f test(archive): Unpack through transfer: conflicts, symlinks in the target, remote (5A.4)
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>
2026-11-01 08:52:08 +03:00
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
7f14fcbe33 fix(sftpfs): return fast from a cancel on a frozen link
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>
2026-11-01 04:16:44 +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
9c898e862b docs(rework): mark 3.1-3.5 done; dev log for the transfer engine
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-01 04:05:03 +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
130b7943b4 docs: changelog and dev log for v0.2.8 QA fixes
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-01 03:59:51 +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
538418d553 chore: ignore local agent worktrees
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-01 03:52:58 +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
4232020b4a docs(rework): mark 2C done; dev log for config, state, paths and logx
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-31 23:40:15 +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