pub fn spawn_headless_thread(
workspace: PathBuf,
model: impl Into<String>,
state: StateStore,
) -> (EngineHandle, ThreadId, SessionId)Expand description
Start a headless session and expose its shared operation channel.
Callers can enqueue operations and observe EventMsgs through the returned
handle. Outbound model dispatch is intentionally not claimed by this helper
until that part of the engine has moved into core.