mobile: add Phase 7-8, full PTY streaming with detach/reattach - #486
Merged
Conversation
Base automatically changed from
claude/mobile-prd-phases-7-8-270lv4
to
main
September 13, 2026 10:00
Structured agent-remote polling (Phase 4) covers agent lifecycle but not a real interactive terminal - some agent TUIs and ad hoc shell use need raw PTY streaming, resize, and the ability to detach without killing the remote process and reattach later (after a suspend, a dropped connection, or an app relaunch). Adds Phase 7 (mobile-first PTY client: SSH crate PTY primitives, native module streaming bridge, TerminalScreen with reattach) and Phase 8 (desktop parity, once the shared VM-local pty-remote supervisor from Phase 7 exists), plus corresponding goals, Terminal UX updates, acceptance criterion, and open questions.
Ziinc
force-pushed
the
claude/mobile-pty-reattach-prd
branch
from
September 13, 2026 10:01
a49c1d1 to
c512e22
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.
Summary
prds/mobile.md: a mobile-first, full interactive PTY over the SSH connection — real-time bidirectional streaming, resize, and detach/reattach across app suspension, dropped connections, and relaunches. Covers three layers: a shared VM-localpty-remotesupervisor (tmux/screen-backed or a custom fallback), PTY primitives incrates/treq-mobile-ssh, and the native-module/TerminalScreen work on the RN side.core::remote_pty/commands/remote_pty_commands.rswith list/attach-by-session-id and retiringremote-ssh.md's "terminal reconnect may be explicitly unsupported" carve-out.agent-remotepolling) is now an explicit, required capability.This is a PRD-only change — no code in this PR. Implementation is expected to follow in subsequent PRs against Phase 7 first, then Phase 8.
Note on base branch
This PR is stacked on
claude/mobile-prd-phases-7-8-270lv4(the Phase 5/6 closure work), which is not yet merged tomain. Once that one merges, this PR's diff will narrow to just the Phase 7/8 addition; retarget the base tomainat that point if it doesn't rebase automatically.Test plan
Generated by Claude Code