muxg: prediction overlay #96

Open
opened 2026-09-05 19:39:38 +00:00 by a73x · 0 comments
a73x commented 2026-09-05 19:39:38 +00:00 (Migrated from git.a73x.sh)

The TUI paints typed bytes ahead of the daemon's echo through src/tui/predict.zig (an overlay that never enters the replica). muxg paints only what the daemon sent, so over a WAN or through ssh it feels slower than the TUI on the same link. Once the wall retires, the GUI is the multi-session surface for exactly those remote boxes.

Wanted: the prediction overlay behind the GUI's replica, sharing the predictor's state machine (predict.zig currently sits under src/tui/; moving the state machine to a client-side module and keeping the two painters separate keeps rule 4 and the "overlay never enters the replica" invariant). A gate on retiring the wall.


Migrated from git-collab issue fb4a0ee496a3257ac3370dbf63f3d923ea027aa7.

Original author: a73x dev@a73x.sh.

The TUI paints typed bytes ahead of the daemon's echo through `src/tui/predict.zig` (an overlay that never enters the replica). `muxg` paints only what the daemon sent, so over a WAN or through ssh it feels slower than the TUI on the same link. Once the wall retires, the GUI is the multi-session surface for exactly those remote boxes. Wanted: the prediction overlay behind the GUI's replica, sharing the predictor's state machine (`predict.zig` currently sits under `src/tui/`; moving the state machine to a client-side module and keeping the two painters separate keeps rule 4 and the "overlay never enters the replica" invariant). A gate on retiring the wall. --- Migrated from git-collab issue `fb4a0ee496a3257ac3370dbf63f3d923ea027aa7`. Original author: a73x <dev@a73x.sh>.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
a73x/mux#96
No description provided.