summaryrefslogtreecommitdiff
path: root/core/surface.zig
Commit message (Collapse)AuthorAge
* tty: a terminal pane whose program is mid-frame (synchronized output, DEC ↵Gabriel Schneider7 hours
| | | | 2026) keeps showing its last whole frame until the frame ends or a second has gone, as a terminal holds its picture (ghostty's sync_reset_ms): the user's report of 2026-11-27, "it seems to skip some stuff and then show repeated things", worst in long coding-agent sessions; THE CAUSE: agent TUIs (Claude Code, codex) wrap each redraw in ?2026h…?2026l, and a long session's redraw (Ink's 2J 3J H and the whole transcript) spans many 64 KiB pty reads; pardes drew the pane after each read, so the tty showed the transcript's top again (the repeat) and then the jump to its end (the skip); THE CHANGE: abi Modes.sync (ghostty's synchronized_output, read in terminal.zig's modes), surface Region.held set by draw.zig on a terminal body whose program is mid-frame, and tui.zig's Held: per pane, a held body's rect shows the cells (and the cursor) the tty last showed there; it lets go when the frame ends, after max_ns (1 s, counted from the first held draw), or on a resize or a moved rect; Screen.moving() keeps the loop drawing while one is held; other panes draw live; core/Term.zig's S1 table: modes draw.zig:2; the dump and the digest unchanged (Modes is not dumped; the digest hashes ghostty's modes already); NOT COVERED: the GUI and the 9P /screen file (the raw canonical surface) still show half frames; RUN (TEST FIRST): tui.zig "a terminal mid-frame (synchronized output) shows what the tty last showed of it, until the frame ends or a second has gone" (fails with max_ns 0, passes now); REAL CHECK (.scratch/ttyskip/harness.py: pardes --tty in a pty under pyte, an Ink-like generator in pane 1 over 9P, every outer frame (vaxis's own ?2026l) checked against the app's completed frames replayed from its byte log), 60 s ink runs, ReleaseSafe: the installed 24dc19130fd6 showed 362 of 3166 outer frames that were no completed app frame, this change 0 of 3270, final screens equal; Debug 112/1035 before, 0/965 after (a 60 s Debug run 5/2803: pardes more than 1 s behind lets a torn frame through by design, a 10 s cap gave 0); GATES (Debug tui): core-test, shell-test (1390/1394, 3 skipped), process-test 0 of 149 failed (3 skipped), term-test
* draw, colors, gui: the tags, grips, window and column rows and the notice ↵Gabriel Schneider32 hours
| | | | | | | row drawn from the chrome (the themes programme's L2a, DESIGN.md part F's L2a row, G1' and H): a tag's ground says focus only, two grounds (`chrome.on(.plain/.focus)`), a reading pane's on its focus's as a held one's, its mode on its grip; in a pane tag the trail, path, `Keep` and the user's text in the full ink (`text`, 7:1 where the gamut allows), its computed words (UX K'1, K'3) in the words' ink (`word`, 4.5:1), the basename in `name[g]`, its forward steps, fold and head hints `dim`, the walked word and the head's keys `key`, the head's error `severity[0]`, its own selection and a pointer sweep the ground's selection, window mode's outline the plain tag's selection whichever pane it is on (one outline walked from pane to pane), a hovered word its half selection (B5: `Selection.secondary`, new, the ground halfway to its selection, worked out with the ground's inks); the window row and the column tags on the page, no band and no focus, every word in `page.word` (a terminal's own page where the theme leaves it to the host: dark), their hovered word the page's half selection, a server's progress the page's dim ink; a column's grip `grip.column_rest` (2:1) at rest, `grip.column` (3:1) grabbed, never focus; the notice row on `status` (its ground, ink, dim and its lead's severity per ground); a pane's notice chips on the plain tag; the grid's grip (R5', R6): focused `grip.focus` with its glyph in `grip.ink`, or in `grip.mode_glyph` reading; at rest its ring `grip.ring` as the cell (the theme's own where it rings its grips, acme's #8888cc, lapis's #9aa6d9, where the cell was half that and the box's fill) with the tag's ink; reading unfocused the mode's mark `grip.mode` filled, glyph `grip.ink`; unsaved a bold `*` in `grip.ink` on `grip.dirty`; a message's mark in its kind's ink held on its fill (`Grip.marks`, new: each severity and the dim ink held at a theme change on the four fills a grid gives a grip, at rest and reading on the plain tag too, where a window draws them hollow), so the gui draws the cell's ink and its per-frame pushAway goes; both copies of `inkOn` deleted (draw.zig's, and the gui's use of pushAway); the rail's ticks the hit's and the current hit's (R8), the body's pan arrow the page's key ink, the debug box the rail and the tag's ink; the surface's chrome from the chrome alone (`tag_reading_bg` deleted, `tagline_bg` the page and `tagline_rows` over the column row too, so a window's underlay there is the page); the gui: no reading underlay, the column bar's focus cover and the reading cover gone (nothing reads them now), a column grip's band the page; Messages.ink deleted (`inkOn` takes a ground's inks or a fill's marks); THE BAND is untouched here (its inks are the next change's); RUN (TEST FIRST): draw.zig "a grip in the grid is the chrome's in every theme ..." (every theme in the ring, not the natives: focus, rest, mode, dirty, focused reading; the four each its own), "a reading pane's tag is on the plain or the focused ground, as a held one's; its grip carries the mode's mark ..." (acme, orchard, dark, neonotte84; held and reading, focused and not), "a pane tag's trail, path, Keep and the user's text are in its full ink, its computed words in the words' ink; the window row and the column tags on the page ... the notice row on its own ground" (dark: the host's page), each failing on the base (the old grip mix, the reading tint, the tag's own unheld ink on `Del`, the tagline ground); re-pinned: Trail.zig's reading-tint tests (the reader on the focused ground and its grip region reading, the held one plain), the name tint test (against the full ink, not ` Del`'s), Core.zig's window-row hover and empty column, replica's themed dump, test/column_drag.zig, test/panes.zig's tint tests (the name in `name[g]`, the words in `word`, the rest in `text`), the gui's mark test (the cell's ink, held by the core), look.zig's tag hover (the focused ground's half selection), behaviour's column-tag sweep (the swept cells the selection, the hovered word its half) and tags' tint (the directory in the full ink, the computed words in the words'); GOLDENS (36 of 103, orchard unless said), each moved cell read by goldsum.py/rowpairs.py against the base: (1) the window and column rows to the page: tagline #b2c3b8 on #1d2824 to page.word #788079 on #0d1410 (3932 cells in 33) and their blanks (1834), the active column's #becfc4 on #314738 too (1268); (2) a pane tag's computed words in `word`: plain #819188 (1607), focused #a1b1a8 on the focus ground #394440 (1088); (3) the focused tag's ground #314738 (the old focus tint) to the chrome's #394440 and its full ink #becfc4 to #cadbd0 (991), the name tint on it (701); (4) a reading pane's tint #2c2c0f gone: focused to #394440 (746 + 647 words + 101 names), unfocused to the plain tag (234 + 219 words + 50 names), the head's dim on it to the focused dim #8e9d94 (165), its key #bada9d to #add38a (28 + 6); (5) grips: a reading unfocused one's ring #465a43 to the mode's sky #3096c0 (10 + 2), a focused reading one's glyph black to `mode_glyph` #06779d (6); (6) the rail's current tick, the text #e5eee5, to the current hit #917a53 (8 + 1); (7) a server's progress on the window row, hint #b7cb98, to the page's dim #666f68 (135, callstack, lsprelpath); (8) a hovered header word, the full selection, to the page's half #24382c in page.word (9 + 2, load, windowops); the tag's selection's ink #f5f7ee to the focused ink held on it #cadbd0 (65 + 1, tagpath); (9) blanks only: the dump's runs carry a blank cell's ink from the cell before it, so blanks after `Del`, on a grip's second cell and the column grips show the new ink with no glyph (271 + 253 + 22 + 18 + 6 + 4 + 4 + 4); theme.golden and themesel.golden (24 themes each), the same classes per theme: the window and column rows on each page (dark's the host's: `d`), dark_plus's blue status bar now the notice row's alone (H), acme's cyan header rows on its page #ffffea in #74746a, the focused tag on R4's step (acme #d1e6e6, dark_plus #565656, light #d1cfdb), the notice row's ink `status.text` (the tag's held), paper's and solarium's on the lifted plain tag (H's 1.1), acme's and lapis's resting grip their own ring as the cell; mini, collapse, ninep carry the same in their 9P captures' style rows; GATES (tui): core-test 1155/1329 (174 skipped), pane-test 184/185 (1 skipped), process-test 0 of 103 failed with --update (36 re-recorded, read above); THE END GATE's finds, fixed here: shell-test's look.zig tag hover and behaviour's column-tag sweep and tags' tint asked the old looks (re-pinned above), and behaviour's window mode lost its outline walking from the focused pane to another (each tag's own selection differs by ground: the outline is the plain tag's selection on every pane now); the whole stack's gates are in its last change's description; load 2.5 to 9.5; OUTSIDE draw.zig/Messages.zig: core/colors.zig (Selection.secondary, Grip.marks/Fill/Marks, three hunks), core/surface.zig (Chrome's reading underlay gone, two docs), dev/gui/gui.zig (underlay, gripFill, mark ink, gripDecor's band, coverFrame, two tests), core/Trail.zig, core/Core.zig, core/replica.zig, core/look.zig, test/column_drag.zig, test/panes.zig, test/behaviour/columns_and_tags.zig, test/behaviour/tags.zig (tests), test/snapshots (36) Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_016Y9MNBFhdevVu48bvL9kCE
* gui, tui, macos, surface, draw: the frontends' colours from the chrome (the ↵Gabriel Schneider41 hours
| | | | | | | themes programme's L2e; DESIGN.md R1, R6, R11, R15, G1'): the window's one null page and text are colors.null_page and null_text (gui.zig's own bg_default and fg_default, the same values written twice, deleted; the tty's trail ink the same constant where it wrote #cccccc again); SGR faint in a window is its ink toward its own ground to the dim floor, 3.5:1 (R15; a terminal's faint on the page's text is the page's dim ink already, L2d's), where it was the ink at 60 % toward black, darker and stronger on a light page; InactiveDim's fade is worked out, not searched: luminance runs straight in linear light, which `blendLinear` mixes in, so the most of the setting that keeps a pair at its own contrast or 4.5 is one division (`fadeToward`, a hair inside the floor for the bytes' rounding), where each frame bisected every distinct (ink, paper) pair eight times into a 32-slot cache made again each frame (A7); the grips (G1', R6): a reading pane's button is ringed in the chrome's mode ink (`grip.mode`: sky, else mint, violet, paper, rose; 3:1 on both tag grounds), two logical pixels as acme's ButtonBorder, outside a pixel of band so its fill never touches it (an unfocused dirty one's gap, now a reading one's too), a held pane's ring the resting `grip.ring` and a focused one's `grip.focus`, dirty `grip.dirty`; the glyph and the mode's bars on a filled button (focused or dirty) in `grip.ink` (held 4.5:1 on every fill), on the band in the tag's own ink: gui.zig's inkOn (black or white past a luminance of 140, not WCAG) deleted; the window's rules: spines, column and stacked-pane rules in `rule` (R11), the topbar's in `rule` unless gui_topbar_pane_border_rgb, the tag rule `tag_rule` (half the tag toward the page in OKLab; acme's own #8888cc) where it was the sRGB average of the tag and the page, `rule_px` and `rail_px` the chrome's; surface.Chrome gains `grip_mode` and `grip_ink`, `tag_rule` is always given (null meant "mix it yourself"), and draw.zig fills them from `p.chrome()`; macOS: the two exports nothing reads, pardes_tagline_bg (the tag's ground, misnamed) and pardes_tag_active_bg, deleted with their header lines and ABI guards; the Mac's sixteen for an index are core/colors.zig's `xterm`, the gui's, where they were Tango (a window is handed a program's sixteen as the theme's own colours now, L2d, so an index under 16 reaches it only from elsewhere: one colour an index in every window); RUN (TEST FIRST): gui.zig "every pixel of a grip column is band, button or ring" asks the button's pixels in the chrome's fills, rings, mode ring and grip ink (it allowed the grid's old box and boxDirty colours and inkOn), over four sizes, focused or not, dirty or not, the first pane reading (Jumps walk): fails on the base by compile (the surface had no mode ring or grip ink), passes now; "InactiveDim fades the unfocused panes' rows alone, never below the text's floor" passes with the fade worked out (#e6e6e6 on black faded toward it, at least 4.5:1); acme's #8888cc tag rule and its 2 px rules and 18 px track as before; PICTURES (the S kit, before = the installed build, after = this tree's Debug gui, 26 px, `Jumps walk`): .scratch/themes/L2cde/png/: the Changes view (dark, neonotte84, orchard, acme), a terminal with `ls --color` and the sixteen, bright, backgrounds, faint, 256 and greys (dark, neonotte84), the grip's four states (held or reading, focused or not; 16 and 26 px; dark, neonotte84), InactiveDim 35 (dark, neonotte84); derived once: every colour these surfaces read is Chrome.of's (colors.zig, at the theme's change: finishThemeInitialization, setThemeIndex, previewTheme, loadThemeFile), handed to the window in surface.Chrome by draw.zig a frame as before; the fades (faint, InactiveDim) are a cell's arithmetic, as the 60 % and the blend were, with no search or cache left; NOT DONE: PDF hits (the PDF addon is handed fg, bg, sel and link through pa_view, the addon ABI 3.3; the theme's hit wants a field there, an ABI 3.4 with a version check: abi/pardes_addon.h, abi/addon.zig, core/Kind.zig, addons/fake, beyond this line's files), so test/image_harness.zig's helix tints are unchanged and not re-pinned; a mark's ink on a button is still pushed 4.5:1 against the fill a frame (it wants a severity ink per grip fill in Chrome: L2a's marks); the grid's frame and empty columns (draw.zig's fills) and the tag grounds the window lays under a tag (tag_bg, tag_focus_bg, tag_reading_bg) stay the old views' until L2a moves the grid; GATES: gui unit-test 1948/1952 (4 skipped; w2base 1947/1951, +1 the dark terminal test of L2d; its one failure the known BaselineHarnessMismatch); macOS: runtime/macos.zig built for this host and its ABI guard run (`unit-test -Dplatform=macos`, "pardes.h declares every export the way it is defined"), the Swift not compiled (no Darwin here); the tui suites on L2c+L2d+L2e: core-test 1123/1296 (173 skipped), shell-test 1344/1347 (3 skipped), pane-test 184/185 (1 skipped), behaviour-test 280/280 and --replay 20 seeds of 70 steps, 0 failures, process-test 0 of 147 failed (3 skipped, no golden moved by L2e), term-test 17/17, kitty-test 45/45; the dump and digest unchanged (no fuzz or soak); load 0.9 to 12.8 Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_016Y9MNBFhdevVu48bvL9kCE
* gui: a reading pane's tag is its reading tint in a window too, round its ↵Gabriel Schneider3 days
| | | | | | | button, inside its ring and in the underlay between its rows, and the layer-cover test meets the notice row (walk UI M4 item 3; G2's gui unit-test failures under the walk default: 1872/1878 here, those two failed, nothing else): RUN: "every pixel of a grip column is band, button or ring, and the button sits over the scrollbar" failed at gui.zig TestButtonUnderFirstRow: its pane is a test file never edited, so where jumps walk (the default since G's pumvrovu) it READS and the core paints its tag's ground the reading tint (draw.zig tagGround: chrome.tag_reading_bg, "its focus is its grip's"); the test held the column to the focused tag's or the tag's colour; made to hold it to the tag's ground, it then met what the window draws itself: gripDecor's band round the button (`grip.active ? tag_focus_bg : tag_bg`), the unfocused ring's inside (gripFill: tag_bg) and the tagline cells' underlay (emitSurfaceCell's band_base: `here.focus ? tag_focus_bg : tag_bg`, the gutters between rows a smaller tagline font leaves), none of which knew a pane reads: a window showed every reading pane's tag (most file panes, by default) with slivers of the focused or plain tag colour round its button and stripes of it between its tag rows; THE FIX: Region.reading (surface.zig, set by draw.zig on a pane's grip and tag regions: Trail.reading) and Chrome.tag_reading_bg carry it to the window; Cover.reading (coverFrame, from the grip and tag regions) picks the underlay, gripDecor's band and gripFill's ring inside take the reading tint for a reading pane (a focused ring keeps its fill, a dirty one its colour); the frames of a session whose jumps are new-pane (the frame gate's corpus) are unchanged (no pane reads); "the layer cover is the per-cell layer scan, over a core's layouts and random layers" failed at its `notices` check: line C's messages are said on the notice row (the window's foot, a tag layer of kind `notice_row`), no longer as a chip over a body (a `notice` layer is now only a pane's own prompt band: Del's question, a REPL's choice; E's prompts are in the tag), so its `Msg` made no `notice` layer in any of its 32 frames; DECIDED: it covers the notice row (some frame's tag layers hold a `notice_row` layer with rows, scanned by the cover as every other layer), its `Msg` said so; a pane's notice band keeps draw.zig's own test (core-test); TEST: both fail before (gui.zig:7232, gui.zig:7127), pass now (the grip test holds every pixel of the column, the button's row too, to the reading tint, the button, the rings and the rules); gui unit-test 1874/1878 (4 skipped, none failed; its perf step the known BaselineHarnessMismatch) Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_016Y9MNBFhdevVu48bvL9kCE
* messages: one notice row at the window's foot indexes the live messages, and ↵Gabriel Schneider3 days
| | | | | | the chips over the bodies go (pick-ui SPEC §10.3, walk UI line C item 2): the panes' area ends a row higher (layout.noticeRowHeight, none on a screen under 3 rows, as the column tags); the row is a header layer of its own (Layer.Kind.notice_row, NOTICE_ROW_LAYER, Region.Kind.notice_row) in the workspace tag's colours: on the left the message the row leads with (error > question > warn > notice > echo, the newest within a rank: its glyph in its kind's ink, its cause unless its words name it, its words without a host's clock stamp, ×n, its places as words), dimmed once its bright time is over; on the right +N more, N questions · SPC e, SPC e walk for an error with places, or N messages · SPC h m; with nothing live the focused pane's path:line (a terminal's directory); built each frame from the state (Messages.noticeRow, bounded by notice_row_cap), the left part giving way to the right; B2 runs and B3 Looks at a word on it (mouse.zig); Pane.Notices keeps the leader's and a prompt's chips only; a latent fault found by it: a kind's pane reopened (its file changed on disk, a Restore) kept the hashes of the views its old state was told, so the new state was never told its view and a PDF stayed blank until something moved its pane; the reloaded message's chip used to move it (Kind.reopen now tells a new state every view; behaviour addons_pdf's disk-change and Restore tests, failing before the fix); a message's cause for a kind's pane is its path; every frame changes (the foot row): boot's foot reads '/tmp/pardes-snap/boot/cwd', msg's 'repainted' '· saved /tmp/pardes-snap/msg/cwd/a.txt 2 messages · SPC h m' where a chip stood on the body's first row; the 98 tty goldens rewritten and read (57 the rows shifted alone, the rest the chips gone and racy shell output re-recorded; no file-written block and no snapshot's name changed), the four tty cases that click at fixed rows given a row more (chordcut, layout-open, images, respawn: their cursors unchanged), the addon scripts' outputs (fake, snake, life, pdf: windows a row shorter, the chip gone), hxdiff's core a row taller (22 rows as helix's), the tests over tiny screens a row taller, the drag edge of a bottom pane over the notice row (mouse.zig); tests: Messages.zig 'the notice row leads with the most important live message ...', 'a builtin announces itself on the notice row, an echo ...', draw.zig 'the word under the pointer on the notice row is lit ...', 'a message wider than the notice row ... gives way to the row's right end'; tui gate: core-test, pane-test, shell-test, behaviour-test (and --replay: 20 seeds, 0 failures), term-test, kitty-test pass; process-test 0 of 146 failed; the gui build is gated at the line's end Co-Authored-By: Claude Opus 5.5 <[email protected]>
* scroll: a view's top is a line and a row within that line's own wrapped ↵Gabriel Schneider4 days
| | | | | | | rows, and a scroll moves it by rows (P62, round 3, on the layer's new model where the `Changes` layer's lines are lines of the buffer): a wheel's notch, the glide, PageDown/PageUp, zj/zk, Ctrl-d/u, zt/zz/zb and the margin (`scroll_off` now ROWS) go a row at a time through a line wrapped over many rows and through a long description line of the layer, where the base jumped all of a wrapped line's rows at once (the user, 2026-11-23: "the scroll view jumps around near deleted lines on the diff view"; one-row deleted lines were cured by the layer's second step, a wrapped one was not): TESTS FIRST: core/jj.zig "a view scrolls by rows through a line wrapped over 12 rows and a change's description wrapped over several (a line of the layer): ..." (a notch is one row down the whole text and back, the notches the text's rows exactly; PageDown/PageUp a page of rows; zj/zk one; a held j and k keep the cursor's row `scroll_off` rows inside the body) failing on the base at notch 21 (line 20's 12 rows crossed at once), and "a client wheels its session's view a row a notch into a change's description wrapped over several rows ..., agreeing at every notch; a client joined over that view loads its row"; kept from round 1: core/replica.zig's join over a view scrolled into a wrapped line (with a rollback and a dump) and the explorer of a view's rows (30 seeds), dev/gui's glide a row a notch; THE CHANGE, taken from pardes-row-scroll (`xrxmqlnw`) and -2 (`xxzmwnvq`) without their ghost-row "blocks" (a block is now just a line's own rows): `File.State.scroll_row` and `views.PaneView.scroll_row` in the generic walk (digested, dumped, copied; a dump of 34 loads at its lines' first rows), the wire 35; core/File.zig `Top`, `rowIn`/`rowWalked` (a line's rows as fillBody wraps them, `guideOf` shared), `rowOf`, `lineRows`, `top`/`setTop`, `walkRows`/`walkKnown`, `rowsTo`, `rowsOf` (off the map where it holds the line), `mapFresh`, `scrollRows`, `shownRows` (the geometry laid out first), `show` (a cursor's or a result's row inside the band, the line's rows whole when they fit), `textRowLine`, fillBody's skip to the top's row walked once a geometry (`Pane.top_skip`, derived), the geometry's key with `scroll_row` and stored as what the map was made from; the one-row fact `State.widest` (`Widest`, an upper bound kept by the index's own vector passes `countLines`/`fillLines`) so a view whose lines are each one row walks nothing (`oneRow`: line arithmetic, checked against the walk in Debug); `fitEnd` a vector of printable ASCII at a time; the callers in rows: panes.zig `scrollBy(tab, delta)` and `ensureCursorVisible` (a file's through `File.show`), the wheel and the rail and the edge scroll (mouse.zig), Ctrl-d/u (normal.zig `halfPageMove`), zt/zz/zb, Ctrl-f/b and PgUp/PgDn (Text.zig `scrollViewMove`), Look's reveal and centring, Places' `goTo`/`restore`, Query's `showCurrent`/`caretTo`, the frames' `Region.row` and the glide (dev/glide.zig, the window's `topOf`); test/perf.zig's checks by (line, row) and its seek at a line's first row; Debug in the workspace: core-test 963/1129 (166 skipped), shell-test 1172/1175 (3 skipped) Co-Authored-By: Claude Opus <[email protected]> Claude-Session: https://claude.ai/code/session_016Y9MNBECMWcJD5pdS4SR6T
* changes layer: a lane's colour says the kind of the row it stands beside, ↵Gabriel Schneider4 days
| | | | | | | and a change's lane ends in an arrow at its description (the user's rulings of 2026-11-23): a lane had one colour a change (the theme's accents in hue order, `laneColours`); now beside a row a change wrote (a line added whole, a changed line's new text) it is the theme's cool accent and beside a row it took away (a line taken away, a changed line's old text) its warm one, both from one function, `jj.laneInks` (among the theme's accents, greys and those within 15 degrees of its green and red left out, the one nearest azure and the one nearest orange, each from its own half of the hue circle so the two are never one; a half with none takes the theme's most vivid accent turned to its pole in OKLab, `colors.turnOklab`: the user's neonotte84 has no cool accent and gets its keyword pink turned azure; then each pushed toward the ink to read 3:1 on the page); a description row's lanes keep the kind of the row above it (`takenAbove`), and its change's lane ends there as an arrow pointing at the id: in a terminal `▎─→` across the lane cells (`↳` from the last level), in a window the strip bent at the row's middle into a shaft and a head (`Lane.arrow`, the cells to the text; dev/gui/gui.zig `laneStrip`, each piece cut to the glide as the strips are), the outer lanes passing it unbroken; a description's id is the theme's keyword ink and its title the text's (no one lane colour is left to give it); a lane runs through no unchanged line (`nest` ends a block at a line no pinned change wrote), so none needs a neutral; tests: the lanes test and the ghost-rows test assert each row's lane ink by its kind, the arrow's glyphs in a terminal and `Lane.arrow` in a window, and the id's ink; a new test runs `laneInks` over all 285 themes (never one colour; each reads 3:1 on the page or as nearly as the theme's own ink does; 16 end greyish); not changed: the rows' grounds (green and red, as the patch view's), Churn's cell and strip; core-test 925/1089 (164 skipped), shell-test 1131/1134 (3 skipped) Co-Authored-By: Claude Opus <[email protected]> Claude-Session: https://claude.ai/code/session_016Y9MNBECMWcJD5pdS4SR6T
* lanes: a change's lanes ride their lines' glide in a window: the window drew ↵Gabriel Schneider5 days
| | | | | | | `Changes`' lanes (Surface.lanes: a strip a level in the gutter's lane cells, decor, not cells) at the rows their lines have in the core, with no lag, no cut to the body and nothing for the rows that left (dev/gui/gui.zig buildDecor's lane loop: the glide's rows, emitScrollRows, and the rail's thumb, paneDecor's lagLines, had the picture's lag; the lanes, added later, never did), so at every scroll (a wheel's notch, Ctrl-d, a page, a touchpad's fraction) the strips leapt to where their lines would be and the text glided in under them, on every frame of the glide (the user's "the animation for the things in the gutter makes them keep jumping", 2026-11-22; in a test window on core/echo.zig with `Changes pardes-installed-20261122..main`, a wheel's three notches: the glide's first frame has the text unmoved and every strip three rows up; a terminal is untouched, its lanes are cells); now `laneDecor` draws a scrolling body's lanes as emitScrollRows draws its rows: the lag less (a glide's offset, else scroll_lag; the lift of held context rows), cut on the CPU to the body under its held rows (the shifted rows' scissor), and the rows that left keep theirs in the gap: the glide remembers each frame's lanes with its cells (`last_lanes`) and moves a kept row's lanes with it as it moves its cells (`above_lanes`, `below_lanes`: a `RowLanes` a row, at most `Lane.levels`, now Lane's own, which jj.levels names), and a touchpad's edge row keeps its own (`scroll_edge_lanes`); remembered by the glide rather than made part of what a row is (a lane in Cell): the frontend's alone, nothing in the core, and nothing added to every cell of every frame for a layer most bodies never show; the scrolling body and the rows that left it are one function each for the rows and the lanes (`scrollBody`, `ScrollBody.leftRow`, `glideLeft`, out of emitScrollRows); at rest a strip is the same rectangle as before; nothing in the core's step changes; looked at mid-glide in the same window: an added line's green ground, a ghost row's red ground, a changed line's word grounds, a description row, Churn's cell after the line number and the `~` past the last line are cells and ride with their rows; Churn's strip on the rail maps the whole file and stands still under the moving thumb, as it should; a frame's cost with three lanes on each of 70 body rows (219 lanes; a scratch bench, glideFrame and buildDecor a frame, `perf stat -e instructions:u` at 2,000 and 6,000 frames, ReleaseFast): at rest 67,744 instructions against the base's 65,644 (+2,100: the lanes copied with the frame, 1,752 bytes, and the strips' loop), a glide's frame 81,472 against 65,832 (+15,640: every strip cut and moved, and the gap's), a frame with a scroll input 1,125,708 against 1,103,120 (+22,588, the measure's 1.1 million the most of it); the text timedemo's frame is 9.38 million (tree4): +0.02% at rest, +0.17% gliding; memory: the glide's kept rows' lanes, 26 bytes a row, 2 bodies' rows a side (3,640 bytes a side at 70 rows), allocated with the kept cells, and the last frame's lanes (8 bytes each) in a list that grows only past the most a frame has had: nothing allocated a frame; no frame later: the strips are computed in the frame they are drawn in, from what the glide already holds; the previous change's test passes; the gate against tree4 (gpu/lane-glide-g, load 5-10): 77/77 frames identical, gui unit-test 1710/1714 (the base's 1709/1713 and this test; its one failure the base's), perfab corpus2x +0.026% (noise 0.092%), pictures identical in all 10 runs, the 121 counts within 0.1% (largest image-frame on small +0.0057%); tui core-test 917/1074 (157 skipped), shell-test 1116/1119 (3 skipped), the base's 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: `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
* core, dev, runtime, test: the settings a session changes while it runs are ↵Gabriel Schneider8 days
| | | | | | | `config.Settings`, no longer `config.Runtime` (P18, the user's ruling on the tree step's name collisions: the type's name collided with the directory `runtime/`, and the core's field of that type is already `settings`): the type on 17 lines of core/config.zig (its declaration, its methods' receivers, its tests, the comment naming it), `config.Settings` on 50 lines of eleven other files (core/Core.zig, Output.zig, builtins.zig, builtins_json.zig, exec.zig, ninep/ctl.zig, surface.zig; dev/gui/gui.zig 598, 5860, 5909; dev/jump_trail.zig's comment; runtime/main.zig 756; test/output.zig 552) and docs/next-winmode.md's one mention; a rename only, nothing else on any line; the semantics hash does not move (a type's name is not in the tape's shape); tui core-test 848/991 (143 skipped), shell-test 1027/1030, gui unit-test 1625/1629 failing only the perf check's BaselineHarnessMismatch (as the base), the macOS library for Linux and aarch64-macos and the FreeBSD cross-build rc 0, under a load of 6 to 42 Co-Authored-By: Claude Opus <[email protected]> Claude-Session: https://claude.ai/code/session_016Y9MNBECMWcJD5pdS4SR6T
* frontends: the terminal and the window draw and turn input into events from ↵Gabriel Schneider8 days
| | | | | | | the frame and one record beside it (the reorganisation's runners, step 10a, on the line as it is now): surface.Facts, the core's (Pardes.facts) and pointed at by the frame it is filled for (Surface.facts), filled by draw.place in the walk over the panes it makes anyway and by a runner after an input it applied (draw.facts), carries what a frontend took from the core (the view's size, cell pixels and row metrics, each open pane's rectangle, tag rows, context rows, serial, whether a terminal whose program takes the wheel or a kind's, its mode, the jumps' back and forward, the settings it draws by); the window keeps a copy (Gui.facts) with the frame it shows (Gui.frame) and its hit tests, wheel, touchpad rows, timedemo, blink, overlays and dim read only those; Host.present returns whether the frame was shown, so present_skipped leaves the core and nothing writes it; the frame statistics are the runner's (Options.frames, Pardes.frames a pointer to them), which the frontends write and the core's draw reads; Replica.draw returns the shown and keeps needs_frame itself, so the two client loops put nothing back; OwnView and Replica.within are deleted (the window client's own pass reads its facts, its inputs fed after each event as before); rollback-bench compiles again; the tape's watched fields lose present_skipped and present answers a bool, so the semantics word moves (0900e560fd6395ef, pardes-seam-b's, -> 2f615168fe07b35f). The first version (psvoxrup, on pardes-tree) kept the record by value in every Surface, and every Surface a tag line builds for a moment copied its 1.3 KB more: +1,556 instructions an image-frame, +3,763 a render (perf record: memcpy); now perfops against tree1 97 counts within 0.1%, largest image-frame +0.029%. Brought onto pardes-seam-b: the client set-up keeps the Distrusted list beside the runner's frame statistics, Options' local fields both, and the rollback test's present answers a bool. Gate: frames 77/77 byte-identical in Debug, the alternated windows' pictures identical in all 10 ReleaseFast runs, corpus2x -0.039% (PASS); tui core-test 836/979 (143 skipped), shell-test 1014/1017, term-test 15/15, pane-test 183/184, kitty-test 45/45, behaviour-test 275/275 and --replay 275/275, process-test lspcomplete and lspcompletemoved (the base's) and grep (passed alone three times of three); gui unit-test 1612/1616 with the base's BaselineHarnessMismatch; replicas --clients 5 diverged 0, unequal 0, deltas wrong 0, quiet 470/0, 600/0, 764/0; daemon.py plain, --far, --games, --window-clients, --upgrade both ways (from pardes-tree's pfx-base); the macOS library for Linux and aarch64-macos and the FreeBSD tui configure; rollback-bench runs Co-Authored-By: Claude Opus <[email protected]> Claude-Session: https://claude.ai/code/session_016Y9MNBECMWcJD5pdS4SR6T
* core: nothing of a core is a process global, the three that were ↵Gabriel Schneider9 days
| | | | | | | (pardes-probes P3, the reorganisation's 12c): config.tab_now goes, a tab's width is the core's settings.tab handed to every width function as `tab` (File.graphemeDisplayWidth and the 73 functions above it, test helpers among them, that had no core to read it from gained the parameter; an Editor, a Surface and the hunks' Ctx carry it; render sets Surface.tab; graphemeDisplayWidth asks its one printable ASCII byte before the tab, the two disjoint: with the tab first, as before, the parameter cost 0.2-1.7% instructions an operation in pardes-perf, with ASCII first the measured cells use 2-16% fewer than the base), so a rollback can no longer leave a stale width and replica.zig's hand-made put-back in toConfirmed goes; Addon.distrusted/ndistrusted become Addon.Distrusted, the client's own list, which its frontend owns across its joins and hands each core as Options.distrusted (in no tape, dump or digest: Options' replica .local); Kind.draw_tokens becomes each slot's `draws` (local: a draw is a frame's, so each process's count differs and no digest may hold it; the copy saves it with the slot); the two turn reads in a step stay, being shown unable to reach a client's state (the report); the soak's Proc keeps only the client's list (its tab_now and the global swaps go, forced); test/perf.zig follows three signatures, so unit-test's perf check now says BaselineHarnessMismatch until the baselines are recorded again; tui core-test 824/966 (142 skipped), shell-test 1001/1004, pane-test 183/184, behaviour-test 274/274 and --replay 274/274, process-test 2 of 144 failed (lspcomplete, lspcompletemoved), replicas --clients 5 diverged 0 unequal 0 deltas wrong 0 quiet differ 0 at 30/80/207 ms, gui unit-test 1598/1602, lib-test, daemon.py plain, --far, --games, --window-clients pass Co-Authored-By: Claude Opus <[email protected]> Claude-Session: https://claude.ai/code/session_016Y9MNBECMWcJD5pdS4SR6T
* core: src/ becomes core/, pardes.zig its root.zig (the reorganisation's ↵Gabriel Schneider9 days
tree, step 2d), and every mention of a src/ path follows: the build's paths, the core's imports of its root, the tests that read the repository's files by path (lspbench's, look.zig's spans over core/look.zig), the comments that cite files, the documents and the manual (the typst corpus reads core/tutor.txt and core/plumbing); left as they were: the /src tree's served names (src/pardes.zig and the rest are the 9P tree's, not the repository's), the CHANGELOG's history, fixtures that are only strings; fs-unit-test runs from the core's root (a module of the core rooted at fs.zig had the runtime's and the devices' `core` be fs.zig); nothing else changes: the ledger (pardes.test.* now root.test.*), frames byte-identical, replicas and process-test the base's Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_016Y9MNBECMWcJD5pdS4SR6T