summaryrefslogtreecommitdiff
path: root/core/builtins.zig
Commit message (Collapse)AuthorAge
* Root, and the explicit root keys SPC f F, SPC f G and SPC :: Find, Grep and ↵Gabriel Schneider20 hours
| | | | | | | the `:` line run at the project's root, the nearest directory at or above the asking pane's holding a `.jj` or a `.git` (Pick.workTree, kept by zxsqtpol for this), the pane's own when none does, while SPC f f, SPC f g and `:` keep acme's directory (the user's ruling of 2026-11-26: "maybe some commands SHOULD run on the project root for convenience", explicit twins, nothing implicit); WHY A WORD: a leader leaf names a builtin (config.leader_path, leader_args) and `:` is a normal-mode role, so the three keys need one word that reaches the root: `Root <line>` runs the line as Exec does with the step's flag Pardes.exec_root set, bare (SPC :) it opens the `:` line marked to run there, and a script's `Root make` or `Root Grep x` falls out of it at a ctl for free; THE CHANGE: builtins.Root; Pardes.exec_root, a step's own (replica `.local`, root.zig's kept_out) like exec_column; execDir reads the root under it (a command pane's directory, Term's, and Query.create's, which now calls execDir in place of its copy of it); executeFrom sends Root's line to a command pane even from a shell at its prompt, and runCommand reuses only a finished command pane at the root for it (not the asking one); Pick.root: a picker Root asked lists from the root, its head `␣ f Find root`, `Grep root`, its list word `Find root …`, Exec on that word running at the root again, a Grep's leading directory read from the root (grepScope, unchanged); Command.root: SPC :'s line, its head `: root`, `= Root make` as its plain word, its Enter and its `:open ` run as Root; config: Root's leader path `:`, leader_args fF and fG run `Root Find` and `Root Grep`, which-key labels `Find root` and `Grep root` (bindings.zig); replica's may_wait gets back a kind row, `Root *` (the root's stat on the session's disk), walked as `Root Find` (walk_samples: bare Root, the `:` line, asks the disk nothing); docs: Root's own doc (the Help index row `SPC : Root`, builtins-tui.json from `zig build builtins-json`, the same line put in builtins-gui.json), the cheatsheet's leader list (three short rows), guide.typ's Find and Grep rows and its where-commands-run table; RUN (TEST FIRST): behaviour/find_grep.zig (the reference's Find and Grep chapter, new): a `.jj` project, `x.txt` two directories below it: SPC f f lists `x.txt` alone and no `Find root`, SPC f F `␣ f Find root` with `a/b/x.txt` and `top.txt` (`.jj` passed over); SPC f G `needle` `␣ f Grep root needle` with `a/b/x.txt:1 needle below` and `top.txt:1 … needle at the top`, `a needle` the first alone (a/ is the root's); look_and_exec.zig: `:pwd` makes a command pane named `<root>/a/b`, SPC : shows `: root` and its `pwd` a second command pane named `<root>` (a `.git` project), each body `% pwd`; the three fail on zxsqtpol 8d2a064eb69a (`not on the screen: ␣ f Find root`, `… ␣ f Grep root needle`, `… : root`), pass now; test/session.zig gains `advance`, the host's clock moved on, so a typed Grep's 80 ms pause comes due in a T1 test; REAL CHECK (a private detached session of this Debug build over 9P, CA's demo copied with a `.jj` at its top): from src/torque/types.cc SPC f f types.cc types.h, SPC f F `Find root` Makefile compile_commands.json src/torque/types.cc … 1/5, SPC f G ToString `Grep root` three hits from the root, `src ToString` narrowed, `:pwd` printed …/demo/src/torque, SPC : `: root`, `: root make = Root make`, its pwd printed …/demo, its make ran `clang++ … src/torque/types.cc` at the root (exit 2, the demo's error) and SPC e from types.cc walked to types.cc:7:11, `SPC :open Make` opened `Find root Make`; GOLDENS (process-test --update, read): leader.golden spc and unmapped (`: Root` after `/ All` in SPC's level), find.golden group (`F Find root`, `G Grep root` in SPC f's), nothing else moved; NO hot path (a stat per directory up to the root once per Root run; a flag and five bytes in the head); the dump and the digest gain two bools (Pick.root, Command.root): the 40,000-seed dump fuzz (40,000 + 40,000 join seeds, 1,779 image seeds) 11/11, core/fuzz.zig restored byte for byte; GATES: Debug core-test 1172/1349 (177 skipped), shell-test 1390/1393 (3 skipped; the walk with Root's row), addons 8/8, term-test 17/17, kitty-test 45/45, process-test 0 of 149 failed (3 skipped), pane-test 184/185, behaviour-test 293/293 and --replay 293/293 (+3), consumer-test, the soak twice (rtt 30/80/207: diverged 0, unequal 0, quiet checks 617/0 485/0 568/0 and 499/0 387/0 553/0, unlisted stops 0, the corpus 22 of 22 scenes the same, no leak), daemon.py plain x3, games, window-clients, clients x5, relink, launch, pair, gui, client-motion rc 0, far rc 1 (`no link of the far client ended under the flood`, as on the base), client-resize-real skipped (no compositor), the macOS x86_64 and arm64 and FreeBSD cross-builds; ReleaseSafe: the build (0 invalid options), the soak (diverged 0, unequal 0, quiet checks 514/0 381/0 543/0, unlisted stops 0), process-test 1 of 149 failed (root-ctl Restore, as on the base), upgrade from the installed ab9fa40a7bbb, upgrade-gui, upgrade-self (65 s) and upgrade-back (40 s) each nothing left behind, launch, clients x3, far, gui, client-motion, client-resize-real, client-idle, pair, plain x3 rc 0; load 1.2 to 3.6 Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_016Y9MNBFhdevVu48bvL9kCE
* builtins, Pick, docs/typ: the help text that still put what a state shows in ↵Gabriel Schneider30 hours
| | | | | | | the tag says it hangs under the tag, as walkui UX DESIGN parts M and O have it (M1: a tag never leaves rest, everything a state shows hangs under it; O1: a picker hangs under the tag of the pane with the keyboard, only its preview goes to the pane its Enter lands in): Keys (describe-key: `the next keys typed are replayed under the tag`, `The row under the tag shows Keys and the keys as typed; ... unrolls its level below`), Messages (`a list under the pane's tag`), Resume (`Under this pane's tag, previewing where its Enter lands: this pane if it reads, else its reader`, where it said the picker unrolled in the tag of the pane its Enter lands in, a held pane's reader), CodeAction (`a picker under the pane's tag`), and the same words in docs/typ/builtins-tui.json and builtins-gui.json (the glossary the build writes from these docs; core/builtins_json.zig's test holds them to the registry), Pick.resumeAt's doc and two code comments in builtins.zig (Themes, Query's sources); WHAT WAS LOOKED AT: docs/typ (guide, reference, cheatsheet, running, setup, scripting, building, themes), core/tutor.txt, fs-help.txt, README.md and every builtin's documentation (the Help index): none of them names the act/source row, says a click ends a picker or a prompt, or puts a picker's head in a tag but these four; a question still takes the keyboard in its pane's tag (M1 leaves asking as it is), so Message's doc stays; Keys' doc is worded to keep its three rows in the Help index (process-test's builtins case middle-clicks Tutor's row by its number); TEXT ONLY, no behaviour; GOLDENS (the Help index's text rows only, no style row moved): builtins.golden docs-group and tutor-from-index (Keys' and Messages' rows), leader.golden help-group, tutor, deleted (Keys', Messages') and help-language (CodeAction's), ttyhelp.golden helped and leaderworks (Resume's); GATES (Debug tui): core-test 1165/1340 (175 skipped; the glossary's test with them), process-test 0 of 103 failed with --update (the three re-recorded, read above; a first wording of Keys' doc took a fourth row and failed builtins' `@Tutor` on row 31, reworded); load 1.4 to 2.1 Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_016Y9MNBFhdevVu48bvL9kCE
* merge (M2): W3+W3b lean chrome (krwnyllv 027c96360928) + L2cde/L2b/L3457 ↵Gabriel Schneider34 hours
|\ | | | | | | | | | | | | colour and themes with W4 (ryuzknor 14723377a8d1) + W6 Symbols by kind (pnmuqkop 8393c24f7667) + W78/T1/T23 previews, root search, the shell's prompt, a server started on open, kbdin's path (xuwpnwno 849542a05f7b), resolved: THE CODE: core/Pick.zig and test/behaviour/language_servers.zig, each side's tests appended at the file's end (W6's Symbols tests and W78's W8 test; W6's server Symbols test and T2's start-on-open test); core/colors.zig, where L2b took `hit` and `hit_current` out of Roles and W6 put `kind` beside them: W6's mark ink moves onto the chrome, `Chrome.Inks.kind`, the keyword held to 4.5:1 on each ground and on that ground's selection (a list's cursor row), worked out by groundInks at a theme change as the key and match inks are (DESIGN.md B4, B1.3), and draw.zig's band draws a row's kind mark in the focused or the plain tag's `kind` (`p.chrome().on(...)`, the band's other inks still Roles' until L2a), Roles.kind and its floor check gone; the ring's per-ground check (ringFailures' `inks`) holds it to 4.5:1 on its ground and its selection where the keyword's hue reaches it there (a hue held to the end of light keeps a trace of itself: #000100 on solarized_dark's grey tag and its selection reads 4.49, papercolor_light's page under its dark selection 3.33; held to pure black's reach those two failed); Pick.zig's Symbols test asks the mark in `p.chrome().on(.focus).kind`; test/soak.py's safe_tags wrote the old window words to /tag, which since K'2 appends them after the computed `Find Grep Newcol Help Exit` (a doubled row, and Exit, computed, not taken away): it writes `Joincol Themes`, the old safe tag's words the row no longer computes; THE GOLDENS: the 40 in conflict (14 on L2b's tree, 40 once L3457's 37 came in) re-recorded once with `process-test -- --update` (the whole run before it failed on exactly those 40; no other golden moved) and each read against both sides and their common base (ymkwwwnn) by .scratch/walkui/M2/gcmp.py, g9p.py and galign.py: text rows, and every changed cell's style pair explained by the other side's base-to-side pairs (its ink and its ground each): lean's words and rows on every snap (`text == A` wherever the other side moved no text), every colour the other side's (L2b's hits, chip, secondary selection, diff grounds, guides, sweeps; L3's focused name tint #dfbce5 to #ecc8f2, resting grip #496656 to #465a43, column grip #887455 to #504733), 0 cells unexplained; the other sides' text at lean's rows: W4's `l Lists` in find's SPC f level and its `C-o back to ...` notes (find, fsearch), W78's preview spines (find), W6's marked, grouped symbols (lsp: `f helper`, `f main`, `c std`, the preview landing on helper's line 3), T1's `$` kept (ttyhelp's leaderworks, row 2) and W4's Resume doc at the +Help's foot (ttyhelp), L5's ring (theme: five new snaps, dark, light, mono, okabe, sepia; themesel: every step's rows and styles L3457's row for row, one row up under K'2, only the rail thumb's cells moved, the panes one row taller); tagnav's Themes list shows in neither lean's recording nor the merge's (the window row's click lands on Dump there); the 9P captures (collapse, mini, ninep) read the same way; no merge fault found; GATES: core-test 1155/1329 (174 skipped), the ring 245 of 245 themes with no expected failure; process-test 0 of 149 failed (3 skipped) after the re-record; load 0.8 to 7.1 Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_016Y9MNBFhdevVu48bvL9kCE
| * Pick, builtins, config, Core, docs: Lists, a picker of the kept pickers (UX ↵Gabriel Schneider41 hours
| | | | | | | | | | | | | | DESIGN L'3, binding; the user liked L-c): `SPC f l`, the word Lists, and `'` among a picker's sources (M-h) open it from the asking pane (Source.lists; from a live picker, one of its own where that one was asked: switchTo); its rows, newest first (Pick.nth), are the kept pickers' list words, the source word, the query (refinements joined by ` | `), `cursor/matches` and `•N` when marked (Pick.wordOf), each with where it last landed at its right, dim, `@p2 › words.zig:16` (Pick.landed, written by land); the body previews the picker's current row as any place (its row's target); the band's second step, a doc, shows that picker's rows around its cursor, which is marked `▶`, read only (Pick.listedStep); Enter (and B3 on a row) reopens that picker as it was left, where Lists was asked from, the newest now (Pick.reopenListed); Esc to rest; no acts and no sources in it (head `⏎ reopen it · esc`; execWord passes it by); Lists itself is never kept: Pardes.picks has one more slot, Lists takes the one Lists had or a free one, never drops a kept picker for its room, is never in Resume's order, in Lists' rows or the count of the kept (Pick.make, nth, nkept); Resume's doc says its walk; docs: the reference's "Back to a picker" (the three ways and what Ctrl-o, Resume and Lists do), the cheatsheet's Ctrl-o row and `SPC f l`, `SPC '`; builtins-tui.json regenerated (Lists, Resume); RUN (TEST FIRST): Pick.zig "Lists (UX L'3) ..." keeps eight lists (G left on its second row, H landed), opens Lists and asks that none was dropped and it is none of the kept, its rows `H 1/2` .. `A 1/2` newest first with H's `@pN › alpha.zig:2`, on G the body previewing beta.zig at line 2 and its rows beside with the second marked, Enter reopening G on its second row as the newest, a ninth picker dropping the oldest kept and never for Lists' room, and M-h `'` from a live J opening Lists with J first: does not build on L'2's tree (no Lists source), passes now; goldens: find (the SPC f level shows `l Lists`); with L'1 and L'2 under it: core-test 1127/1300 (173 skipped; the docs test caught `#key("Backspace")` and `#key("'")`, which name no binding: written as text, passing alone), shell-test 1348/1351 (3 skipped, the same), pane-test 183/184, behaviour-test 280/280 and --replay 280/280, process-test 2 of 147 failed before find moved (find; ttyhelp the placeholder), term-test 17/17, kitty-test 45/45; the dump fuzz (Step.search, Pick.used, landed, walking, Pardes.resume_at, picks one more) at 40,000 join seeds twice and 1,779 image seeds 13/13; the soak replicas --clients 5 --rtt 30,80,207: diverged 0, unequal 0, quiet checks 351/0 481/0 564/0, stops not on may_wait 0, the corpus 22 of 22 scenes the same, no leak; the frame and perf gate on the stack's top; load 2.4 to 13.7 Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_016Y9MNBFhdevVu48bvL9kCE
* | tagline, edit, dump, layout: a pane tag reads its path, then its computed ↵Gabriel Schneider41 hours
|/ | | | | | | words, the words that act now, read-only and made again from its state as the path is, then the user's text (UX DESIGN K'1, K'3, binding; the user: "pardes looked so cramped and full of information with the taglines compared to the other editors", "I liked C and D"); THE OLD WAY: a tag's words were its own text (`tag.own`, or until edited its kind's default `*_tail`: `Save Term Collapse Follow Del`, a speaking file's `Def Refs`, `TreeContext`, `LocationsConfig`, a terminal's `Term Save Mode Filter Collapse Del`), the same in every state, so a file tag held 5 to 9 command words, wrapped to a second row at 84 columns, and `Save` stood there clean; THE CHANGE: tagline.computedWords per K'3's table (a file reading `Keep Del`, `Keep` its walk's word after the path as before; held `Del`, `Undo` while its journal has a step back with something in it (insert mode's `i` alone marks a step of none: a behaviour test caught `Undo` coming, and a 24-column tag wrapping, before a key was typed), `Redo` while it has one forward; unsaved, gone from disk too, `Save Undo Del`; `Diff` first for a diff, a +Pager holding one and the Diff view; `Filter` for a +Pager; a +New never `Save` (the table's `Del; Undo once typed into`); a directory `Get Del`; a command pane `Kill Del` running, `Del` done; queries and the preview unchanged; a kind its own words then `Del` (Kind.reopen, `Term` and `Collapse` gone); a terminal `Del`, its shell's word after it as its text, `Term` until the shell says its name, then `Term+fish`, as before), a comptime table of the 32 file combinations, no allocation; restPrefix = path, computed words and a blank, the prefix every edit must leave as it is (edit.setEditTextSpan, which compared the path alone) and the 9P cleartag's caret goes after; `tag.own` holds only what the user typed (curTail: own, else a terminal's shell word, else none), shown after the computed words and never regenerated; enterTag puts the caret at the start of the user's text, no longer on `Save`; a question waiting at rest (TagState.asks, the test TagState.asking used) replaces the computed words with the own text, as out of rest (D13, D1 unchanged: prefixIn gives the path alone, sync keeps the tag's offsets at rest); `:` lists the computed words, then the own text's, `in the tag`; Follow's `Unfollow` goes in the new page's own text with no second blank; RESTORE: dump.dropOldTags drops an own text equal to its kind's tag before K' (tagline.kindTail, the old defaults kept for it) where a Restore, a start from a dump and an Upgrade load (loadAndRevive; a replica's join loads its authority's, dropped there; a Restore replays through the same path), any other kept whole as the user's text; THE LAYOUT (two faults the lean tags let the random placements find, ninep/tree.zig "random placements ... leave no pane under its tag and two rows"): (1) seed 273 (core-test): `Edit =` gave a full column's +Errors an undo step, `Undo` wrapped its 16-cell tag onto a 5th row, the pane under its minimum, no row to give: layout.minRows now counts a tag with the widest computed words its pane can come to show (tagline.widestWords: `Save Undo Redo` where it saves, a query's frozen words; a reading pane's own, its first edit holds it), so an edit never takes a row its placement did not leave; (2) seed 162 and 192 (shell-test): a walk step in a 12-cell tag whose basename did not fit beside its newest step (`test.txt:1 › …f.txt Keep Del`), the fold had nothing left to cut: tagline.folded then folds that step into the `+N` too (D2's basename stays whole; a hunk in the fold W4 touches); TESTS (FIRST): tagline.zig "a pane tag's computed words are the words that act now, its own text after them (UX K'1, K'3)" (reading, held, typed twice, undone, saved, a .patch, a pager, a pager's diff, a +New before and after typing, a kind), "typing in a tag goes after its computed words, and stays the user's text through a change of state" (`Mine` typed after `Del`, a Backspace on the blank before it refused, the body typed into: `Save Undo Del Mine`, the caret still on `M`), "a dump of a build before UX K' restores a tag's old default own text as none, any other as the user's"; TESTS CHANGED, each for a word gone from a tag: lsp/Ask.zig Def/Refs (the 2-1 chord now on `Def Refs` typed into the tag's own text, kindTail asserts the kind's words), Effect.zig "Save is a word of every pane with text behind it and no other" (kindTail, computedWords `Del` while clean), Core.zig TreeContext (kindTail, the tag holds no TreeContext), Filter (computedWords `Filter Del`), pane-tag Exec (`Term+sh` the text; `Theme dark` and the fallback word found where they are), compact tag commands (`Del Term`), Term+ paths (`Term+/bin/sh`, `Term+sh`), the command pane's and REPL's prefixes (pathPrefix), Dir (`Get Del`), Stream (`More Del`), jj At (pathPrefix), Pipe (`| tr` on the own text `Look here`), Command.zig `:` (typed into first: `Save Undo Del` its tag's rows, 14 commands), Trail.zig (W4's file: tags `/test.txt Del `, `rank.zig Del `; the Fixture 120 to 200 columns, as its 85-cell tmp paths beside a short tag folded the walks these tests read; "too short to halve" 24 to 20 rows), TagState and Band (a tag of two rows: own text given), Messages (the question test at 200 columns, the tag at rest one row), dev/tui/tui.zig (a terminal view's wrapped tag read on across its rows: the shorter prefix cut `w19`), test/mode.zig (`Mode` typed into the terminal tag's own text, kindTail has it), test/panes.zig (an image's pathPrefix); BEHAVIOUR (a helper's edits, each a word moved): tags.zig (a tag's keyboard starts on its own text, so `Save Term`, `Save`, `JumpTrail` are written into the own text where a test clicked or edited them; expected tags `/test.txt Del ...`), keys.zig (a scratch's Save prompt by `SPC f s`, was `::` Tab), modes.zig, mouse.zig (`Keep Del`, the own text swept), panes.zig ("an unsaved file's tag ... Save and Undo come into its words", Collapse by `C-w c`), placement.zig, terminals.zig (`Del Term`), addons_pdf.zig (`PdfSections PdfTint PdfFit Del`), columns_and_tags.zig; addons/fake/fake.out and addons/life/life.out re-recorded (a tag one row shorter: one more body row); PROCESS (a helper's edits): 11 cases clicked a word gone or a row a shorter tag moved (lookpanes, selarg, tagnav, tag, images, collapse, layout-open, ghostty-mid, look-fd-deep, respawn, ttylook: each to the word's new place, the own text or the row it moved to) and 5 more whose clicks had silently stopped doing what their comments say (shrinktag, windowops, ttyedit, tagcmd, chordcut); GOLDENS: 101 re-recorded, every change one of: a tag's words (`Term+bash Save Mode Filter Collapse Del` to `Del Term+bash`), a tag no longer wrapping (its body a row taller, the rows under it up one, one more line at the foot), splits a row smaller where a tag above stopped wrapping, a click at a fixed row landing a body row lower, the computed words' ink in style rows; three now do what their comments say where the old golden recorded a miss (chordcut's end, jumps' look-row, wrap's logical-j); ttyhelp.golden left as the merge's placeholder (M1's; this change moves it too); core-test 1126/1299 (173 skipped: +3), shell-test 1347/1350 (3 skipped), pane-test 183/184 (1 skipped), behaviour-test 280/280 and --replay 20 seeds of 70 steps 0 failures, process-test 1 of 147 failed (ttyhelp, the placeholder; 3 skipped), term-test 17/17, kitty-test 45/45, the gui unit-test 1949/1954 (4 skipped; its one failure colors.zig's whole-ring CPU timing at a load of 8.7, L1's, passing in core-test, and the known BaselineHarnessMismatch); the soak `replicas -- --clients 5 --rtt 30,80,207`: diverged 0, unequal 0, agree/differ 451/0 420/0 623/0, unlisted stops 0, the corpus 22 of 22 scenes the same, no leak; no dump field changes (no fuzz); no frame/perf gate (moved to the programme's end); load 2.6 to 10.5 Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_016Y9MNBFhdevVu48bvL9kCE
* Messages, body_layer, normal, mouse, Core: a message's detail unrolls only ↵Gabriel Schneider2 days
| | | | | | | on request (UX D13, E5 fix 3): K with one selection on a line a message with a detail names, SPC e there, or a Look (B3) on its words after the line unrolls it under that line, and the caret leaving the line (or the keyboard another pane) rolls it up; the caret passing a line never inserts or removes rows; THE CAUSE: Messages.detailUnder showed the detail of the message naming the caret's line whenever the caret was on it (C's rule, spec §10.2), so j over a build error pushed the text below down and k pulled it back (UX A16, E2 "detail still unrolls under the caret"); THE FIX: Said.open (the question's Diff's flag, already in the dump and the digest; its doc said "whatever the caret" and nothing read it) is the request: detailUnder shows the message whose words the caret's line shows (the first naming it, firstAt, as messageGhosts draws them) only while it is open, and a question's Diff under its place whatever the caret; Messages.detailAt finds it (not a question's: its Diff is `d`); normal.zig's K takes it with one selection, else keep's prompt as before; Messages.act (SPC e) unrolls it first when the caret's line has one not shown, the walk as before when asked again; mouse.zig: a Look on its words after the line (body_layer.messageAt: from their glyph two blanks after the line, read from the frame drawn last, as wordAt reads a detail's word; wordAt and it share drawnRow) toggles it; Core.update: around a key and a click, Messages.unrolledAt/rollUp roll every unrolled detail (not a question's Diff) up when the keyboard's pane or its caret's line changed (a motion along the line, or a click on the detail, which puts the caret on the line it explains, keeps it: C's G-fixed rule holds, the detail's rows are read-only text for the mouse); nothing read with no detail unrolled; the Message builtin's doc says it (docs/typ/builtins-tui.json and -gui.json the same text); TEST FIRST: body_layer.zig "a message's detail unrolls only on request (UX D13): the caret passing its line inserts no rows; K there unrolls it ...; K with two selections is keep's" (fails on the base at body_layer.zig:1346: the caret on line 3 put its detail under it); C's two tests ask for the detail (err.open, and K after k k) where they set the caret; core-test 1084/1255 (171 skipped), process-test 0 of 147 failed (no golden moved); a user hit it: every build error and diagnostic with detail lines pushed the text below down as the caret passed Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_016Y9MNBFhdevVu48bvL9kCE
* lsp_client, Ask, Pick, body_layer: code actions as a picker (walk UI P3 item ↵Gabriel Schneider3 days
| | | | | | | 1, SPEC §5.1 "actions", §14.1, POLISH 17): the client sent each action's title alone (lsp_client run `.code_action`), so `SPC l a` could only list them in a +Lsp, nothing to preview or apply; NOW the client writes each action's row and after it its edit of this file as `@put` records (actionEdits, sorted, sharing renameEdits' WorkspaceEdit reading as editFiles), `@elsewhere` for an edit that reaches another file or makes one (never a part of it applied), none for a command's; an action the server sent without its edit but with `data` is asked for it with codeAction/resolve when the server says resolveProvider (Caps.resolve_actions); typed where jumps walk (Ask's `ghost`, recorded at ask time as the hover's) the answer is Pick's new source `actions` in the asking pane's own tag (`␣ l a Actions`, its host the edited pane as the themes picker's), each row its digit in the key ink then the title (the query matches the title), the body moved to the edit's first line while it is under the cursor and showing its edit as ghost rows (Pick.ghosts, drawn after Prompt.ghosts by the body layer: the lines it changes on the Changes layer's deleted ground, what they become after them on the added ground, the rows below pushed down; R3, DESIGN D4 add/del; bounded by the rows shown), Enter or `1`-`9` with the field empty applies it as one undo step through Ask.applyAction (applyLspEdits, of the revision it was asked of: Pick.revision), the tag at rest first; a command's or an elsewhere edit is said, not applied; anyone else's (a 9P script) keeps the +Lsp of titles; the mock (test/lspmock.zig) answers three actions: a title alone, one with its edit (a line put in at the top), one resolved (main.rs's two `add` calls to `sum`); CodeAction's doc and the builtins json say so; TESTS: core/Pick.zig "code actions: a picker in the asking pane's tag ..." (ghost rows and grounds rendered, `3` applies, `u` undoes, a command's said), test/behaviour/language_servers.zig "SPC l a lists the server's code actions in the pane's tag by their digits ..." (through the mock end to end, resolve included; on the base `SPC l a` makes a +Lsp); core-test 1063/1233 (170 skipped), behaviour-test 279/279, shell-test's edit tests 89/89 Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_016Y9MNBFhdevVu48bvL9kCE
*---. walk UI M3: G's tip (quksvlvm: lines A, A2, B, C, D, jumps default walk), ↵Gabriel Schneider3 days
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | line F (wwqsrnol: registers, painted targets, hover and rename ghosts, the themes picker, the trail's fold), line E (tuwqwmlm: text prompts, in-body search and its word, recipes, pipes with ghost lines, Text.setRanges) and H's first fix (vxkunwvk: a refused load's rollback frees the namespace's opens once) merged, each conflict resolved by what both sides meant: TagState.Kind is {rest, help, describe, pick, rename, prompt} with D's `pick` and E's `prompt` fields both kept, its head's arms D's picker, E's prompt and F's Rename after A's describe; Band.takes and Band.of give E's prompt steps and F's rename none beside D's picker; keys.zig handleKey runs E's Prompt.keyAtRest (any key but a sam prompt's ends a recipe) before F's Esc that takes a hover away, and tagStateKey's switch has every kind (E's prompt first, unreachable after it); normal.zig's Esc is C's chain, whose first step (a search's tints) is E's first-Esc-clears-tints (the word stays in the trail, dimmed), and n/N step a search's places saying where (E's Prompt.stepped) before D's list walk (Pick.walkList); Trail.zig keeps G's lift and E's setWord, one wordOf (the step by pointer, D's and E's same fix, with F's fold count `whole`), F's `folded` and E's `spanOf` taking that count (Prompt.unlit too, so a dimmed search word is measured as the tag draws it, folded out of rest), and Look/Exec on a list word D's reopen/rerun, on a search word and a recipe E's; body_layer.zig renderBody paints F's targets in the gutter first (the ghost rows after them push them down with their lines), then C's message ghosts, F's hover ghost lines and F's rename preview, E's pipe ghosts staying after the cursor as E drew them, and keeps C's messageGhosts beside F's paintTargets, hoverGhosts, renameGhosts and their helpers; Pick.Source has G's `messages` and F's `themes`, neither among the spine's sources; root.zig exports Pick and Prompt; tests: F's registers test reads A2's single BAND_LAYER, E's echo checks read C's said message (Messages.saidBy) for the gone Pane.msg; the wire is ONE bump for the merged tree, 36 (A's 36, E's 37 to 39 and F's unbumped dump changes in one entry), test/daemon.py's WIRE 36; the five conflicting goldens regenerated (process-test --update), never hand-merged, and read against both sides (G/gkeep.py): fsearch and lookrange (E's `/` prompt in the reader's tag and its search word `/NEEDLE/ 1/2` in the trail in place of G's +Search query pane, the notice row echoing `/NEEDLE/ 2/2 · line 8`), msg (E's `s` prompt in the tag's head in place of the notice band's), pipe and selregex (E's prompts with G's Keep word and C's notice row); docs/typ/builtins-{tui,gui}.json regenerated: unchanged (the merge's are what the registry says); tui core-test 1051/1221 (170 skipped, 0 failed); process-test before the five updates 12 of 146 failed: those five, five more goldens the merge moves (tagnav, builtins, find, lsp-rename, lsp) and two cases of today's routing that now meet F's states under jumps walk (themesel: SPC t t is the themes picker; lsp-client-edit: SPC l r is F's Rename and its click lands a row up under the wrapped tag), left to item 3's reading pass Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_016Y9MNBFhdevVu48bvL9kCE
| * | | lsp: a hover (SPC l k) and a rename (SPC l r) asked from the keyboard show ↵Gabriel Schneider3 days
| | | | | | | | | | | | | | | | | | | | | | | | in the edited pane's own body: the hover as ghost lines under the line it was asked at, no +Hover pane, Esc taking them away; Rename typed in that pane's tag (` Rename best → bester▌`, the old name struck), each whole-word place of the old name in the rows shown drawn struck with the new name after it as it is typed, Enter asking the server for it (its edits applied as before), Esc asking nothing (pick-ui SPEC §3.5, §14.1, R3, walk UI line F item 3, its hover and rename; code actions NOT done: the protocol client sends an action's title alone, no edit to preview or apply): Ask.hover (its pane, line, revision and first 1,024 bytes, in the dump; an edit of the text stops it showing), body_layer.hoverGhosts and renameGhosts (drawn after the rows as the message ghosts are, the rows below pushed down or a row's cells pushed right, never written, the rows shown alone), TagState.Kind.rename (its head; no band), Ask.openRename and renameKey, the name under the caret Ask.renamedWord (the preview is pardes's own whole-word match in view, the edit the server's on Enter); under `Jumps new-pane` or from a 9P script, +Hover and the rename prompt as before; TESTS: Ask.zig "a hover asked from the keyboard is ghost lines ..." and "SPC l r types the new name in the pane's own tag ..."; core-test 1029/1196 (167 skipped), 0 failed, load 8 Co-Authored-By: Claude Opus 5.5 <[email protected]>
| * | | Pick: SPC t t (Themes) is a picker of the themes in the asking pane's own ↵Gabriel Schneider3 days
| | |/ | |/| | | | | | | | | | | | | tag, the whole window wearing the theme under the cursor and no pane dimmed (every one flagged previewing), Enter wearing it, Esc putting the session's own back (pick-ui SPEC §5.1, §3.6, walk UI line F item 4): a source `themes` (Pick.Source; its rows the themes in their order, the cursor starting on the one worn; no reader, no acts, no other sources, no second row), its preview colors.previewTheme, the one function the `:theme ` argument rows can call too: Pardes.theme_preview over the session's theme in theme() and chromeTheme() (its chrome worked out once a theme, never a frame; nothing loaded, a ThemeFile and a custom theme untouched under it), set in the step of the key that moved the cursor (Pick.produceAll) and cleared at the roll-up; both fields on root.zig's kept_out list (derived from the picker's cursor, which the digest has); Themes from a 9P script or under `Jumps new-pane` opens +Themes as before; TEST: Pick.zig "SPC t t is a picker of the themes ..." (its host, the cursor on the worn theme, every pane previewing, Down wears the next with the session's unchanged, Esc, Enter); core-test 1027/1194 (167 skipped), 0 failed, load 8 Co-Authored-By: Claude Opus 5.5 <[email protected]>
* | | Messages, Pick, Output: where jumps walk, SPC e lands an error's places as a ↵Gabriel Schneider3 days
| | | | | | | | | | | | | | | | | | list in the pane's walk through D's picker, and SPC h m is a picker over the history in the pane's tag (walk UI G item 2c, SPEC §10.4, §5.1's messages source), C's stopgaps replaced: SPC e (Messages.act) made a +Search under the pane and walked it with the Look walk; now, when Pick.asked (jumps walk, not a 9P script), it opens Pick's `list` with the places as rows, its word `✗ <cause>` (cut at a character's start to the word's 24 bytes), and lands its first row at once as the prototype's actOnMessage does (openPicker then accept): the pane steps (or its reader, the pane being held), the list word goes into its trail before the place, n and N walk the places through Pick.walkList; the history (Messages.history, from SPC e with nothing to act on and from the Messages word, SPC h m) is Pick's new source `messages`, its rows Output.messagesText (openMessages' text, split out), the newest first, a place indented under its error; Enter on a message row gives the keyboard to its cause's pane while it is open, on a place row Looks the place; C-q keeps it as the +Messages (Pick.keep); the source is not offered among the picker's other sources (its second row), as `list` is not; where jumps open panes, and for a 9P script, both are as C made them; the Message and Messages docs say so (builtins-{tui,gui}.json regenerated); TEST FIRST: Messages.zig 'where jumps walk, SPC e lands an error's places as a list in the pane's walk, n walking them; SPC h m is a picker over the history…' (no pane made, the caret on the first place and then the second, the word `✗ @p9 zig build 1/2` then `2/2` in the tag, the history's rows newest first, Enter on a message, C-q the +Messages); C's own SPC e test keeps the +Search way (jumps open panes there); GOLDENS: builtins (SPC h m's doc two rows longer: the rows under it, Tutor's among them, two lower; the +Look's line 237 for 236; tty_boot.zig's click on Tutor's row 32 for 30) and leader (the same doc rows in help-group), nothing else; tui core-test 1035/1204 (169 skipped), process-test 0 of 146 failed after those two updates (2 before them: those two) Co-Authored-By: Claude Opus 5.5 <[email protected]>
| | |
| \ \
*-. \ \ walk UI M2: M1 (lines A to moosvmpn, B to ozlumvqo, D to uxrmlvno) + line C ↵Gabriel Schneider3 days
|\ \ \ \ | |_|/ / |/| | | | | | | | | | | | | | | (vxmpyyst, on main) + A2's fixes (to mzmzklqu) merged, each conflict resolved by what both sides meant: Layer.Kind gets both new kinds (A's band, C's notice_row); root.zig's layers are C's order (the notice row's layer after the workspace tag's, NOTICE_LAYER_BASE one on) with A2's single BAND_LAYER after the notice bands (draw.joinBand takes it, A2's vlkqpnxq); draw.zig's header arms list both kinds; config.zig's leader paths keep A's Keys (SPC h k) and C's Message (SPC e), its settings B's Jumps and C's MessageLinger doc; panes.zig's replica keeps A's derived band_rows and drops C's removed msg/msg_older lengths; keys.zig handleKey answers C's question given the keyboard by SPC e first, then A's tag states; Messages.zig pushes the leader chip only with a last-used leaf (A's rule) in C's bands, C's notice-row test replacing the removed chips' stack test; core/Core.zig's TreeContext test sets a last-used leaf for its leader chip and no longer expects the body's rows kept under the leader (A's rolled level wraps the tag: TagState); test/behaviour/keys.zig's PDF case looks for A's key cell ` ␣ ` in the panes only (C's panesShown: the notice row says SPC h m); docs/typ/builtins-gui.json regenerated (A's Keys was missing; tui's unchanged); the four conflicting goldens regenerated (process-test --update) and every changed row read against both sides (.scratch/walkui/G/gdiff.py): find (A2's rolled SPC f level over two tag rows, C's notice row and the panes of the bottom column a row up, the Find chip gone), leader (the rolled levels with D's Resume and C's Message among SPC's leaves, the Help chip gone, the notice row, C's longer Messages doc), builtins (A2's Help-word rows, A's Keys in SPC h's help, the +Look line 236 for 224 under the longer +Help, the notice row), ttyhelp (D's Resume in the help list, Help's count 136 for 133: Resume, Message, Keep), nothing else; tui core-test 1031/1200 (169 skipped, 0 failed), process-test 0 of 146 failed after the four updates (4 before them: those four) Co-Authored-By: Claude Opus 5.5 <[email protected]>
| * | | messages: SPC e acts on the message the notice row leads with, SPC h m is ↵Gabriel Schneider3 days
| | | | | | | | | | | | | | | | | | | | | | | | the history newest first, and Esc at rest takes a thing at a time (pick-ui SPEC §10.4, walk UI line C item 5): the Message word (SPC e, quiet: what it does shows) lists an error's places in a +Search under the pane and lands on the first (today's list, walked by the Look walk until agent D's picker lands lists in the pane), the error gone; a question gets the keyboard in its tag (View.answering, item 4); anything else, or nothing, opens the history; the history (Messages, SPC h m) is the log ring newest first, each line its kind's glyph, a live error's places under it, a question's answer logged after it; Esc in normal mode at rest takes a search's tints first (Places.clear), then the warnings and errors, then the extra selections (the primary kept), and only then goes back to the previous pane; tests: Messages.zig 'SPC e on an error that names places lists them under the pane and lands on the first, on a question gives its tag the keyboard, and on anything else opens the history, the newest first', 'Esc at rest takes a search's tints first, then the warnings and errors, and only then goes back'; docs/typ/builtins-tui.json from the registry; tui: core-test, shell-test, pane-test, behaviour-test pass; process-test 0 of 146 failed after the builtins and leader goldens took the Messages word's longer doc line Co-Authored-By: Claude Opus 5.5 <[email protected]>
| * | | messages: one session-wide list of live messages replaces each pane's stack ↵Gabriel Schneider3 days
| | | | | | | | | | | | | | | | | | | | | | | | of chips (pick-ui SPEC §10.1, walk UI line C item 1): Messages.Said is a kind (echo, notice, warn, error, question, progress), its cause first as a word a Look understands (a file's path, @pN and its command), its text, the places it names and the lines that explain it, the pane it is about, the question it asks, ×n and the core's clock, in a fixed list of 16 (Messages.live); a new message retires every echo and notice, a new error the error before it, the same message right after itself is counted, progress from the same cause runs in place and is never the notice row's; an echo or a notice dims after MessageLinger (now 4000 ms, a warning twice as long: test configs' MessageLinger 0 keep their meaning, nothing dims and nothing wakes), and the core sleeps to that dim (Messages.dimDue in nextWake) instead of a frame-counted linger; no key or click dismisses a message any more: Esc in normal mode takes the warnings and errors first, then goes back as before; every call site says what it said, mapped by its entry: setMessage a notice, setStatus progress, reportError and reportFailure an error, a builtin's announcement an echo (exec.zig), the sent-to-a-REPL arrow an echo; the log ring stays the history and 9P /log (each line now with its kind); gone: Pane.msg, msg_older and their lives, slots, announcement, status and sent flags, dismissMessage, advanceMessages, holdMessages, messageWake, expireUnattended and the detached shells' 100 ms message waits; until the notice row (item 2) a pane's one message chip shows the newest message said of it (Messages.saidBy); an Upgrade's outcome is said once and is every view's; tests: Messages.zig 'an echo or a notice retires those before it, an error the error before it, a repeat counts and progress runs in place', 'Msg says a notice by hand ... and the next message retires it', 'an idle core wants no wake, and a message wakes it once, when it dims', runtime/upgrade.zig 'an upgrade's outcome stays on every view's notice row until something else is said'; core-test 862 pass 162 skip, pane-test and shell-test pass; behaviour-test: the pdf addon's script golden and one PDF Restore test move with the chip over a PDF's body, which item 2 takes away Co-Authored-By: Claude Opus 5.5 <[email protected]>
| | | |
| \ \ \
*-. \ \ \ walk UI M1: line A (to moosvmpn), line B (to ozlumvqo) and line D (to ↵Gabriel Schneider3 days
|\ \ \ \ \ | |_|_|/ / |/| | | / | | |_|/ | |/| | uxrmlvno) merged, the base of line F
| | * | Pick: the entry points open a picker in the tag (walk UI, pick-ui SPEC.md ↵Gabriel Schneider3 days
| | | | | | | | | | | | | | | | | | | | | | | | §14.3 phase 4, item 5 of line D): in a session whose jumps walk, from the keyboard or a click (Pick.asked: never a 9P script's, which keeps the query pane whose rows it reads back and whose `not found` it hears), Find and Grep (`SPC f f`, `SPC f g`, their words), Recent (`SPC f r`), Search's sources (`SPC b b` Panes, `SPC s s` Symbols, `SPC /` All), Panes, Jumplist (`SPC j l`) and the language server's symbols and diagnostics (`SPC l s`, `l S`, `l d`, `l D`: lsp/Ask.zig, a list picker titled by its word) unroll in the tag of the pane their Enter lands in; `Jumps new-pane` (still the default) keeps today's query pane and +Jumps, so no golden moves; `/` in a body stays today's; two fixes to the items before: the band is as tall as its second step (the acts and what they act on, the sources), and with the preview off (M-p) no frame is asked for it (Pick.busy spun every frame); test/perf.zig `--pick`: a key in a Find of 50,000 paths and its frame, the frames after it while the names are scored, a cursor move over files and the frame after it that loads the preview, instructions and time; TEST FIRST: Pick.zig "pick-ui §14.3 phase 4: SPC f f from a held pane opens in its reader and Esc removes it; from a reading pane it unrolls there; Enter lands as a step leaving the list word; n walks; a Look on the word reopens it with its cursor and marks"; core-test 0 failed; pane-test 182/184 and behaviour-test (and --replay) 274/277, process-test 5 of 146 failed: all the base's (A's tests not updated in this base: Help's +Help, window mode, a PDF's SPC; the goldens find, tagnav, builtins, leader, ttyhelp of A's report), shell-test, term-test, kitty-test pass Co-Authored-By: Claude Opus 5.5 <[email protected]>
| | * | Pick: after Enter, the list word (walk UI, pick-ui SPEC.md §5.6, ↵Gabriel Schneider3 days
| |/ / | | | | | | | | | | | | | | | §6.1-§6.3 list words and n/N, item 4 of line D): Enter rolls the list into the trail of the reading pane it landed in as one word before the place, `Find pick 3/6 •2` (its word, refinements and query, where its cursor is among its rows, its marks; Trail.through, B's Trail.zig: the list a step came through), the list keeping its rows, marks, cursor and query in the session's ring; n and N in that pane walk its rows, the newest list or search word's (normal.zig, after the text's own places: a search made since is n's), in place of the current step (Trail.replaceStep: no step pushed, a file of its own a pane in its place as a step's), its word saying where it is now; a Look on the word (Trail.lookStep's list arm) unrolls the list again in that pane's tag as it was, an Exec (execStep's) runs its source again with its query from there; Resume (`SPC '`, a new builtin, docs/typ/builtins-tui.json regenerated) reopens the last picker from the pane the keyboard is in, in the tag of the pane its Enter lands in; Enter lands from the landing pane when it reads (the owner's reader or the asker itself) and from the owner otherwise; THE FAULT IT MET (B's Trail.zig, never reached before a list word existed): Trail.wordOf returned a list's, a search's or a recipe's text out of a copy of the step made by its switch, gone at the return, so a list word drew as freed bytes; the switch takes the step's own now; TEST FIRST: Pick.zig "after Enter the list is a word in the reader's trail: n and N walk its rows in place, a Look on it reopens it with its cursor and marks, Exec runs it again, Resume reopens the last" (failed on the freed bytes first); core-test 1018/1184 (166 skipped), 0 failed Co-Authored-By: Claude Opus 5.5 <[email protected]>
| * / walk (pick-ui SPEC §2, §6.1, §6.5, item 1 of the Walk UI line B): a pane ↵Gabriel Schneider3 days
| |/ | | | | | | | | | | is held or reading: Pane.trail (core/Trail.zig: a fixed walk, max_steps 16 of max_text 256 bytes, its steps a union of place, owner, list, search and recipe, `cur` held by walk.zig, in the digest and the dumps) and `held`, set by Keep (a new builtin, `SPC j k`) and by any edit of the file (File.edit, Trail.edited, twins too); a reading pane (a file not held: no output, listing, pager, query or kind) shows Keep after its path in its tag and its tag in the reading tint (a new theme role tag_reading_bg, derived from the page and the search ground, acme the spec's #f3f0cc), under the new setting `Jumps walk|new-pane`, whose default is new-pane until the walk's pickers are in, so every tag, frame and golden is as before (a walk default changes 74 of 102 process goldens and 21 behaviour tests by the Keep word alone); TEST FIRST: Trail.zig "a file's pane is reading ..." and "Keep holds a reading pane ..."; draw.zig's three-row tag test reads its band through tagGround; docs/typ/builtins-tui.json refreshed; core-test 993/1159 (166 skipped), pane-test 183/184, behaviour-test 277/277 Co-Authored-By: Claude Opus 5.5 <[email protected]>
* / TagState, builtins: describe-key (walk UI, pick-ui SPEC.md §4.5, item 5 of ↵Gabriel Schneider3 days
|/ | | | | | line A): SPC h k runs a new builtin, Keys (its word anywhere does the same), and the next keys typed are replayed in the tag of the pane it ran in (TagState.kind describe, its sequence in the view's scope_root and scope): the head says ` Keys` and the keys as key cells; a sequence that reaches a leaf shows ` Keys g ▸ d Def` and unrolls its level in the band with the leaf on the cursor and its doc beside it, for every root (g d, ] f, SPC l r, C-w h); Enter runs it, typed as its keys; a sequence nothing is bound to is struck, `runs nothing` (a first key that is no root's, `starts no sequence`); Backspace takes a key back, Esc goes to rest, any key after a sequence ended starts the next; docs/typ/builtins-tui.json and -gui.json have Keys (the tui's made by `zig build builtins-json`, the gui's line the same); TESTS: TagState.zig's describe-key (g d replayed with its level and doc in the band, ] f, SPC l r, g q struck, g e run by Enter) and window mode's level (C-w: its cell at once, its level after the delay, kept while h j k l move the outline, gone at Enter); core-test 1005 pass, 166 skip, 0 fail Co-Authored-By: Claude Opus 5.5 <[email protected]>
*---. integration: the tree to install (2026-11-23 evening): the Changes layer's ↵Gabriel Schneider4 days
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | second step, a window's size across an Upgrade, the boundaries' first no-panic fixes, and the builtins' documentation with Help: pardes-layers-9 (`rqvtuyou` on `rtmzywzn`, `xkvoyzwu`, `snmnxyqo`, its merge `yvzwukkn` of `main` = pardes-merge64, on rounds 8's two changes: the layer's lines are lines of the pane's text, read-only, nothing cut; the view from the middle; every way into a patch view; `Compare`'s pair ahead; the node keys and the indent on the file's text; a file with no layer paying nothing: 120 of 121 counts, the terminal's cell ruled (P81); the wire 34), pardes-upgrade-size (`xmowzmto`: the record's `size WxH`), pardes-no-panic-1 (`zwquloxl` and six under it: the fuzzes, `rows`' style, a client's row metrics, the tape's reader, a top-down BMP, a Grep row's numbers, vaxis's mouse bytes) and pardes-help-1 (`kvnnqktq` and twelve under it: a builtin's `///` is its documentation, a comptime table, `Help`, `Help <name>`, `Help <keys>`); RESOLVED HERE: core/builtins.zig, the `///` of `Changes` (help's text saying what the layer's second step made true: shown in every view of the pane; what the file no longer has stands as read-only lines of its text; a long description wraps) and of `Compare` (help's), and the two generated lists (docs/typ/builtins-tui.json, builtins-gui.json: `zig build builtins-json` for each platform); NOT in it: pardes-link-state (its wire history and `told_from` meet the layer's 34: link-3's merge), the jump list's equality and an Upgrade's outcome kept for each client (in their gate); its gate: .scratch/sketch/reorg/merge65, the numbers in PARDES.md Co-Authored-By: Claude Fable 5.2 <[email protected]> Claude-Session: https://claude.ai/code/session_016Y9MNBECMWcJD5pdS4SR6T
| | | * help: the process cases that show the Help pane read it as it is now, their ↵Gabriel Schneider4 days
| | | | | | | | | | | | | | | | | | | | | | | | | | | | goldens with them, builtins-gui.json regenerated, and Compare's row said in words: test/process/tty_boot.zig's `builtins` case reached the full index's words with no SPC path by `g e` and forty wheel ticks up (a count every builtin added moved); with each word's documentation under its row they are some 220 lines down, so the case searches for Look's row, `/^ +Look ` and Enter (the one line that starts with blanks and `Look `: the documentation's lines start with a letter), and B2 on Tutor in the SPC h group at its row now (24); the `leader` case waits for the SPC t group's first two rows (`SPC t a Ascii`, `SPC t c Changes`), the rest being below its 41 rows now; tty_terminals.zig's `ttyhelp` waits for `SPC ? Help`; the three goldens (test/snapshots/builtins.golden, leader.golden, ttyhelp.golden) updated a case at a time (`-- --update <case>`) and read: each Help capture now shows the rows with their documentation under them, the builtins case's query pane `/^ +Look` and its row `@p2:220:1`, Tutor opened by B2 from the index; docs/typ/builtins-gui.json regenerated (`text` in it, every doc the table's); Compare's second paragraph says its pair's row in words (the two points, how many changes lie between them, their first and last days) where the format `from..to N changes dates` lost a blank where the `///` wrapped; docs/typ/builtins-tui.json with it; the tui suites on the tree before this change's Compare edit: core-test 942/1108 (166 skipped), shell-test 1150/1153 (3 skipped), pane-test 182/183 (1 skipped), behaviour-test 277/277 and `-- --replay` 20 seeds of 70 steps 0 failures, term-test 17/17, kitty-test 45/45, process-test 0 of 146 failed (2 skipped), Debug, load 3.6-10; `zig build book` builds (128/128), its glossary each word's whole documentation; on this change: the frame and perf gate vs tree6 (`gpu/help1-g`, 1,648 s): 77 frames, 0 differ, gui unit-test 1748/1752 (no failure the base has not), perfab PASS (pictures identical in 10 runs, corpus2x -0.002%), perfops 120 of 121 within 0.1%, the one over the base's own (`open on small` +0.171%, the base's table +0.167%); the cross-builds (macOS, macOS aarch64, FreeBSD) build; the base's own counts here: core-test 941/1107, shell-test 1149/1152 Co-Authored-By: Claude Opus <[email protected]> Claude-Session: https://claude.ai/code/session_016Y9MNBECMWcJD5pdS4SR6T
| | | * help: the rest of the builtins documented for a user (item 5's eighth group: ↵Gabriel Schneider4 days
| | | | | | | | | | | | | | | | | | | | | | | | | | | | `NextColor`, `Themes`, `ThemeFile`, `DumpThemes`, `Fonts`, `TreeContext`, `Palette`, `Ascii`, the five clipboard words, `Tutor`, `DumpConfig`, `LocationsConfig`, `Messages`, `Mini`, `Back`, `Forward`, `Last`, `Jumplist`, `Edit`, `Undo`, `Redo`; `Help`, `Config`, `Build`, `Changelog`, `Addon`, `Petscii`, `Incl` and `Plumb` as the earlier changes wrote them), each sentence checked against its run (core/builtins.zig; core/Output.zig `openThemes`, `fontsListed`; core/locations.zig `Config.parse`; core/mini.zig `open`; core/edit.zig `clipYank`; core/sam_edit.zig's list of what is left out of sam): Themes and Fonts (each a `Theme <name>`, `Font <name>` line to run), ThemeFile and DumpThemes (each names the other), TreeContext, Palette and Ascii (`on`/`off`, `commodore`/`terminal`, bare flips; was lower-case fragments, "the C64 palette or the terminal's own 16"), ClipYank (every cursor's selection, joined; an image's or a PDF's selection), DumpConfig, LocationsConfig (its four fields as typed; bare, +LocationsConfig), Mini (`Mini notes.txt`; drawn once, again at the next Mini), Back (a closed file's place opens it again), Last (with none, the pane beside), Jumplist (+Jumps), Edit (`Edit ,s/old/new/g`; what of sam's is left out), Undo and Redo; docs/typ/builtins-tui.json regenerated Co-Authored-By: Claude Opus <[email protected]> Claude-Session: https://claude.ai/code/session_016Y9MNBECMWcJD5pdS4SR6T
| | | * help: the language words documented for a user (item 5's sixth group: `Def`, ↵Gabriel Schneider4 days
| | | | | | | | | | | | | | | | | | | | | | | | | | | | `Refs`, `Hover`, `CodeAction`, `SelectRefs`, `Symbols`, `Diagnostics`, `WsDiagnostics`, `Index`, `Callstack`, `Callers`, `Callees`, `Supertypes`, `Subtypes`, `Rename`, `WsSymbols`, `Lspinfo`, `Lspwhy`), each sentence checked against its run (core/builtins.zig: each is `lspRequest` of a kind; core/Output.zig `traits`: where each kind's answer goes, +Search, +Hover, +Lsp, +Callstack, and which kinds jump on one answer) and the reference's paragraph on the language server's words and the guide's "Call hierarchy": Def and Refs (with a 2-1 chord's selection, at its occurrence nearest the cursor; one answer a jump; `g d`, `g r`), Hover, CodeAction, Symbols, Diagnostics (`] d`, `[ d`, `] D`, `[ D`), WsDiagnostics and WsSymbols (in a +Search; bare asks), Index (what it writes, and that the language words ask the nearest index.scip first), Callstack (the tree, outermost first, its places and signatures, tests last, `↻`, CallstackDepth, `g c`: the Help pane's paragraph "Callstack: static caller chains, with signatures and clickable call sites. Callers / Callees: one direction at a time." deleted in item 3 is said here and in Callers' and Callees' "one level up/down"), Supertypes and Subtypes (one answer a jump), Rename (bare asks; in this file at once, saying how many; across files a +Search of its edits, nothing changed), Lspinfo, Lspwhy; docs/typ/builtins-tui.json regenerated Co-Authored-By: Claude Opus <[email protected]> Claude-Session: https://claude.ai/code/session_016Y9MNBECMWcJD5pdS4SR6T
| | | * help: the words of terminals and commands documented for a user (item 5's ↵Gabriel Schneider4 days
| | | | | | | | | | | | | | | | | | | | | | | | | | | | fifth group: `Term`, `Kill`, `Filter`, `Repl`, `Mount`, `Unmount`, `Msg`), each sentence checked against its run (core/builtins.zig, core/exec.zig `spawnTty`): Term (below this pane, in its directory, raw at once; `Term fish` as the tag word `Term+fish`; a shell or a directory that is not there said; was: two blocks, "A shell in the calling pane's directory ... On every pane's tagline: the fast path ..." then "A terminal below the caller ..."), Kill (the lines pardes typed and its command panes; a command pane's whole command, a terminal's foreground job, never its shell), Filter, Repl (`Repl python`, `Repl -`, bare; the language as a code fence names it; what is typed into it and what stays a command), Mount (`Mount <name> <dial>`, the dial's four forms; one that cannot be reached is said and not kept), Unmount, Msg; docs/typ/builtins-tui.json regenerated Co-Authored-By: Claude Opus <[email protected]> Claude-Session: https://claude.ai/code/session_016Y9MNBECMWcJD5pdS4SR6T
| | | * help: the session words documented for a user (item 5's fourth group: ↵Gabriel Schneider4 days
| | | | | | | | | | | | | | | | | | | | | | | | | | | | `Exit`, `Restore`, `Dump`, `Detach`, `Adopt`, `Upgrade`, `History`), each sentence checked against its run (core/builtins.zig `warnModifiedIn`, `Restore`, `Dump`; core/Core.zig `endSession`; core/dump.zig `dumpTo`, `restoreFile`, `dumpExit`; core/Output.zig `openHistory`): Exit (+Unsaved lists what it would lose and the notice counts it; again, nothing edited since, it quits; on the way out the panes go to the state file, for History and Restore), Restore (a label, History's; a file, a path or a name in the DumpDir or the directory pardes runs in; bare, the last this session made, else the newest; a file that is no dump said before the unsaved-text question), Dump (`Dump export <path>`, `~`; the workspace tag's `Restore <path>` word after it), Detach, Adopt and Upgrade (and what each says when it cannot), History (+History: a `Restore <label>` line a dump, its date, size and pane count, the panes' names under it; B2 on the Restore, or a Look at its line); docs/typ/builtins-tui.json regenerated Co-Authored-By: Claude Opus <[email protected]> Claude-Session: https://claude.ai/code/session_016Y9MNBECMWcJD5pdS4SR6T
| | | * help: the words of panes and columns documented for a user (item 5's third ↵Gabriel Schneider4 days
| | | | | | | | | | | | | | | | | | | | | | | | | | | | group: `New`, `Newcol`, `Del`, `DelAbove`, `DelBelow`, `Delcol`, `Joincol`, `Collapse`, `Zerox`, `Get`, `Save`, `Mode`, `Togglettymode`, `Left`, `Down`, `Up`, `Right`; `Follow`, `Unfollow`, `Undock`, `Window` and `Putall` as the table's change wrote them), each sentence checked against its run (core/builtins.zig, core/layout.zig `newColumn` and `placeNew`, core/keys.zig `cycleMode` and `toggleTty`, core/exec.zig `saveTo`): New (it takes the keyboard; Save asks it for a path; past 100 bytes Exit, Del and Restore ask about it), Newcol (the next pane made there goes in it; refused, saying why), Del (`Del k`, `Del j`, the question on the notice band from the keyboard between two panes, a docked pane's rows to the pane it answers for, the refusal once over unsaved text), DelAbove and DelBelow (as `Del k`, `Del j`), Delcol (the tag's column, else the pane's; refused once), Joincol (when it is refused), Collapse, Zerox (only a file's pane), Get (`Get <file>`; a directory's pane read again), Save (`Save <path>`; a pane with no file of its own asks; a revision is written only to a path; the warning once over a file changed on disk), Mode (normal, insert, and in a terminal raw, then normal), Togglettymode, the four moves; was: Get and Zerox opening on "acme's"; docs/typ/builtins-tui.json regenerated Co-Authored-By: Claude Opus <[email protected]> Claude-Session: https://claude.ai/code/session_016Y9MNBECMWcJD5pdS4SR6T
| | | * help: the words of looking and finding documented for a user (item 5's ↵Gabriel Schneider4 days
| | | | | | | | | | | | | | | | | | | | | | | | | | | | second group: `Look`, `Exec`, `Find`, `Grep`, `Search`, `More`, `Panes`, `Recent`, `LookNext`, `LookPrev`), each sentence checked against its run (core/look.zig `lookAt` and `lookWalk`, core/exec.zig `executeFrom`, core/builtins.zig `search`, core/Query.zig `open`, core/Stream.zig `moreFor`) and the guide's chapters "Look" and "Search": Look (its argument's address forms, where a relative path is found, bare: the selection, else what is under the cursor), Exec (a builtin, else the line: typed into the terminal it runs from at an idle, empty prompt, else a command pane, `$SHELL -c`, `exit N`, Kill; run by name never a REPL's), Find and Grep (a query pane under the pane, line 1 the word and the argument; with a word listed, the keyboard left where it was, bare typed into; Find fuzzy over names, Grep the text as it is; 2000 lines and More; a script's search that finds nothing fails, `not found`), Search (line 1's first word names the source, `/` when none does; `SPC b b`, `SPC s s`, `SPC /`), More, Panes (open, then closed this session; Enter brings one back), Recent, LookNext and LookPrev (what a Look would open, walked through the panes, the keyboard with it); was: Grep "Find's sibling ... on the disk engine's worker", Exec with no word of where a command's output goes; docs/typ/builtins-tui.json regenerated Co-Authored-By: Claude Opus <[email protected]> Claude-Session: https://claude.ai/code/session_016Y9MNBECMWcJD5pdS4SR6T
| | | * help: the change layers' words and the patches' documented for a user (item ↵Gabriel Schneider4 days
| | | | | | | | | | | | | | | | | | | | | | | | | | | | 5's first group: `Changes`, `Compare`, `At`, `Churn`, `Diff`, `Syntax`), each sentence checked against its run (core/jj.zig `pinWord`, `word`, `churnWord`, core/hunks.zig `word`) and the guide's chapter "Changes on the source view": the five were written whole in the table's change (their first sentences were over the bound: Changes' was 332 bytes), and are as they read there: Changes (its revset's changes on a file's pane or a revision's, one set a pane, bare hidden or shown, `@` with none pinned; lanes, the rows of what was taken away, a description after a change's last line ending its lane's arrow; `] g` `[ g`; B3 on a description's id is `Diff <id> <path>:<line>`), Compare (two points or more in order, each one revision, a pair one change however many lie between, its row `from..to N changes dates`), At (`path@rev` beside the file; in such a pane another revision in its place, bare the file), Churn (a revset or a span of time back from now; a heat cell and a strip; bare hidden or shown, the whole history with none counted), Diff (bare on a diff or a +Diff; a file, a commit hash, a jj change with a place, two points with `..`; what a hunk stands under; `SPC j n`/`p`); here Syntax: "Turn this text's syntax colours off in this view, or on again.", its code note (the ink layer) a `//` line in the struct; these words are being changed NOW by the change layers' line (ws-tilde: the layer's lines as the pane's read-only text, the view from the middle right): their documentation says what they do today and is to be brought up to date at that line's merge; docs/typ/builtins-tui.json regenerated Co-Authored-By: Claude Opus <[email protected]> Claude-Session: https://claude.ai/code/session_016Y9MNBECMWcJD5pdS4SR6T
| | | * help: bare `Help` lists every builtin of this view as before, a row each ↵Gabriel Schneider4 days
| | | | | | | | | | | | | | | | | | | | | | | | | | | | (its keys, its name, its other shortcuts), now with its whole documentation under it, a line a paragraph, and a blank line after; `Help <name>` shows that one alone, and `Help <keys>` the builtins under SPC and those keys (the user's words of 2026-11-23: "the Help command wiht no arguments should list all builtins like now but with their larger-ish documentation, and the Help builtin with arguments should show the documentation specific for that builtin only"): Help took no argument, so `Help l` ran as a shell command and only `SPC l ?` opened a group; now `Help` takes one (core/builtins.zig `Help`): a builtin's name as the registry takes it, or an addon's word, opens its row, its documentation and what the list does not say, a line each (core/Output.zig `writeWordHelp`: its keys spelled out, its argument, a setting's values (`Settings.takes`), what it acts on and so which ctl takes it, a window's word in a terminal, and `pardes do <Word> [ARG]`); SPC keys open that group (`openHelp`, as `SPC <keys> ?` does); a word that is neither fails, `Help: <word>: no such builtin, nor SPC keys`, the +Help left as it was; every Help fills the one +Help (openRead, as before: a second replaces its text); the header is one paragraph, wrapped by the pane, not three lines broken for a 40-column pane; an addon's word's row puts its name in the builtins' name column, `(addon <kind>)` after it and its doc under it; the paragraph "Callstack: static caller chains, ..." is gone, Callstack's and Callers' documentation say it; tests: test/behaviour/builtins.zig "builtins: Help holds every builtin with its whole documentation, `Help <name>` that one's alone, and B2 on a builtin's name in it runs it" (through 9P alone: for every word of /commands, `Help <word>`'s documentation is in bare Help's text whole under its row, begins with its /commands summary and holds no other word's; `Help diff` refused; `Help c` the column group; B2 on `Newcol` in `Help Newcol`'s row adds a column), core/Output.zig's full-Help test (rows, each one's paragraphs, the language keys), test/behaviour/addons.zig's addon row, test/panes.zig's Tutor click finds its row by the pane's wrap map (the documentation above it wraps), test/process/tty_boot.zig's waits for the new header; docs/typ/builtins-tui.json regenerated (Help takes an argument); core-test (Help) 12/12, behaviour-test (Help) 4/4, pane-test (Help) 4/4, Debug tui; the whole suites run on item 4's change, and the process-test goldens the Help pane shows change in the last change (the full index's scroll is set once the documentation is written) Co-Authored-By: Claude Opus <[email protected]> Claude-Session: https://claude.ai/code/session_016Y9MNBECMWcJD5pdS4SR6T
| | | * help: a builtin's documentation is the `///` block right above its `pub ↵Gabriel Schneider4 days
| | |/ | | | | | | | | | | | | | | | | | | const <Word> = struct`, read at compile time into one table, `registry.doc` (its summary, the first sentence, and all of it, a line a paragraph), and every reader takes the table (the user's words of 2026-11-23: "the builtins should have their documentation in code somewhere (you may use comptime to extract that) near their definitions"): the summary was found at run time, each word's by a scan of the embedded source for `\npub const <Word> = struct` (core/ninep/ctl.zig `summaryOf`), `stripCitations` cutting `(exec.c:892)` and the like out of it: both are deleted; THE CONVENTION is written at the top of core/builtins.zig (the `///` above a builtin is what a user reads in Help, `pardes help`, /commands, `pardes words` and the glossary; no file names, no "registration", no history; notes for the code's reader are `//` lines inside the struct) and the compiler holds what it can read of it: a builtin with no `///` block, a first sentence over `summary_max` (100 bytes) or a `///` naming a .zig file fails the build, naming the builtin (one pass over the source, `registry.docs`; a setting's documentation is its `Setting.doc`, held the same); 35 builtins' docs cut to it (a first sentence over 100 bytes split at a sentence, acme and source citations into `//` notes in the struct), and DumpDir's setting doc (core/config.zig) the same; /commands prints each word's summary whole (no clip: the bound holds it); the docs' JSON (core/builtins_json.zig) takes `doc` from the table and gains `text`, the whole documentation, beside it (an addon's word: its one `.doc` in both); docs/typ/builtins-tui.json regenerated (`zig build builtins-json -Dplatform=tui`; builtins-gui.json in the change that runs the window's gates); tests: builtins.zig "a builtin's documentation is the whole `///` block above it, a line a paragraph, its summary first", ctl.zig "every word's /commands description is its documentation's summary, a line" (replacing the source-scanning one); core-test 942/1108 (166 skipped; the base measures 941/1107 here, see the report), Debug, tui, load 2-7 Co-Authored-By: Claude Opus <[email protected]> Claude-Session: https://claude.ai/code/session_016Y9MNBECMWcJD5pdS4SR6T
* | | merge: the Changes layer as the pane's read-only text (pardes-m64-base: ↵Gabriel Schneider4 days
|\ \ \ | | |/ | |/| | | | | | | | | | | | | round 8's two changes on pardes-merge63c) and Compare (pardes-merge64: `ntlsszul`, `qkksrtsn`), resolved by function: `pinWord` (Compare's road for both words) keeps round 8's `setLanes` (the layer the pane's: shown or hidden in every view of it), `pinAnswer` parses the file's text (`File.fileText`) and names its kind's word in every notice, `describe` gives a pair its row whole (no author; `fitted` gone with round 8's cut) and returns where an author would start, `isPair` kept beside it, `lookGhost` reads a description line as round 8 does (a buffer line, `readOnlyRow`) and opens a pair's patch by its row's first word (`from..to`), hunks.zig `word` tries a pair then a change (`diffChange(.., false)`) and keeps round 8's revset word at no such file, its doc saying both; round 8's rule made Compare's (the coordinator's 15:10: "a pair is ahead when its FROM point's text is the shown one"): `pairRuns` finds where the revision shown stands among the points (an empty `jj diff --from POINT --to REV`: the last point first, the one diff already run; then from the first), marks every pair from there on `a` (pinned, ahead) or `d`, and adds the step from the last point to the revision shown only when no point's text is the shown one; `pairOwners` skips a step ahead (it wrote none of the shown lines); the test marked ROUND 8 ("Compare in a revision's pane at its middle point ...") now wants the second pair ahead (`d();` the text's, going; `d2();` and `e();` read-only lines after it; its row after them) and passes; the first Compare test's `]g` wants each run's first line, a layer's line among them (rows 2 and 6, where ghost rows were no lines: 2 and 3); the guide's *Points.* paragraph says a middle point's pairs as built, the cheatsheet's and the guide's table rows both sides', `pinWord`'s and Compare's docs (builtins.zig, both JSON lists) "in every view of it"; core-test filtered on jj (Debug tui): 54/54 with the next changes' tests left out Co-Authored-By: Claude Opus <[email protected]> Claude-Session: https://claude.ai/code/session_016Y9MNBECMWcJD5pdS4SR6T
| * | changes layer: `Compare <rev> <rev> [<rev> ...]`, the user's three-way view ↵Gabriel Schneider4 days
| |/ | | | | | | | | | | | | compressed: between each two consecutive points of the history ONE change, the file's whole difference between them however many commits lie between (the user, 2026-11-23, of `Changes (9ef..ea6) | (ea6..master@origin)`'s six lanes on cpi.rs: "they should be compressed so its only two changes"), each a pin of the layer as a commit is, so every part of the layer and what round 8 does to pins serves it with no second implementation: TESTS FIRST (core/jj.zig, a throwaway jj repository, the pane's surface, terminal and window): three points on one line of history (`Compare @----- @--- @-` over five commits) are two pins, each pair's row `from..to 2 changes day` after its last line, who wrote each line (b2 the first pair, d2 and e the second), the rows as the view shows them with the lines each took away where they stood and no number on the layer's, each pair's lane its own colour, `]g`, bare `Compare` hiding and showing the set without asking jj, `Changes` after it replacing it and it `Changes`'; two points neither the other's ancestor (two branches: `1 change, 1 undone`, each changed line's old text above it, the patch's `+` and `-` lines); a revision's pane at the middle point (`At @---`: the first pair behind, as at the last; the second drawn as round 7 draws a change ahead, as behind it: the test's want is marked for round 8's merge); one point, bare with nothing pinned, a point naming two commits (jj's words, `more than one revision`) and an unknown one refused, nothing pinned; a B3 on a pair's row's first word opening its patch (`Compare from..to`, the changes between newest first each signed, the hunks, the cursor on the pair's last line, typed the same); a client replaying it equal and its pairs crossing a join whole (`loadsAsSession`); on a worker, the word returning at once and the answer landing as one input; each failing on the base (no word `Compare`); THE CHANGE: the struct `Ask` (its `Kind` gains `compare`, and `word`, each kind's name in its notices: a rename is that line and the builtin's) and two functions, `answer` (one line: a Compare's runs are `pairsAnswer`'s) and `parse` (one line: who wrote each line from the pairs' hunks, `pairOwners`, where a Changes reads jj's annotation); `pairsAnswer`/`pairRuns` answer in the shape a `Changes` gets: the clock, for each pair an entry line as `logTemplate` writes one (its id the first point's change, its title the pair's row from one `jj log` a pair: `f`/`t` the points, `+` a change in the second not the first, `-` the other way, the author's day) then `jj diff --from --to --git --context=0 -- FILE` (an empty difference: an entry not pinned), then from the last point to the revision shown an entry not pinned whose hunks carry the places (`carried`, unchanged), and jj's text of the revision shown (`jj file show`, lined up with the pane's as the annotation's text is); `pairOwners` walks that text back through the steps' hunks, the newest step a line's (a carrier's nobody's), and `provenance`'s last lines are `linedUp`, shared; `describe` gives a pair its row (`isPair`: a title starting with its id and `..`), `lookGhost` passes a pair row's first word whole (`Diff from..to path:line`), `diffPair` (hunks.zig's `Diff` before `diffChange`) is that patch: `jj diff --from --to --git [-- path]` under `Compare from..to` and the changes between (no plumbing rule for `x..y`: a `matches` rule compiles its regexp at every plumb, and an open plumbs: it cost every open about 9,100 instructions in the perf gate, so a Look on `from..to` in running text searches), `standAt` is `diffChange`'s cursor placing, shared; `changesWord`'s body is `pinWord(kind)` for both words (bare as bare Changes; fewer than two points refused in words), `ask`/`receive`/`pinAnswer` name the kind's word; config.zig `Compare` has no leader path (it needs its points); builtins.zig, both builtins lists; NOT TOUCHED: `File.fillBody`, the ghosts' geometry, `ghostsOf`, `carried`, `nest`, `hunksOf`, the paint; nothing new in any replicated struct (a pair is a `Pin`, its row in `ghost_text`, its points in `Changes.revset`, all made by `parse` in every process from the one input): wire 31; THE GATE (ws-svc, loads 2-8): tui core-test 943/1109 (166 skipped) and shell-test 1151/1154 (3 skipped) in Debug and in ReleaseSafe (the base, my first run: 936/1102 and 1144/1147; ReleaseSafe run under bin/sig: from a background chain without it the four host_io Ctrl-C tests fail, as the rules say), behaviour-test and --replay 276/276 (20 seeds, 0 failures), test/daemon.py plain and --clients on the Debug install, the user's case run (agave's cpi.rs, `Compare 9ef6312813 ea63317630 master@origin`: two lanes, rows `ozlwptts..pyquzokk 4 changes, 1 undone 2026-09-25..2026-11-03` and `pyquzokk..rmrksrzs 2 changes 2026-11-05..2026-11-09`, jj's answer on the worker in 1.5 s, agave's operation log untouched); the frame and perf gate against tree6 (gpu/cmp1-g2): 77/77 frames, gui unit-test 1748/1752 (no failure the base has not), perfab corpus2x +0.022% (noise 0.044%), perfops 33 of 121 over against tree6, exactly the base line's own 33 (the coordinator's gpu/merge63-g: body-appends +12.026%/+8.068%), and against that gate's candidate all 121 within 0.1% (largest client-key-down small +0.037%) Co-Authored-By: Claude Opus <[email protected]> Claude-Session: https://claude.ai/code/session_016Y9MNBECMWcJD5pdS4SR6T
* | the Changes layer from the middle, and every way into a patch view: in a ↵Gabriel Schneider4 days
| | | | | | | | | | | | | | file at a revision a pinned change behind it (the revision or an ancestor) shows what it took away where it stood, and one ahead of it (a descendant) shows the lines it will write as read-only lines, green, where they will stand, the lines it will take away the revision's own text, red across, going; a change that is neither (a sibling) is left out (round 7's evidence, `layer-gone/mid2.py`: a deleted line's ghost a line late there, a change ahead drawn as behind); the causes: `carried` moved a pin's place through every later change's hunks, those ahead of the shown revision too, so jj's log now marks each change behind (`::REV`) or ahead (`logTemplate`: `p`/`c` behind, `a`/`d` ahead; the query takes the revset's changes behind or ahead and the unpinned ones between) and `carried` passes only the changes behind (`Hunk.ahead`); a pin ahead's places are carried back from its parent through the changes ahead before it (`carriedBack`), the lines it takes away marked (`Line.going`, its lane beside them: `going`), the lines it writes the layer's (`Ghost.Kind.added`), its description after them; and "a changed line's old text below the new where the guide says above": a replaced line the patch view's alignment does not pair was a line taken away standing after what was written in its place: now a diff's order, what went right above what came (lines taken away after a run's last changed line right after its new text; with none changed, before the lines written in their place), in the file's own pane and from the middle alike; Churn counts no change ahead; `Diff` with a word that names no file, in a jj repository, takes it for a revision (`Diff @-`, a bookmark): its patch with jj show's header (`jj.diffChange(..., any)`), the one way in that had none (round 7's table; `jj diff` prints no header, so its paged text has none to keep; a header was never dropped on purpose in core/hunks.zig's and core/diff.zig's history); the guide's chapter (the layer the pane's, its lines text and read-only, what an edit there says, what reads the file without them, from the middle, `Diff @-`), the cheatsheet's line, the `Changes` builtin's doc and both JSON lists; tests (core/jj.zig): "from the middle: in a revision's pane a pin behind it ... a pin ahead of it ..." (terminal and window), "a line replaced by one too unlike it ... a diff's order ...", "Diff with a revision jj takes (`@-`, a bookmark) ..."; not gated yet: jj's 44 tests pass (core-test filtered), the book builds Co-Authored-By: Claude Opus <[email protected]> Claude-Session: https://claude.ai/code/session_016Y9MNBECMWcJD5pdS4SR6T
* | the Changes layer's lines are the pane's text, read-only, and nothing is cut ↵Gabriel Schneider4 days
|/ | | | | | | (the user's rulings of 2026-11-23: "all text is regular text", "the ghost line should be regular text too ... but I cant edit them", "don't cut them ... break them following the regular softwrap"; the coordinator's model P71): while a pane's layer is shown, a line a change took away, a changed line's old text and each change's description (`id title author age`, its whole title and its whole author) are lines of the pane's buffer, and the buffer carries their places (`File.State.read_only`, `File.ReadOnly`, whose layer `File.State.layer`), so every motion, selection, search, text object, count, yank, B2 and B3 works on them because they are text, and they wrap by the pane's soft wrap; ONE check where every edit passes (`File.edit`'s `readOnly`: a file at a revision is its whole text, the layer's lines each one; an edit that changes a byte of one, puts any in at its start or inside it, or leaves one on the end of the line above is refused whole, in words on the notice line), edit.zig's second revision check deleted; THE FILE'S TEXT by one function (`File.fileText`, `FileParts`, `fileHash`, `fileEql`, `fileLen`: the buffer itself with no layer, a file with none pays nothing) and two maps (`fileOffset`/`bufferOffset`, `fileRow`/`bufferRow`: a place in one of the layer's lines is after the file line above it), read by every sink: Save and Save-as (Effect.zig), `body`, `addr`, `data`, `xdata`, `sel` and `dot` over 9P (ninep/pane.zig `bodyOf` is the file's text, `fileDot`/`setFileDot`, a 9P write is `File.replaceFile`, a read of a pane with the layer a copy, never a region of the buffer), the dirty checks, Get and a disk reread (`File.load`: the layer out and back), Edit (sam over the file's text, its result a load, its `w` the file's), the language server (its source, the offset asked at, its edits, its places), the syntax parse (`highlightLayered`: the file's text parsed, its colours laid around the layer's lines; context declarations; a worker's parse; query rows' colours and line numbers), jj's own provenance and churn, `Look :N` and `path:N` (the file's line N), the undo journal (an edit journaled in the file's offsets, an undo taken with the layer out; `Journal.record` takes the removed bytes); the layer in and out by `jj.showLayer`/`jj.hideLayer` through `File.relayer` (an edit of kind `.layer` that nothing reading the file hears of, every view's cursor, selection and top line kept by the file's offsets); the layer is the pane's: shown in every view of it and of its twins (`jj.setLanes`); when the editor's whole new text's shortest splice runs into a read-only line where an equal splice does not, that one is taken (`File.clearOfReadOnly`, never back across a read-only line); deleted: `File.fillBody`'s ghost branch, `File.hasGhosts`, `File.bodyWidth`, `jj.fitted`, `jj.row_max`, `jj.showGhosts`, `jj.wordAt`, `Pane.ghosts`/`ghost_text` and `wrapAt`'s `ghost`, Core's per-step sync; the gutter numbers the file's lines; `]g`/`[g` land on a layer's line as on any; the arrow keeps the user's bend (`╰─→`, as nmwnvrow); WIRE 34 (a file pane's `read_only` and `layer`, a description ghost's `author` in the dump and the digest; a clean file's text is dumped while the layer's lines are in its buffer; a dump of 31 loads, a pane whose view showed the layer showing it again: `jj.loaded`); tests (core/jj.zig): the layer's lines as text, read-only (terminal and window), THE FILE'S TEXT (every sink with the layer off and on, byte for byte), the undo across hide and show, 9P in the file's offsets, a client replaying them and a join loading them, a wire-31 dump, a description whole and wrapped in 50 columns, and the old tests of the per-view rows made the pane's; its gate (.scratch/sketch/reorg/pardes-layers-8/g8a, loads 3-7): core-test 942/1108 (166 skipped; the base 936/1102) and shell-test 1150/1153 (3 skipped; the base 1144/1147) in Debug and in ReleaseSafe, behaviour-test 276/276 and --replay, pane-test 182/183, the soak --clients 5 (diverged 0, unequal 0, unlisted 0 at 30/80/207 ms, the corpus 22 of 22, no leak), the gui unit-test 1747/1751 (the known BaselineHarnessMismatch alone), the frame gate 77/77 frames, 0 differ; the perf counts against tree6 40 of 121 over 0.1% where the base's own gate (merge63-g) has 33: against the base this adds body-appends +0.42%, client-key-down +0.18%, terminal on all +0.155%, client-delete-undo +0.14%, deep-sel +0.12%, client-edit-char +0.11% (cause not found yet) Co-Authored-By: Claude Opus <[email protected]> Claude-Session: https://claude.ai/code/session_016Y9MNBECMWcJD5pdS4SR6T
* layers: `Churn [window]` (slice 7): for each declaration of a file's pane ↵Gabriel Schneider6 days
| | | | | | | (tree-sitter's innermost, as TreeContext finds them: `f.context.declarations`), how many of the window's changes touched it, shown in this view as a heat lane after the line number (a half block, before the changes' lanes, which stay next to the text they mark: `File.Layers.heat`, one cell) and as a strip by the scroll thumb (a rail row each, the hottest of its lines: the rail's second cell in a terminal, `Surface.heat` for a window, drawn beside the track by gui.zig's paneDecor), smooth from the line numbers' grey to the theme's red (`jj.themeRed`) in Oklab on a log scale of the count against the file's hottest (`heatColour`); the window a revset, or a span of time back from now (`3d`, `2w`, `6m`, `1y`: `::(REV) & author_date(after:"N units ago")`), bare shown here or not and with none counted yet the file's whole history `::(REV)`; jj's data as `Changes`' is: one `jj log` of the window and the changes after it to the shown revision with their hunks (the same query and marks, `Ask.kind` `.churn`) and `jj file show` of the revision (to line the counts up with the pane's text, `Moved.of`), on the worker, its raw answer an input; kept raw in the session's jj state (`jj.Heat`, `Session.heats`) until the text's declarations are there, then counted in every process (`heatOf`, `parsed`): a big file's parse is a worker's (`Stream.parseFor`, its landing tells `jj.parsed`), never the loop's (counted on the loop, core/replica.zig held a Debug loop 1,211 ms; now its longest hold is 10.7 ms; the counting itself 1 ms); a change counts once a declaration, a hunk's lines carried to the shown revision through the later changes' hunks; the counts ride with the lines through edits (`spliceValues`, shared with `Changes`' lines); a later ask of the other kind no longer drops an answer (the stale check is per kind); tests: f three changes, g two: `3 3 3 0 2 2 2`, the cell red on f, `mixOklab(grey, red, ln 3 / ln 4)` on g, none on the blank line, the strip's first row red, in a terminal and a window, bare off and on without asking jj; `@--::@` one each, `1w` all, a refusal in jj's words; on a worker, counted when the worker's parse lands, the client equal; a line deleted takes its count, the client and digest equal; core-test 912/1072 (160 skipped), shell-test 1114/1117 (3 skipped) Co-Authored-By: Claude Opus <[email protected]> Claude-Session: https://claude.ai/code/session_016Y9MNBECMWcJD5pdS4SR6T
* layers: ghost rows (slice 5): with `Changes` shown, what the file no longer ↵Gabriel Schneider6 days
| | | | | | | has is drawn where it stood, rows of their own with no number and dimmer ink (`jj.Ghost`, kept with jj's answers, `Changes.ghosts` in `at` order, their text in `Changes.ghost_text` beside the hunks' removed lines): a line a pinned change took away whole, red across, in the line numbers' grey, placed by carrying the place it was taken from through the later pins' hunks into the shown text (`jj.carried`), and each pin's description after its last line (`id title author age`, the id's first four letters, the author's first name, the age short with no "ago", in its lane's colour, the author and age grey; the age is of the wall clock jj's answer carries, read where jj runs, an input as jj's answer is), the descriptions of blocks that close just above a place first and newest first, then the lines taken away there, then the descriptions of pins that have only those; a ghost row carries its own pin's lane and those of the line above that run on below it or close at or after it (`jj.ghostLanes`); the view's geometry takes the rows (`File.fillBody`'s ghosted instance, only while this view shows the changes and there are some: a ghost row's `wrap_col` is `-1 - ` its index, its `wrap_line` the line it stands before; `Pane.ghosts`/`ghost_text`, derived, set by `jj.showGhosts` each step while shown and as an answer lands), so the rows below move down in this view alone (another view with the lanes hidden is unmoved: tested); `wrapAt` says `ghost` and answers the line below at its start, so the cursor steps over them (`j` from the line above lands on the line below), selection, search hits, places and tables do not paint them, the line numbers skip them, a page ends before one; a Look (B3) on one opens its line in the revision it came from (`path@id-:line` for a line taken away, `path@id:line` for a description: `jj.lookGhost`); `]g` and `[g` (helix's, free in pardes's map: `goto_change`) go to the next and the previous change's first line (`jj.nextChange`); edits carry them as the lines' values (`jj.splice`: a ghost row stands before the line it stood before; one before a line taken out stands before the line after what took its place); in a terminal and in a window (tested both); round 3's lanes test reads each line's row through the view's map; tests: what the rows show (text, numbers, lanes by pin, grounds, inks) in both frontends and the other view unmoved; the cursor, the selection, `]g`/`[g` and a Look; the rows riding through two deletions with a client replaying them equal Co-Authored-By: Claude Opus <[email protected]> Claude-Session: https://claude.ai/code/session_016Y9MNBECMWcJD5pdS4SR6T
* layers: with `Changes` off nothing is paid (P45): the revset and jj's ↵Gabriel Schneider6 days
| | | | | | | answers are the session's, a list by pane serial (`Pardes.changes`, `jj.answered`; `jj.forget` at the pane's end), no longer a field of every pane, and a view holds only whether it shows them (`File.Layers.lanes`, the cells their lanes take, hashed with `ink` in one update), so a second view's `Changes other` shows the new set in both and its bare `Changes` hides them in its own alone (bare with none pinned yet is `@`); measured first, per operation against gpu/tree3 (a gui ReleaseFast pardes-perf, perfops's way of counting: reorg/pardes-layers-4/perf): merge50 +0.005% a client key, round 3 +0.110%, a packed one-byte `Layers` +0.391% (a packed field cost the walks more), a plain two-byte one +0.152%, the per-pane field gone +0.118%, the gutter's three reads of the lanes taken out +0.066% with body-appends from +0.189% to -0.004%: what paid was fillBody's line number, formatted for every row of every geometry pass (no `dst`, a hundred a frame) and thrown away, whose row loop moved with any value added to it: it is now written only into a `dst` (client key +0.017%, deep-sel +0.002%, render -0.021%, body-appends -1.555%); and `jj.of` (round 1's) gave a revision's name as a slice of a by-value copy of the pane's Output, dangling once it returned (jj told "Non-UTF-8 argument" for `Changes` in a revision's pane in a window build): the pane's own now; tests: the pinned changes are the pane's, shown in a view by its own bit (a second view's revset shows in both, its bare Changes hides them there alone), the two of a terminal's cells said so (`.windowed = false`); core-test 896/1056 (160 skipped), shell-test 1098/1101 (3 skipped), gui unit-test 1695/1699 (4 skipped); the frame and perf gate against tree3 (gpu/l4-g0): 77/77 frames, 0 differ, perfab corpus2x +0.005% (noise 0.058%), perfops 121 counts within 0.1% (largest terminal on all +0.082%) Co-Authored-By: Claude Opus <[email protected]> Claude-Session: https://claude.ai/code/session_016Y9MNBECMWcJD5pdS4SR6T
* layers: `Changes [revset]` pins a revset's changes on a file's pane in this ↵Gabriel Schneider6 days
| | | | | | | view (bare `@`, bare again off, another replaces; refusals in jj's words) and draws them: what jj says is asked in two recorded answers (Site.jj), `jj log -p --git --context=0` restricted to the file (the pins: id, author, time, the description's first line, and each one's diff, read with diff.zig's walk into hunks and the removed lines' text) and `jj file annotate` at the shown revision (which pin wrote each line), kept as flat arrays in the pane (Pane.changes: replicated, a late joiner has them in the dump, a client never runs jj) and worn by the view whose revset is File.Layers.revset; a pin's lane runs unbroken from a line it wrote to the next while every line between is a newer pin's, so lanes nest, the spine keeping its place and a nested change a level to the right on its rows only, three levels in a gutter the lanes widen (a window two cells, strips of a third of a cell with half that of air: Surface.lanes, drawn by the gui; a terminal three, a `▎` a level), coloured by the theme's accents but its green and red in hue order from the top, one within 15 degrees of the last kept skipped (doom one: magenta, blue, yellow), oldest first; a line a pin added whole (in a run it took away and wrote, past as many as it took away) is green across the line as a diff's added line; with Changes off nothing is drawn and the gutter is as it was; tests: the data through the pane (pins, lines, hunks, removed text, unpin, `@` touching nothing, a refusal), a client replaying it ends equal, the lanes and grounds of a three-deep stack in a terminal's cells and a window's strips; core-test 895/1055 (160 skipped), shell-test 1097/1100 Co-Authored-By: Claude Opus <[email protected]> Claude-Session: https://claude.ai/code/session_016Y9MNBECMWcJD5pdS4SR6T
* layers: a file at a revision: the address path@rev and path@rev:line, ↵Gabriel Schneider7 days
| | | | | | | resolved by a Look anywhere (a file really named so wins; the path must be a file), and At <rev> in a file's pane, open the file as jj has it at that revision in a pane named path@rev, coloured as its file (File.langPath), read-only (File.edit refuses a key's splice, edit.zig a whole text's; a bare Save says so); At in such a pane turns it to another revision in its place, bare it goes back to the file; what jj says is the session machine's: core/jj.zig runs it as a site of the step's tape (Site.jj: jj --ignore-working-copy file show, in the file's directory, the name a literal fileset), on an io of its own (the tape's spawns nothing: its allocator fails), its answer recorded, a replica replaying it and never running jj; jj's refusals in its words (At: Revision `x` doesn't exist, No such path, no jj); tests in a jj repository made in the test's directory: At's open, the read-only edits, the Look at a line, the turn in place, the refusals, and a client that replays the open of path@rev:2 ends with the session's digest; tui core-test 879/1037 (158 skipped); the tip gated whole: core-test 880/1038, shell-test 1080/1083, pane-test 183/184, behaviour-test 275/275 and --replay, process-test 0 of 145 failed, term 17/17, kitty 45/45, addons 5/5, consumer-test, both soaks diverged 0, unequal 0, unlisted 0, corpus through a client 22 scenes, daemon.py far, games, window-clients, clients x5, relink, launch, pair, gui, and --clients x2 on ReleaseSafe, macOS and FreeBSD cross-builds; daemon.py plain on ReleaseSafe times out at pair rows as main itself does (2 of 2 on main) Co-Authored-By: Claude Opus <[email protected]> Claude-Session: https://claude.ai/code/session_016Y9MNBECMWcJD5pdS4SR6T
* layers: the source view's painters a seam with nothing to see but one word: ↵Gabriel Schneider7 days
| | | | | | | File.Layers (core/File.zig, beside recolorSyntax), a pane's field that each view keeps its own (views.zig pane_fields), says which painters a file's body wears and writes down their order and places (1 the ink, tree-sitter's colour a code cell; 2 the patch, a diff's grounds, marker and changed words; next, ruled and not built: changes, a lane after the line number, green and red grounds, a changed line's words, ghost rows; churn, a heat lane and a strip by the scroll thumb), both still painted in recolorSyntax's one walk; Syntax (a tag word, SPC t h: SPC t s is the pdf addon's PdfSections, a ctl line) turns the ink off in this view and on again; the ink off is no style byte read at all (a test a cell, as a branch or a mask, cost the frame 0.1 to 0.5% of its instructions, 0.15 to 0.47% on the long line; a walk specialised at comptime for each state cost 0.5 to 3.4%: the gate measured all three), so in a patch Syntax takes its grounds too; File.zig's test draws a .zig text's first row with the ink, without it, in a second view that keeps its own, and with it again; tui core-test 876/1034 (158 skipped); the tip's gate: frames 77/77, the 121 counts within 0.1% of tree3 (largest +0.026%), perfab -0.013% Co-Authored-By: Claude Opus <[email protected]> Claude-Session: https://claude.ai/code/session_016Y9MNBECMWcJD5pdS4SR6T
* core, docs: the docking vocabulary, the family the rename of attached_to to ↵Gabriel Schneider7 days
| | | | | | | docked_to left (P37): layout.attachFrom -> layout.dockFrom (its five callers: Query.zig x2, Store.zig, its tests), testAttachment -> testDocking, Query.zig's local attached -> docked, the section "Attached panes" -> "Docked panes" (and the three comments that name it), and "attached", "attachment(s)", "unattached", "Attach new pane", "detaches it" where a pane is docked to a pane -> "docked", "docked pane(s)", "undocked", "Dock new pane", "undocks it", through core/layout.zig (two test names with it), core/Handover.zig, core/Store.zig, core/Query.zig, comments in core/panes.zig (4) and core/builtins.zig (2), docs/next-drag.md, docs/search-proto-converge.md and docs/next-daemon.md (1); every attach of a client to a session stays, as do the search prototype's name "attached" and its setting SearchPlace attached|column (docs/search-proto-converge.md:18, :134: names of the past) and the changelog's past entries; no behaviour changes; gate on the stack through this change and the docking vocabulary (load 4-32): tui core-test 871/1028 (157 skipped), shell-test 1070/1073, pane-test 183/184, term-test 17/17, kitty-test 45/45, behaviour-test 275/275 and --replay 275/275, consumer-test passes, addon-test 5/5, process-test 0 of 144 (tty boot: msg failed once at load 32 and passed alone), replicas --clients 5 and --bytes --clients 5: diverged 0, unequal 0, deltas wrong 0, quiet checks differed 0, unlisted stops 0, corpus 22 of 22, no leak; the semantics word a73794ff9e03f814 as on merge40; daemon.py --far, --games, --window-clients pass, plain fails 2 of 4 at "client C agrees with a shell's output" (a timeout), as merge40's build does 3 of 6; the macOS library (x86_64-linux, aarch64-macos, the ABI guard 2/2) and the FreeBSD cross-build build; frames 77/77, gui unit-test 1666/1670 (the perf check's BaselineHarnessMismatch), perfab corpus2x +0.054% (noise 0.054%), the 121 per-operation counts within 0.1% against tree2 (key-down on medium 10,039,720 and render on medium 11,454,636, merge40's gate 10,039,703 and 11,454,619) Co-Authored-By: Claude Opus <[email protected]> Claude-Session: https://claude.ai/code/session_016Y9MNBECMWcJD5pdS4SR6T
* integration: a client that joins during a 9P pty/run replays it as its ↵Gabriel Schneider8 days
|\ | | | | | | | | | | | | session does, and a far client's Del question is instant, on the build's second pass: pardes-faults-3 (a 9P open's handle is the session's recorded answer; a run reads its terminal's prompt marks through the tape's prompt site; a rejoin that lands as the session ends says so; Del sets question_asked and the host's pump gives it its time: the step reads no clock, so the bytes soak's one stop off may_wait, now, is gone) and pardes-merge32, merged without a textual conflict; the coordinator's gate in the ledger (reorg/merge33) Co-Authored-By: Claude Fable 5.2 <[email protected]> Claude-Session: https://claude.ai/code/session_016Y9MNBECMWcJD5pdS4SR6T
| * builtins: a far client's Del with a pane above and below is instant: the ↵Gabriel Schneider8 days
| | | | | | | | | | | | | | step that asks which way the space goes reads no clock (it asked the host's `now`, an answering entry a speculation stops at: the bytes soak's one stop off may_wait, a client's key d), its question's time is `Pane.question_asked` until the next advance, which counts the delay from its own time (Core.advance, the host's clock in its pump, right after the key's step; a client has the session's advance in its unit), so the question still shows 400 ms after it was asked in an idle session whose core time is seconds old; not a guessed clock: the core's clock is its host's (SDL's ticks on the window) where a guess is the session's CLOCK_MONOTONIC, so a guessed due time would be in another base than the clock it is compared with; nextWake skips a question not timed yet; a host with no clock (macOS's) never advances, and its question waited for ever before as now; test: a far client's Del with panes above and below applies both keys at once (failed on the base: 1 applied of 2, stopped at `d`), confirms with nothing mispredicted, and after the session's next pump its question's time is the session's clock plus the delay on both; the keys test of the delay times it with an advance; no layout moves (the field keeps its type), the semantics word stays 92963bab2e4436fb; exec.clockNow keeps its two REPL callers (a paste's Enter: a pty write that stops a far client anyway, and the session's own output steps); tui core-test 857/1010 (153 skipped), shell-test 1050/1053 (load 10-15) Co-Authored-By: Claude Opus <[email protected]> Claude-Session: https://claude.ai/code/session_016Y9MNBECMWcJD5pdS4SR6T
* | integration: the build's second pass on the handle and the devices once: ↵Gabriel Schneider8 days
|\ \ | | | | | | | | | | | | | | | | | | pardes-build-pass2 (pardes-isolate and the tree-sitter=disabled tier deleted; one option, grammars = none | minimal | full; build.zig with the consumer's lines as its head comment; test/lib -> test/consumer; the manual's library section) and pardes-merge31, merged without a textual conflict; one line follows a deletion: dev/file_watch.zig's end-to-end test of a session's watches (written since on the base) guarded on fs.platform_has_fs, which the first of these changes deleted: the guard reads as the file's other tests' (comptime !supported); tui core-test 857/1008 (151 skipped), shell-test 1048/1051, the window builds; the coordinator's gate in the ledger (reorg/merge32) Co-Authored-By: Claude Fable 5.2 <[email protected]> Claude-Session: https://claude.ai/code/session_016Y9MNBECMWcJD5pdS4SR6T
| * | build: the `-Dtree-sitter=disabled` tier is deleted (pardes-build-2 item 2; ↵Gabriel Schneider8 days
| | | | | | | | | | | | | | | | | | | | | P31's Q5, decided on the evidence 2026-11-20): a pardes with no tree-sitter at all, whose syntax.zig stubbed `ts` with four opaque types and answered every call empty; it did not compile on the base (`zig build install -Dplatform=tui -Dtree-sitter=disabled`: core/indent.zig:48 `struct 'syntax.ts__struct_3541' has no member named 'Tree'`, since indent.zig reads the parse tree the stub never had) and nobody set it; out with it: the `disabled` value of `TreeSitterGrammars`, build/core.zig's `treeSitter` made always (its module and its queries no longer optional, so `TreeSitter.wire` and `core.module` add them plainly), the stub `ts` and `ts_queries`, `syntax.enabled` and every branch that was for it: 32 guard lines and 16 terms of a condition in core/syntax.zig (its `start` and `stop` unwrapped), whole test guards in core/draw.zig, Stream.zig, File.zig, Query.zig, Core.zig (2), mouse.zig, replica.zig (2), test/output.zig (7), test/panes.zig (11) and test/behaviour/{panes,settings}.zig, a term in Stream.zig's two worker tests, `TreeContext.enabled` (builtins.zig) and the config table's condition on it (config.zig), test/output.zig's two conditions on the grammars; abi/wire.zig hashes the grammar set as the same four words (`true true` for highlighting and the Zig grammar, which every set has now), so `pardes version`'s semantics line did not move: 8b6382fddba7b382 on tui, gui, the bare build's two, both statics and FreeBSD, 0520895ac88d25ad with -Dtree-sitter=minimal, as at item 1; the manual's option table and the changelog say it; build.zig and build/ 2,981 -> 2,974 lines; every shape configures (11) and builds (tui, gui, bare, static musl and gui, FreeBSD, -Dtree-sitter=minimal, the macOS library for Linux and aarch64-macos); tui core-test 856/1006 (150 skipped), shell-test 1046/1049, pane-test 183/184, behaviour-test 275/275 and -- --replay 275/275, term-test 17/17, kitty-test 45/45, addon-test 5/5, lib-test, hxlib 538 cases 0 mismatches, process-test 0 of 144 failed (diffstack failed once and passed on the runner's own retry), gui unit-test 1643/1647 (the perf check's BaselineHarnessMismatch, the base's); load 5-26 on 16 cores Co-Authored-By: Claude Opus <[email protected]> Claude-Session: https://claude.ai/code/session_016Y9MNBECMWcJD5pdS4SR6T
* | | integration: the core's calls out to the host go through the tape's handle, ↵Gabriel Schneider8 days
|\ \ \ | |_|/ |/| | | | | | | | | | | | | | on the devices once and the attach that is always a client: pardes-handle-6 (6a, 6b, 6c, 8a: p.tape.host(p, .name, .{ args }) derived from the Host table; Wrap, hostOf and wrap deleted; no line of core/ outside the tape names the host's table, held by root.zig's scan; the tape's bytes unmoved) and pardes-merge30, merged without a textual conflict; tui core-test 857/1008 (151 skipped), shell-test 1048/1051, the window builds; the coordinator's gate in the ledger (reorg/merge31) Co-Authored-By: Claude Fable 5.2 <[email protected]> Claude-Session: https://claude.ai/code/session_016Y9MNBECMWcJD5pdS4SR6T
| * | tape: the calls out to the host by the Host table's own names, step 6a (the ↵Gabriel Schneider8 days
| | | | | | | | | | | | | | | | | | | | | design of reports/pardes-handle-69-design.md, P33): Host gains what a call names, gives and gets, derived from its table (Fn, Args, Ret, has, mask, call), the tape one method, p.tape.host(p, .tty_taken, .{.at(id)}), whose absent arm is the caller's after orelse, and the 7 calls made straight on the table (hostForegroundName, hostTtyTaken, hostKillJob, Adopt, Upgrade, clockNow, askAhead) go through it; hostCall is the one body (the wrappers forward to it until 6c deletes them), its text in place; the tape's bytes do not move (semantics 32640d4a722b811c unmoved, cross_replay both ways) Co-Authored-By: Claude Opus <[email protected]> Claude-Session: https://claude.ai/code/session_016Y9MNBECMWcJD5pdS4SR6T
* | | docs: an attach is always a client, and a session registers again with a ↵Gabriel Schneider8 days
| |/ |/| | | | | | | | | | | restarted daemon, in the documents: the manual's "How pardes runs" (docs/typ/running.typ: one Attach section, its figure of the in-place attach deleted from figures.typ, the glance and survival tables, the words), the guide's Sessions, the reference's /sessions and command line, the building chapter's daemon, the cheatsheet's line, `pardes help attach` (runtime/main.zig, docs/typ/command-line.txt from builtins-json), the Detach word's doc (core/builtins.zig, both builtins JSONs), docs/next-run.md as built (what went, counted on the change: 305 lines deleted, 94 added; the re-registration as built; --detach forking still not) with its figure (Before / Now), and the changelog's Unreleased; the book and the cheatsheet render (typst), tui shell-test 1046/1049 (3 skipped), core-test 855/1005 (150 skipped: the base's 856/1006 less the deleted `find` test) Co-Authored-By: Claude Opus <[email protected]> Claude-Session: https://claude.ai/code/session_016Y9MNBECMWcJD5pdS4SR6T
| |
| \
*-. \ integration: a terminal joinable and exactly reloadable with the engine's ↵Gabriel Schneider8 days
|\ \ \ | |_|/ |/| | | | | | | | | | | | | | bytes kind made right, a client's kept list let go for free at its bound, the build's options said once, and ghostty's page and zstbi's resize the same on every machine, on the far client's fixes: pardes-term-1 (the terminal by the pty's bytes, steps 1 and 2), pardes-perf-fix, pardes-build-options, pardes-patches and pardes-merge25, merged without a textual conflict; tui core-test 856/1006 (150 skipped), shell-test 1042/1045, term-test 17/17 before the patches joined; the coordinator's gate in the ledger (reorg/merge26) Co-Authored-By: Claude Fable 5.2 <[email protected]> Claude-Session: https://claude.ai/code/session_016Y9MNBECMWcJD5pdS4SR6T
| | * Term: the two things a speculation writes into a terminal and no rollback ↵Gabriel Schneider8 days
| |/ | | | | | | | | | | | | puts back move into the pane, which the copy holds and the digest covers: the cell its program last heard the mouse at (Pane.term_mouse, handed to Term.mouse and Term.wheel, which ghostty's encoder reads and writes) and its kitty graphics as glyph art (Pane.term_petscii, which the Petscii builtin flips and the images' draw takes in ImagesAt): the sizing's table (reports/pardes-term-bytes.md, section 1; the brief's step 1c); Parts loses both (a dump of an older build carries them and they are passed over by name: a terminal's Petscii chosen before an Upgrade is off after it), Ops loses petscii and togglePetscii; term-test 17/17, core-test 848/991 (143 skipped), shell-test 1027/1030 Co-Authored-By: Claude Opus <[email protected]> Claude-Session: https://claude.ai/code/session_016Y9MNBECMWcJD5pdS4SR6T