Expand description
Generic JSON-RPC-over-stdio transport for subprocess agents.
StdioTransport handles the low-level framing of newline-delimited JSON
over a child process’s stdin/stdout pair. It is intentionally protocol-agnostic:
it knows nothing about Copilot, ACP sessions, or any other higher-level concept.
§Message routing
The internal reader task inspects each incoming line and dispatches it as follows:
- Response (has
resultorerrorfield with a numericid): looked up in the pending table populated byStdioTransport::calland delivered to the waiting caller via atokio::sync::oneshotchannel. - Request / notification (anything else): forwarded to the closure registered
via
StdioTransport::set_notification_handler.
Stderr lines are forwarded to tracing::debug! under the
vtcode.stdio_transport.stderr target.
Structs§
- Stdio
Transport - Generic JSON-RPC-over-stdio transport for local subprocess agents.