Commit graph

4 commits

Author SHA1 Message Date
vrubelroman
4ed81ef635 feat(state): atomic session in XDG_STATE_HOME; old UI saves theme via SetKey (2C.3)
state.Save writes session.toml atomically (0600, state dir 0700), drops
cursor-memory entries under cache/temp mounts and caps each pane at 200
entries; Load migrates the old ~/.config/vcom/session.toml once. The old
UI's session functions are aliases over state, and theme selection uses
config.SetKey, so the user's comments and keys survive. config.Save is gone.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-31 23:37:23 +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
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
1f6f400276 test: add teadriver and behavioural smoke tests for the old UI
teadriver feeds keys/mouse to Update, runs returned commands concurrently
(unwrapping Batch and Sequence), feeds results back until quiet, skips
long timers, records Quit and ExecProcess requests, and renders View
without ANSI under an Ascii profile (WithProfile for others).

Smoke tests cover navigation, mkdir, copy, rename, filter and delete on
t.TempDir(); PgDn and Cyrillic input are skipped until task 1.6.

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