From 44587446c2478de276b7c5c5a12063e6c7946b4e Mon Sep 17 00:00:00 2001 From: Gabriel Schneider Date: Fri, 30 Oct 2026 02:17:56 -0300 Subject: remote client: predicted echo (src/echo.zig) over its own view, judged a frame at a time and woken while predictions are out; PARDES_NO_ECHO turns it off; a session's step that reads whether a terminal is at its prompt after its output (the first prompt's greeting, a command waiting for the prompt) is taped (`.prompt`), as a screen replica's emulator is the last delta's until the next Found by a client opening a shell of its own (` nt`): the session's layout after the shell's first output saw the prompt and typed its greeting (`ls`, after a pty resize), and the client's replay of it, its emulator a delta behind, did not: it diverged at once. At 207 ms through the relay (Debug): a key into a shell on the client's screen p50 9.1 ms with prediction, 213.6 ms without. Co-Authored-By: Claude Opus 5.5 --- src/terminal.zig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/terminal.zig') diff --git a/src/terminal.zig b/src/terminal.zig index 3a589659..2bc96a6e 100644 --- a/src/terminal.zig +++ b/src/terminal.zig @@ -463,7 +463,7 @@ pub fn shellSpawned(p: *Pardes, id: usize, prompt_marks: bool) void { pub fn releasePendingCommandIfReady(p: *Pardes, id: usize, pane: *Pane) void { if (pane.pending_command.wait == .input) - releasePendingCommand(p, id, pane, promptInputReady(pane)); + releasePendingCommand(p, id, pane, pardes.tape.value(.prompt, promptInputReady, .{pane})); } fn releasePendingCommand(p: *Pardes, id: usize, pane: *Pane, ready: bool) void { -- cgit v1.3