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>
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>
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>
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>
- 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