Skip to content

Commit f4f3d28

Browse files
Darth-Hidiousclaude
andcommitted
fix: surface actual LLM error in TUI instead of generic 'LLM call failed'
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent fbd3b5d commit f4f3d28

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

crates/agent/src/agent_loop.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -412,6 +412,10 @@ pub async fn run_turn(
412412
.await
413413
.map_err(|e| {
414414
tracing::error!(error = %e, "LLM call failed: {e:#}");
415+
// Surface error details in the UI, not just "LLM call failed"
416+
emit(AgentEvent::TextDelta {
417+
text: format!("Error: {e:#}\n"),
418+
});
415419
e
416420
})
417421
.context("LLM call failed")?;

0 commit comments

Comments
 (0)