Commit graph

10 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
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
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
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
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
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
1ed2d3defb SSH connection status indicators
- Add Connected bool field to vfs.Entry and RemoteMount
- Track connection status in sshState.connectedHosts
- Show status icon (connected/disconnected) in pane header when browsing remote host
- Async SSH connection test with cancel support for Add Host dialog
- Colored labels and styled help text in SSH dialogs
- Confirmation dialog when deleting manually-added SSH hosts
2026-04-29 03:11:53 +03:00
vrubelroman
ef63a2479b Refine mouse interactions and info pane UX 2026-04-22 22:50:30 +03:00
vrubelroman
059f925e00 Initial vcom TUI prototype 2026-04-22 22:10:50 +03:00