Commit graph

23 commits

Author SHA1 Message Date
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
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
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
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
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
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
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
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
ecd99fcffc docs(rework): QA report for v0.2.8
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
2653df7a03 docs(rework): mark 2.0 and 2A done; dev log for developer A
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-31 23:28:55 +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
945ae80c73 docs(rework): mark stage 0 and stage 1 tasks done; dev log
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-31 23:16:00 +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
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
407d758fa3 docs(rework): architecture design, task plan, analysts' testbed
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-31 22:52:44 +03:00
vrubelroman
baa5f44ed8 docs(rework): analysis reports for network and UI/core
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-31 22:06:16 +03:00