Refuse tiny terminals; scroll the confirm view; explain and recover from failures #12
Loading…
Reference in a new issue
No description provided.
Delete branch "tui-hardening"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Finishing the work two agent sessions left pending, in one batch because
the fixes share the files they touch.
A terminal smaller than 72 columns or 8 rows is now refused, at start or
after a resize: nothing is drawn, the terminal is restored, the size it
got and the size it needs are printed, and the app exits with status 1.
Nothing pending is applied. 72 columns is where every fixed line is
whole - the longest, the list status hint, is 71 - so no key is ever
shown cut in half; at 40 columns the choices line already loses
3: Do nothing. Eight rows is what the confirm view needs for one change. Thethumbnail width math now runs through copy count instead of a narrow
terminal: 24 versions at 72 columns get three columns each - gutter,
pixel, gutter - 25 drop the block and show metadata only.
The confirm view crashed in an ordinary 80x24 terminal once 19 or more
changes were pending. When the changes do not all fit, j/k, the arrows
and Page Up/Down now scroll them; the warning says which are on screen
(
4-6 of 7) and the help bar gainsj/k: scroll. Reopening the viewstarts at the first change again.
A change whose files cannot be written - a read-only original - used to
come back with nothing selected and no message. It now stays listed with
the reason on its rows:
Could not apply: Permission denied (os error 13), so a failure never passes silently.An I/O error mid-run used to exit without leaving raw mode or the
alternate screen, breaking the user's terminal. Terminal restore now
runs however the run ends. A new pty test yanks the terminal the app
draws to away mid-run and checks the keyboard terminal comes back in
cooked mode.
Fixtures can set file permissions (
[setup] permissions), the dev shellgains cargo-llvm-cov (with rustc's own LLVM) for the line-coverage
workflow in CLAUDE.md, and every line a user can reach now runs in some
test.
Verified: 108 tests, clippy and statix clean,
nix flake checkandnix buildgreen, no missed mutants on the changed lines (45 caught, 7unviable), line coverage 99.84% - only scanner.rs:108, a branch that
cannot happen, is unrun.
Co-Authored-By: MiMo 2.6 Pro noreply@anthropic.com