feat: add full error details to streaming failure dialog #10131
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Fixes the error details dialog to show full error information (including stack traces) when streaming failures occur.
Changes
apiReqStreamingFailedMessageto theerrorDetailsprop ofErrorRowcomponentProblem
When API streaming failed, users would see a generic error message in the chat UI, but the detailed error information (error message, stack trace, modelId, taskId) was only logged to the console. The error details dialog introduced in #10050 was not receiving this information.
Solution
Updated
ChatRow.tsxto pass the streaming failure message to theerrorDetailsprop, which triggers the display of the info icon and allows users to view and copy the full error details.Testing
View task on Roo Code Cloud
Note
Enable full streaming error details in chat UI and unify retry backoff handling by simplifying
backoffAndAnnounceand its call sites.ChatRow.tsx: PassapiReqStreamingFailedMessagetoErrorRowviaerrorDetails, enabling full error detail dialog for streaming failures.backoffAndAnnouncenow derives header text fromerror(removedheaderarg); update all call sites (first‑chunk, mid‑stream, empty‑response retries).Written by Cursor Bugbot for commit 4e0861f. This will update automatically on new commits. Configure here.
Important
Enhance error visibility in chat UI by passing detailed error messages to
ErrorRowinChatRow.tsxand clean up unused code inTask.ts.apiReqStreamingFailedMessagetoerrorDetailsprop ofErrorRowinChatRow.tsxto display full error context in the UI.statevariable inTask.ts.backoffAndAnnounce()calls inTask.tsby removingstreamingFailedMessageparameter.didEndLoopvariable inTask.ts.This description was created by
for 4e0861f. You can customize this summary. It will automatically update as commits are pushed.