{"record":{"id":"ed22c9619fd9484c","repo":"aaif-goose/goose","slug":"shell-command-timed-out-after","errorCode":null,"errorMessage":"Shell command timed out after {:?}: {}","messagePattern":"Shell command timed out after (.+?): (.+?)","errorType":"exception","errorClass":"anyhow::Error","httpStatus":null,"severity":"error","filePath":"crates/goose/src/agents/retry.rs","lineNumber":268,"sourceCode":"            .output()\n            .await?;\n\n        debug!(\n            \"Shell command completed with status: {}, stdout: {}, stderr: {}\",\n            output.status,\n            String::from_utf8_lossy(&output.stdout),\n            String::from_utf8_lossy(&output.stderr)\n        );\n\n        Ok(output)\n    };\n\n    match tokio::time::timeout(timeout, future).await {\n        Ok(result) => result,\n        Err(_) => {\n            let error_msg = format!(\"Shell command timed out after {:?}: {}\", timeout, command);\n            warn!(\"{}\", error_msg);\n            Err(anyhow::anyhow!(\"{}\", error_msg))\n        }\n    }\n}\n\n/// Execute an on_failure command and return an error if it fails\npub async fn execute_on_failure_command(command: &str, retry_config: &RetryConfig) -> Result<()> {\n    execute_on_failure_command_with_timeout(command, get_on_failure_timeout(retry_config)).await\n}\n\npub async fn execute_on_failure_command_with_timeout(\n    command: &str,\n    timeout: Duration,\n) -> Result<()> {\n    info!(\n        \"Executing on_failure command with timeout {:?}: {}\",\n        timeout, command\n    );\n","sourceCodeStart":250,"sourceCodeEnd":286,"githubUrl":"https://github.com/aaif-goose/goose/blob/3810898a7447ec3299be72e223d3570a7aabf0ab/crates/goose/src/agents/retry.rs#L250-L286","documentation":"Error \"Shell command timed out after {:?}: {}\" thrown in aaif-goose/goose.","triggerScenarios":"Thrown at crates/goose/src/agents/retry.rs:268 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":[],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"3810898a7447ec3299be72e223d3570a7aabf0ab","analyzedAt":"2026-08-16T10:14:26.282Z","schemaVersion":2},"datasetVersion":"2026-08-16T13:17:31.715Z"}