diff options
| author | Gabriel Schneider <[email protected]> | 2026-11-25 09:49:26 -0300 |
|---|---|---|
| committer | Gabriel Schneider <[email protected]> | 2026-11-25 09:49:26 -0300 |
| commit | 1902703adec3e8461d623fe6e867bc8adb1e52e0 (patch) | |
| tree | 51927bbaef246a1b0d5d26084a8f6eb052fa375f /core/Core.zig | |
| parent | 58d7434f56a9fef3098cfc191fbd1cb32ec09cfb (diff) | |
| download | pardes-1902703adec3e8461d623fe6e867bc8adb1e52e0.tar.gz pardes-1902703adec3e8461d623fe6e867bc8adb1e52e0.zip | |
panes, views, dump: a band's rows are dumped and digested as the tag's rows are, so the layout a load's next step makes is the never-loaded session's (G4's soak, run 1: seed 1 rtt 30 client 3, `views[0].rects` alone at unit 0/1591, "digest 0 differs", once in 36 seed-runs); TEST FIRST: views.zig "a band its sync held short under a tag of two rows, dumped and loaded: its rows are the never-loaded session's, and so is the next layout" (40x18, a scratch pane under the file's, SPC Down: the band held to 6 of the 11 rows it wants under a tag of 2 rows, so the pane's tag rows 8; byteDump, load: on the base `expected 6, found 7`, and with that check left out the next step (a taller window) laid the host out 30 rows high where the session that never loaded laid it 33: `views[0].rects`); THE CAUSE: `band_rows` was derived (kept out of the dump and the digest) and a load made it again in views.bandsLoaded as `@min(Band.takes, tag_rows - 1)`, while Core.sync makes it `@min(Band.takes, r.h - the tag's own rows - Band.body_rows)`: where sync held the band short under a tag of two rows or more, the load's came back larger, and layout.floorRows, which reads the last sync's (`above = tag_rows - band_rows + Band.takes`: the tag's own rows as their difference), worked out a smaller floor for the band's pane: the next layout (every sync's first act, and every view unparked: views.unpark) borrowed fewer rows from its column than the session's did; the tag's own rows cannot be worked out again from its dumped rows once sync held the band short (they are then `r.h - body_rows`, whatever the tag's own); THE FIX: `band_rows` is in the dump and the digest, in the pane and in each view's share, as `tag_rows` is (only Core.sync writes it, a step), and views.bandsLoaded with its call in dump.afterLoad is deleted (P1's panic fix: the draw before a load's next step reads the dumped rows now; the draw's MAX_TAG_ROWS bounds stay); root.zig's kept_out loses its `band_rows` line; P1's test keeps its checks (the band's rows after the load equal, the draw, the bound), its name says "as dumped"; a dump of an older build has no `band_rows`: 0, which a build with no band had; a user's client could diverge (and be joined again) after a rollback or a join while a band was held short in a short column; core-test 1084/1255 (171 skipped)
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_016Y9MNBFhdevVu48bvL9kCE
Diffstat (limited to 'core/Core.zig')
0 files changed, 0 insertions, 0 deletions
