From 6d075524729cc81fb157a587bef5481d6c36cb0b Mon Sep 17 00:00:00 2001 From: Gabriel Schneider Date: Sun, 22 Nov 2026 10:43:59 -0300 Subject: docs: next-daemon.md says terminals cross as the pty's bytes since 2026-11-22 (the old road's deletion, piece 8 of 8): one note under the design's "Terminals cross as authoritative screen state" (the user's ruling, pardes-flip, this line's deletion, the wire at 30; what the file says of screen state below is history) and a line under "Screen-state terminal notes" pointing to it; no other doc named screen state as current Co-Authored-By: Claude Opus Claude-Session: https://claude.ai/code/session_016Y9MNBECMWcJD5pdS4SR6T --- docs/next-daemon.md | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'docs') diff --git a/docs/next-daemon.md b/docs/next-daemon.md index 9ed25f9c..22837941 100644 --- a/docs/next-daemon.md +++ b/docs/next-daemon.md @@ -102,6 +102,14 @@ smallest common grid across them. A `cat` of 1 GB costs screens, not bytes. ghostty stays exact on the authority, and the local path keeps reading ghostty directly. + + > SINCE 2026-11-22 TERMINALS CROSS AS THE PTY'S BYTES (the user's + > ruling: "just start the structural fix"): a session's units carry its + > ptys' output and every client feeds its own emulator in the tape's + > order (pardes-flip), and the screen-state road is deleted + > (pardes-term-join-8: core/term/screen_state.zig, the deltas and their + > flight bound, the screen messages; the wire at 30). What this file says + > of screen state below is history. - **The reflective walker.** One comptime `@typeInfo` walk gives: - the digest; - the complete dump, which also serves join, Restore and Handover; @@ -885,6 +893,9 @@ Found and fixed 2026-10-29 (`dev/tui/tui.zig`, `waitInput`). ## Screen-state terminal notes +(History: deleted 2026-11-22; terminals cross as the pty's bytes, see the +note under "Terminals cross as authoritative screen state" above.) + Built 2026-10-29 (`src/screen_state.zig`), a pure encode and apply pair over byte buffers for the phase 5 stream; no transport yet. Only tests reference it, so the tty and GUI binaries carry none of it: no symbol of -- cgit v1.3 From bad506bd45846e012246a33b5d3097b3e92f02bc Mon Sep 17 00:00:00 2001 From: Gabriel Schneider Date: Sun, 22 Nov 2026 15:37:05 -0300 Subject: docs: pty/ctl's winsize sets the pty alone, apart from the grid, until the pane's size changes or its shell is started again (pardes-term-join-9, item 2 (e), round 8's row 11: on purpose, said in the manual's words): reference.typ's pty/ctl entry Co-Authored-By: Claude Opus Claude-Session: https://claude.ai/code/session_016Y9MNBECMWcJD5pdS4SR6T --- docs/typ/reference.typ | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'docs') diff --git a/docs/typ/reference.typ b/docs/typ/reference.typ index 425209a0..ac61ca74 100644 --- a/docs/typ/reference.typ +++ b/docs/typ/reference.typ @@ -897,7 +897,7 @@ Terminal panes also have #file("pty/"): command runs or text is typed at the prompt. A terminal whose program was killed on the alternate screen is at its prompt once the shell draws one there: busy is 0, and the next #file("pty/run") reads its output whole. -- #file("pty/ctl"): `winsize C R` (at least 2 rows, fewer refused `invalid winsize: at least 2 rows`; at most 4096 a side), `sig INT|TERM|HUP|QUIT|KILL`, `exec` (restart the shell in its directory: +- #file("pty/ctl"): `winsize C R` (the pty's size alone, apart from the terminal's grid, which stays its pane's: until the pane's size changes or its shell is started again, both of which give the pty the grid's; at least 2 rows, fewer refused `invalid winsize: at least 2 rows`; at most 4096 a side), `sig INT|TERM|HUP|QUIT|KILL`, `exec` (restart the shell in its directory: refused on a command pane, `a command pane does not restart`; `exec: : no such directory` if it is gone; a shell that cannot start fails and leaves the old one running). - #file("pty/run"): one line a write (two lines in one write are refused -- cgit v1.3