Hmbown/CodeWhale · error
127
127
Error message
lane log proxy requires a command
What it means
Startup guard in run_lane_log_proxy: the spec's command vector is empty, so there is no child process to spawn and proxy logs for. The proxy records this failure (plus an exit receipt) into the lane's log and receipt paths before returning a failure exit code, so tmux and callers can observe why the lane died.
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 0c42157ee5)
Solutions
- Fix the lane definition so its command is a non-empty argv (program plus arguments)
- Check the lane config source for a missing or blank command field and re-save it
- Restart the lane after correcting the command
Defensive patterns
Strategy: validation
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@0c42157ee5 (2026-08-20).
Data as JSON: /api/errors/de79eadb865dd558.
Report an issue: GitHub.