You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
TUI sink discards actual error message in TurnFailed — user sees useless generic 'turn_failed (code=-32099)' #114
When a turn fails internally (e.g. LLM API error, missing dependency), the TUI only shows error: turn_failed (code=-32099) — a generic catch-all message that provides zero diagnostic value to the user.
The actual error (the exception message captured as TurnFailed.error) is silently discarded by the TUI sink before it reaches the user.
Root Cause
In raven/tui_rpc/spine.py, the _make_tui_sink function handles TurnFailed events like this:
It hardcodes the message "turn_failed" and ignores event.error — which contains the actual exception string from the scheduler (str(exc) at raven/spine/scheduler.py:280). The user sees a useless generic error instead of the real problem.
Example
On a missing orjson dependency (issue #113), the user got:
error: turn_failed (code=-32099)
While the actual error logged (inaccessible to the user) was:
Error calling LLM: litellm.APIConnectionError: APIConnectionError:
OpenAIException - No module named 'orjson'
Had event.error been shown, the user could have fixed it without reading source code.
Suggested Fix
Replace the hardcoded string with the actual error:
Activity
fix(tui): surface the real turn-failure detail, not just the code (#190)
fix(tui): surface the real turn-failure detail, not just the code (Ev…