feat(server+cli): terminal streaming protocol and relay - #1667
Draft
rixzkiye wants to merge 11 commits into
Draft
Conversation
rixzkiye
force-pushed
the
feat/terminal/2-protocol
branch
from
August 8, 2026 02:18
03a7e23 to
da8aadc
Compare
This was referenced Aug 8, 2026
rixzkiye
marked this pull request as draft
August 11, 2026 00:05
This was referenced Aug 11, 2026
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.
Summary
Layer 2 of 6, stacked on #1666. Adds the server/CLI streaming plane and now places the daemon behind
HAPPY_TERMINAL_ENABLEDoff by default, so intermediate stack layers cannot expose the feature before final hardening.HAPPY_TERMINAL_ENABLED.Atomic commits unique to this layer
build(server): add socket.io-client dev dependency for terminal relay testsfeat(server): add terminal streaming relay with writer lock and metricsfeat(cli): add terminal RPC handlers and encrypted streaming frames to daemonfeat(cli): wire persistent terminal manager into daemon lifecyclefeat(cli): gate remote terminals behind HAPPY_TERMINAL_ENABLEDValidation — 2026-08-11
pnpm --filter happy test— 88 files / 818 tests passed.pnpm --filter happy-server typecheck— passed.pnpm --filter happy-server test— 13 files / 99 tests passed.origin/main— clean.Review this layer
Unique diff: rixzkiye/happy@feat/remote-terminal...feat/terminal/2-protocol
Stack workflow
Because these contributor branches live in a fork and I do not have push access to
slopus/happy, GitHub requires every upstream PR to targetmain. Descendant PRs therefore show cumulative diffs.Only the first unmerged layer is ready for review. Later layers stay draft. After each parent lands, I will restack descendants onto the updated
mainbefore promoting the next PR; this remains correct whether maintainers rebase-merge or squash-merge.Merge order: #1666 → #1667 → #1668 → #1669 → #1670 → #1671.
#1671 upgrades the intermediate transport here to the final protocol-v3 epoch, ACK/NACK, replay, and writer-fencing contract.