Skip to content

Attached Streams

Vibe-like applications need a live session that accepts repeated input, emits repeated output, can be cancelled, and settles explicitly when terminal.

An attached stream is live transport, not durable truth. A handler declares mode, cancellation, onDetach, parseStart, run, and commitTerminal. Intermediate frames move through WebSocket or SSE. Terminal frames are settled only through commitTerminal.

v1 does not promise reconnect, resume, hibernation, durable stream logs, or hour-long workspace process lifecycle.