feat(term): multiplex macOS terminals with batched scrollback and responsive input - #2
Merged
Merged
Conversation
doodlewind
marked this pull request as ready for review
September 7, 2026 01:48
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Pocket Term now exposes independent macOS PTYs on the 3DS with an 80×24 terminal, local inertial history, and a lower-screen keyboard, session tabs, touchpad and settings. The Bun offload provider forwards authenticated capabilities to a durable Node worker owning node-pty, libghostty, scrollback and dynamic glyphs. Provider reconnects preserve sessions while that worker stays alive; stopping the companion ends them.
Input batches have their own ticket and deduplicated command ids. Live output retains ordered fragments until acknowledged. Protocol 6 batches up to 16 historical rows across two requests while cache ownership remains session/epoch/absolute-row based, with cancellation and pruning fences. The guest publishes bounded history work at frame boundaries and moves cached content by pixel translation.
The D-pad and right nub send repeating editor cursor keys. Settings selects Spleentt, Spleen or Fusion Pixel, scroll speed and conservative typing preview. Preview learns from confirmed echoes, never mutates authoritative cells, and uses the framework virtual clock for expiry. Font source archives preserve the original bytes and licenses while reducing 3.30MB of BDF text to 353KB.
The README now covers the current setup, controls, lifecycle, architecture and update process. New native terminal/settings captures replace the obsolete homepage images, include reproducible fixture metadata, and identify example terminal data. Historical validation remains labeled by revision.
Validation:
User guide, history transport, prediction and input, and validation receipts.