summaryrefslogtreecommitdiff
path: root/test/snapshots
diff options
context:
space:
mode:
authorGabriel Schneider <[email protected]>2026-11-24 21:01:37 -0300
committerGabriel Schneider <[email protected]>2026-11-24 21:01:54 -0300
commite91261ff4f4602afec14d2fb958fd3e51a4dc62d (patch)
treed9a50458be65477a0679159373d2e05eb4c1787f /test/snapshots
parent1ebc8974489e46aee26409d54d7f1de567dbbb4a (diff)
downloadpardes-e91261ff4f4602afec14d2fb958fd3e51a4dc62d.tar.gz
pardes-e91261ff4f4602afec14d2fb958fd3e51a4dc62d.zip
messages: a background question waits in its pane's tag and never takes the keyboard; SPC e gives it the keyboard, Esc leaves it waiting (pick-ui SPEC §10.2, §10.4, §3.2 asking, walk UI line C item 4): a file that changes on disk under unsaved text is now a question of its pane (one at a time: File.changed), its answers r Reload, k Keep mine and d Diff (Messages.Ask.answers); while the tag is at rest the question is drawn after the path as computed prefix text, 'changed on disk ▸ r Reload k Keep mine d Diff · SPC e to answer' (Messages.askingText; the tag's own words stay after it until the head of ruling R1 takes their place), its mark ? in the box and the notice row's '1 question · SPC e'; the keys stay the body's: View.answering (a pane's serial, the view's own keyboard state, ruling R4) is set by SPC e (item 5) and makes the answer's key answer it in handleKey's first slot, Esc leaving it waiting; the own-command questions (Del's side, a REPL's choice) keep that slot as they were; B2 on an answer's word in its tag answers it (exec.execute: Messages.answerWord); r reads the file again with the consent Get would ask for, k keeps the text and says so, d reads the disk's text (the host's read, taped) and shows where it parts from the buffer as ghost rows under that line, the disk's + lines first (Messages.diskDiff, Said.open: shown whatever the caret), d again hides them; an answer is logged ('... · answered Reload'); Messages.waitingAnswers is what a : lists first (for agent E); 9P /log says 'msg N changed on disk' (monkey9p's checker reads that); tests: Messages.zig 'a file changed on disk under unsaved text asks in its tag and never takes the keyboard: SPC e's keyboard answers, d shows the disk's lines as ghosts, Esc leaves it waiting, B2 on Reload reads it again', ninep/ctl.zig's disk-change test now finds the question; tui: core-test, shell-test, pane-test, behaviour-test pass; process-test: filewatch's golden takes the question (its tag row and its notice row), Restore's root-ctl case failed once under load and passes alone
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Diffstat (limited to 'test/snapshots')
-rw-r--r--test/snapshots/filewatch.golden5
1 files changed, 3 insertions, 2 deletions
diff --git a/test/snapshots/filewatch.golden b/test/snapshots/filewatch.golden
index 1e10ec08..b9716691 100644
--- a/test/snapshots/filewatch.golden
+++ b/test/snapshots/filewatch.golden
@@ -31,7 +31,8 @@
|
| · @p1 a copy of the terminal's text: Tab or B2 runs it; what the program draws next replaces it (Ctrl-b types to the program) 1 message · SPC h m
== snap kept grid=210x31 cursor=15,7
-|30: · /tmp/pardes-snap/filewatch/cwd/w.txt changed on disk (get reloads it, Save overwrites it) 2 messages · SPC h m
+|6: ?/tmp/pardes-snap/filewatch/cwd/w.txt changed on disk ▸ r Reload k Keep mine d Diff · SPC e to answer Save Term Collapse Follow Del
+|30: ? /tmp/pardes-snap/filewatch/cwd/w.txt changed on disk 1 question · SPC e
== snap reloaded_sub grid=210x31 cursor=15,7
|19: 1 RENAMED
|20: ~
@@ -42,4 +43,4 @@
|25:
|26:
|27:
-|30: · reloaded /tmp/pardes-snap/filewatch/cwd/sub/s.txt 3 messages · SPC h m
+|30: ? /tmp/pardes-snap/filewatch/cwd/w.txt changed on disk +1 · 1 question · SPC e