pub struct StreamWorkerConfig {
pub short_id: String,
pub home: PathBuf,
pub cwd: PathBuf,
pub argv: Vec<String>,
pub session_claim: Option<SessionClaim>,
/* private fields */
}Expand description
How the daemon launches a stream-json worker. Mirrors
Mirrors the retired PTY worker config but carries the resume identity instead of a
terminal size: session_claim (when present) lets the worker release the
single-writer claim when the child orphans (the acquire happens before spawn,
in the Python guard / front door).
Fields§
§short_id: StringSocket key: the worker binds <home>/<short_id>/worker.sock, the same
path the daemon’s recovery sweep scans, so reconnect is lane-agnostic.
home: PathBuf§cwd: PathBufThe session’s RECORDED cwd. Resume is cwd/project-scoped (proven), so the child MUST be spawned here; a gone cwd makes resume fail.
argv: Vec<String>Full provider argv (claude -p --resume <uuid> --input-format ...).
session_claim: Option<SessionClaim>The single-writer claim to release when the child orphans. None for
runs with no claim management (internal tests); the daemon front door
sets it (uuid + holder together, by construction).
Implementations§
Trait Implementations§
Source§impl Clone for StreamWorkerConfig
impl Clone for StreamWorkerConfig
Source§fn clone(&self) -> StreamWorkerConfig
fn clone(&self) -> StreamWorkerConfig
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more