summaryrefslogtreecommitdiff
path: root/src/Store.zig
Commit message (Collapse)AuthorAge
* web: the browser shell builds again and loads a dump of a native build: a ↵Gabriel Schneider2026-10-29
| | | | | | | | | | theme by its name, a field compiled out passed over, no disk asked; touch.dump replaces the hand-written ZON fixture Fixed for wasm32-freestanding: counts as usize, no threads, stb_image, tape or host stat there. touch.mjs follows the renderer's 13 tag-layer fields, helix's retuned colours and the tag column. Co-Authored-By: Claude Opus 5.5 <[email protected]>
* dump: one walker dump of the whole session, by name across builds, for ↵Gabriel Schneider2026-10-29
| | | | | | | | | | | Restore, -l, Handover and the store; dump.zig's hand-written schema gone A dump is walk.zig's walk of the core with a table of every type it reaches (fields, enum and union names, number widths), read back by name; terminals are ghostty's snapshot (screens, history, kitty images); a failed load frees what it made. Co-Authored-By: Claude Opus 5.5 <[email protected]>
* Store.zig: an output pane too big to keep is skipped before its dump, not afterGabriel Schneider2026-10-29
| | | | | | | | | Closing a 256 MiB +Pager base64'd and serialized its text (8.5 s in Debug, the session answering nothing meanwhile) only to throw the record away: an output pane's record always holds its text whole, so its length decides first. fs.py's remove of that pane timed out on it. Co-Authored-By: Claude Opus 5.5 <[email protected]>
* merge: a pane a grip carried to another window is not kept as a closed pane ↵Gabriel Schneider2026-10-24
| | | | (Store.away while Handover.finish closes it): it is open there, so Panes does not offer it back here; the dump golden gains drag's .carried = null
* Store 3/3: Recent and Panes in the guide and reference, the changelog, an ↵Gabriel Schneider2026-10-24
| | | | unhosted core's flush returning before any host call, the design note as built with its numbers and positions
* Store 2/3: one bounded store every window shares (Store.zig): Recent as ↵Gabriel Schneider2026-10-24
records read on use, the panes a session closes kept as one-pane dumps; Panes lists them (closed), Enter or a look at @pN brings one back beside the pane that took its rows An append-only log under $XDG_STATE_HOME/pardes/store, framed records with a CRC, flock on store.lock (never blocking a step), a stat on use, garbage passed over and compacted away by the next writer, compaction by rename, 100 MiB cap. dump.dumpPane/restorePane lifted out of dumpState/initDump; layout.giveBack; Options.recent_path is store_path. Host calls yield one at a time; /recent refreshes only when no step is out. Tests: two windows and a busy lock, the cap, garbage/torn/partial records, a closed pane's reopen with the layout invariant; fs.py: two live sessions over 9P.