5.8 KiB
5.8 KiB
Changelog
v0.2.8 — stability hotfixes
Data-loss and crash fixes for v0.2.7 while the larger rework is in progress.
Data loss
- Archiving no longer destroys the source. Archiving
data.taras tar (orreport.zipas zip) into the same directory used to truncate the source; archiving a directory into a pane inside it made the archive include itself. Both are now refused. Archives are written to a temporary file and renamed into place only on success, so a failed or cancelled run leaves no partial file and keeps an existing archive intact; replacing an existing archive asks first. A replaced archive keeps its permissions (a private0600archive no longer becomes world-readable), and archive names close to the file-name length limit work again. - Deleting a remote symlink to a directory no longer wipes the target directory. The link itself is removed.
- SSH panes no longer act on local files. Rename, Enter (edit / run / open / enter archive), archive and unpack
in an SSH pane used to operate on the local file with the same path (e.g. running a local
/usr/local/bin/deploy.sh). They are now refused with a message until remote support lands. - No more writes into an archive pane or the SSH host list. Copy/move/unpack/archive into a pane showing an
archive used to put files into a temporary directory that is deleted when the archive is closed; with the
ssh://host list as target, files went to./ssh:/…in the process directory. Both are now refused. - Delete moves to the trash by default. Permanent deletion is chosen explicitly with
D/din the dialog.behavior.confirm_delete = falsenow works and skips the question only for the trash. If an item cannot be moved to the trash (e.g. it is on another filesystem than the home trash, or the trash is broken), the other items are still trashed and vcom asks whether to delete only the refused ones permanently; nothing is deleted without that confirmation. - Mirror (
p) is refused inside an archive. It used to give the other pane the archive's temporary directory as a normal writable directory; changes there were lost when the archive was closed. Mirroring into a pane that is inside an archive now leaves the archive properly (it used to keep treating the real directory as a read-only archive).
SSH
- One unsupported line in
~/.ssh/known_hostsno longer breaks every connection. Lines with key types vcom cannot parse (e.g. OpenSSH 10ssh-mldsa44-ed25519) are skipped with a warning in the log. A host recorded only with such a key is refused rather than silently trusted with a different key. - Host key types already recorded for a host are preferred in the handshake (like OpenSSH), so a server known only by its ed25519 key is no longer reported as "REMOTE HOST IDENTIFICATION HAS CHANGED".
Crashes and races
- Caret mode (
iin the info pane) no longer panics without colors (NO_COLOR, dumb terminals). - Closing an SSH connection while it is in use (background transfer, mirrored pane, preview) no longer races or panics. Mirrored panes and background jobs share a reference-counted connection: leaving a host in one pane no longer disconnects the other pane or a running transfer.
Usability
- Status and error messages are shown in a line above the footer (they were never displayed before).
- Cyrillic (and other non-Latin) text can be typed in mkdir, rename, the filter and the SSH form; Russian-layout keys still work as commands in the browser.
PgDnworks.qcloses the info pane, the filter or the selection first, and quits only from the plain browser;qno longer closes the SSH add-host form while typing.ncancels yes/no dialogs, as their hints say.- Creating a directory that already exists reports an error instead of silent success, in local and SSH panes.
j,kand other letters can be typed in the filter (they used to move the cursor); arrows still navigate.?can be typed in the SSH add-host form (e.g. in passwords);F1opens the form's help.
Trash
- Follows the freedesktop trash spec: items on another filesystem go to that filesystem's
$topdir/.Trash-$uidinstead of failing;.trashinfoPath=is percent-encoded (names with spaces/Cyrillic restore correctly in other tools);XDG_DATA_HOMEis honoured; name collisions (including broken symlinks already in the trash) never overwrite an existing trashed item.
Config, session and logs
- Choosing a theme changes only the
theme = ...line; comments and other keys invcom.tomlare preserved. This also works when the section is written asui.theme = ...orui = { theme = ... }. A read-only (chmod a-w) config is not changed (as in v0.2.7). With-config/$VCOM_CONFIGnaming a file that does not exist yet, the theme is saved to that file. If saving the theme fails, the error stays visible in the status line. - A broken config no longer prevents startup: vcom starts with defaults and shows the error (in red) in the status line.
./vcom.tomlin the current directory is no longer picked up implicitly.- Config and session are written atomically. The session moved to
$XDG_STATE_HOME/vcom/session.toml(migrated once from the old location; if the state directory is not writable, the old session is still restored and the error is shown) and is also saved on SIGTERM/SIGHUP. - A single rotating log at
$XDG_STATE_HOME/vcom/vcom.logreplaces a new file in/tmp/vcom-logsper run; secrets are never logged.
Development
- In-process SSH/SFTP test server with a fault-injecting proxy (
internal/testutil/sshtest), tree helpers (fstree), a Bubble Tea test driver (teadriver) and behavioural smoke tests for the UI. - CI:
make ciruns gofmt, vet, a vendor consistency check, build and race-enabled tests; releases run the same workflow.