Skip to main content

Module pty_session

Module pty_session 

Source
Expand description

Client-side helpers for daemon-owned detachable PTY sessions (issue #130 milestone 2).

Sessions are spawned and listed via the regular DaemonClient RPC channel. Attach is special: after the daemon responds with AttachPtySessionResponse the same socket switches into a streaming mode that carries PtyStreamFrame (daemon → client) and PtyInputFrame (client → daemon) messages. PtyAttachment owns the socket for the lifetime of that stream and exposes blocking send/receive helpers suitable for tests and small clients. Async clients can build on top of [DaemonClient::attach_pty_session_raw].

Structs§

PtyAttachment
Active attachment to a daemon-owned PTY session.
PtySpawnRequest
Request shape for spawning a daemon-owned PTY session.
SpawnedPtySession
Reply summary for a successful spawn.

Enums§

AttachError
Errors specific to attach.