Commit graph

7 commits

Author SHA1 Message Date
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
fbaffb4354 fix(archive): never archive over or into a source; confirm overwrite (U-P0-1)
- CreateArchive refuses an archive path that is a source or lies inside
  one (symlinked parents resolved) and writes to a temp file renamed over
  the target only on success, so failures/cancels leave no partial file
  and keep an existing archive intact
- the UI checks the target before starting and asks before replacing an
  existing archive

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-31 23:12:35 +03:00
vrubelroman
2ba00b0ad0 fix(ui): Cyrillic text input, PgDn, and q closing layers before quitting
- Russian-layout translation applies only to command keys; mkdir, rename,
  filter and the SSH form receive the typed runes (U-P1-5)
- PgDn is bound (U-P1-6); help text no longer promises an unbound 'b'
- q with the info pane, a filter or a selection closes that layer like
  Esc and quits only from the bare browser; q no longer closes the SSH
  form while typing (U-P1-16, partial)
- smoke tests for PgDn and Cyrillic mkdir are no longer skipped

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-31 23:10:42 +03:00
vrubelroman
6696fea67a fix(ui): caret mode no longer panics under the Ascii color profile (U-P0-3)
The background-preserving reset was built by slicing lipgloss output,
which is empty without colors (NO_COLOR, dumb terminals). It is now
derived from the active termenv profile and skipped when there are no
colors.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-31 23:09:23 +03:00
vrubelroman
f57565989c fix(ui): delete moves to trash by default; n cancels yes/no dialogs (U-P0-4)
- F8 dialog defaults to the trash; permanent deletion only via D/d
- n/N closes confirm and archive-type dialogs, as their notes promise
- behavior.confirm_delete=false now works, and only skips the question
  for the trash (remote and permanent deletes still ask)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-31 23:08:24 +03:00
vrubelroman
2f3491c1db fix(ui): block local-path actions in SSH panes and writes into archive panes
- SSH panes: rename, Enter/open/edit/execute on files, archive and unpack
  are refused with a status message instead of acting on the local file
  with the same path (N-P0-1, N-P0-2, N-P1-15)
- copy/move/archive/unpack refuse a passive pane that is an archive
  mount (temp dir deleted on exit) or the ssh:// host list (canWriteTo;
  U-P0-2, N-P2-10); mkdir in the host list is refused too
- startProcess hook so tests can observe xdg-open launches

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-31 23:06:24 +03:00
vrubelroman
511375492a fix(ui): show status and errors in a line above the footer (U-P1-1)
m.status was set in ~200 places but never rendered. A single status line
now sits between the panels and the footer, coloured by wording (error /
warning / info); the filter bar takes the same slot instead of growing
the view past the terminal height. Local mkdir now fails on an existing
name instead of silently reporting success.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-31 23:03:53 +03:00