Skip to main content

spawn_long_running

Function spawn_long_running 

Source
pub fn spawn_long_running(
    builtin: &'static str,
    program: String,
    args: Vec<String>,
    cwd: Option<PathBuf>,
    env: BTreeMap<String, String>,
    session_id: String,
) -> Result<LongRunningHandleInfo, HostlibError>
Expand description

Spawn the argv as a long-running child process and return a handle.

The background waiter calls push_pending_feedback_global when the process exits so the next agent-loop turn sees the result.