Hmbown/CodeWhale · error

lane log proxy requires a command

Error message

lane log proxy requires a command

What it means

Error "lane log proxy requires a command" thrown in Hmbown/CodeWhale.

Source

Thrown at crates/lane/src/runtime.rs:451

/// hidden CLI should propagate to tmux.
pub fn run_lane_log_proxy(spec: LaneLogProxySpec) -> Result<i32> {
    let LaneLogProxySpec {
        command,
        log_path,
        receipt_path,
        receipt_tmp_path,
        environment_path,
        lane_id,
    } = spec;

    let fail = |error: anyhow::Error, exit_code: i32| -> Result<i32> {
        append_proxy_failure(&log_path, &lane_id, &error)?;
        write_lane_exit_receipt(&receipt_path, &receipt_tmp_path, &lane_id, exit_code)?;
        Ok(exit_code)
    };

    if command.is_empty() {
        return fail(anyhow::anyhow!("lane log proxy requires a command"), 127);
    }

    let environment = if let Some(path) = environment_path.as_deref() {
        let loaded = read_lane_environment(path);
        let removed = remove_file_if_present(path);
        match (loaded, removed) {
            (Ok(environment), Ok(())) => environment,
            (Err(error), Ok(())) => return fail(error, LANE_PROXY_FAILURE_EXIT_CODE),
            (Ok(_), Err(error)) | (Err(_), Err(error)) => return Err(error),
        }
    } else {
        Vec::new()
    };

    let mut child_command = Command::new(&command[0]);
    child_command.args(&command[1..]);
    child_command.envs(environment);
    child_command.stdout(Stdio::piped()).stderr(Stdio::piped());

View on GitHub (pinned to 8880682c63)

When it happens

Trigger: Thrown at crates/lane/src/runtime.rs:451 when the library encounters an invalid state.

Common situations: See trigger scenarios.


AI-assisted analysis of Hmbown/CodeWhale@8880682c63 (2026-08-16). Data as JSON: /api/errors/dd55350f4874bcd9. Report an issue: GitHub.