feat(snapshot): daemon sends libghostty snapshots instead of raw bytestream - #243
Draft
neurosnap wants to merge 1 commit into
Draft
feat(snapshot): daemon sends libghostty snapshots instead of raw bytestream#243neurosnap wants to merge 1 commit into
neurosnap wants to merge 1 commit into
Conversation
neurosnap
force-pushed
the
push-vtznxtxsltwy
branch
from
August 18, 2026 14:49
dae1214 to
9cadbab
Compare
neurosnap
force-pushed
the
push-vtznxtxsltwy
branch
6 times, most recently
from
August 19, 2026 19:05
c5df01a to
8158037
Compare
neurosnap
force-pushed
the
push-vtznxtxsltwy
branch
from
August 20, 2026 13:45
8158037 to
a67197e
Compare
…stream This allows zmx to directly inject terminal state into terminal emulators that speak libghostty's snapshot api. This only impacts terminal rehydration of clients when they first attach to a zmx session. What does this mean? Terminal emulators that support loading libghostty snapshots directly can receive a perfect recreation of zmx's session instead of relying on us re-printing the ansi bytestream into every client that connects to a zmx session. Right now only `monstar` has experimental support for the snapshot api, but this is how it would work: ```bash zmx attach snap.1 // do some terminal stuff // close terminal and then use monstar: monstar --attach="zmx attach -s snap.1" // zmx will directly load the underlying `libghostty.Terminal` into `monstar` ``` Link: rockorager/monstar#35
neurosnap
force-pushed
the
push-vtznxtxsltwy
branch
from
August 30, 2026 15:02
a67197e to
ccf8e9f
Compare
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.
This allows zmx to directly inject terminal state into terminal emulators that speak libghostty's snapshot api.
This only impacts terminal rehydration of clients when they first attach to a zmx session.
What does this mean?
Terminal emulators that support loading libghostty snapshots directly can receive a perfect recreation of zmx's session instead of relying on us re-printing the ansi bytestream into every client that connects to a zmx session. Printing the bytestream mostly works but has some weird quirks and is not guaranteed to be identical -- it's an approximation. Using the snapshot API we get a much closer terminal "cloning" system.
Right now only
monstarhas experimental support for the snapshot api, but this is how it would work:Link: rockorager/monstar#35