fix: surface insight generation errors in the UI#201
Conversation
The insight generation SSE error event was sending a generic "X generation failed" message, hiding the actual error from users. Now the real error (e.g. "claude CLI not found", "gemini failed: exit status 1") is sent to the client, with stderr dumps stripped for brevity (full logs are already visible in the task log stream). Also expands the task-logs panel on error (240px vs 132px) with a red-tinted border so failures are more visible. Closes #175 Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Task items in the sidebar are now clickable — selecting one shows its error details and full execution log in the main content area instead of cramming them into the narrow sidebar. On error, the failed task is auto-selected so the user immediately sees the error banner and log output. The sidebar task item keeps a short error summary line but the full log viewer has moved to the main pane with proper scrolling (50vh max) and formatting. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
roborev: Combined Review (
|
The main-pane close button was always calling dismissTask(), which removes the task from the UI without aborting the underlying generation. Now it calls cancelTask() for active tasks and dismissTask() only for errored ones, matching the sidebar behavior. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Ignore keydown events bubbling from the nested dismiss button so keyboard activation of the inner button doesn't also trigger selectTask(). Add test coverage for the \nraw: stripping path in insightGenerateClientMessage. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
roborev: Combined Review (
|
roborev: Combined Review (
|
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
roborev: Combined Review (
|
Summary
failed: exit status 1") to the client instead of the generic
"X generation failed" message. Stderr dumps are stripped from the
short message since they're already visible in the log stream.
instead of cramming them into the narrow sidebar. On error, the
failed task is auto-selected so the user immediately sees an error
banner and full log output.
main pane (both during generation and after errors).
Closes #175
Generated with Claude Code