aaif-goose/goose · error · anyhow::Error
Failed to get reply from agent: {}
Error message
Failed to get reply from agent: {} What it means
Error "Failed to get reply from agent: {}" thrown in aaif-goose/goose.
Source
Thrown at crates/goose/src/agents/subagent_handler.rs:200
for activity in activities {
info!("Recipe activity: {}", activity);
}
}
let session_config = SessionConfig {
id: session_id.clone(),
schedule_id: None,
max_turns: task_config.max_turns.map(|v| v as u32),
retry_config: recipe.retry,
};
let mut stream =
crate::session_context::with_session_id(Some(session_id.to_string()), async {
agent
.reply(user_message, session_config, cancellation_token)
.await
})
.await
.map_err(|e| anyhow!("Failed to get reply from agent: {}", e))?;
while let Some(message_result) = stream.next().await {
match message_result {
Ok(AgentEvent::Message(msg)) => {
if let Some(ref callback) = on_message {
callback(&msg);
}
if let Some(ref tx) = notification_tx {
for content in &msg.content {
if let Some(notif) = create_tool_notification(content, &session_id) {
if tx.send(notif).is_err() {
debug!(
"Notification receiver dropped for subagent {}",
session_id
);
}
}
}View on GitHub (pinned to 3810898a74)
When it happens
Trigger: Thrown at crates/goose/src/agents/subagent_handler.rs:200 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of aaif-goose/goose@3810898a74 (2026-08-16).
Data as JSON: /api/errors/ac868d307596dde0.
Report an issue: GitHub.