Skip to content

fix: surface Langflow error and empty-response messages to users#10

Merged
cfchase merged 1 commit into
mainfrom
fix/surface-langflow-error-messages
Feb 20, 2026
Merged

fix: surface Langflow error and empty-response messages to users#10
cfchase merged 1 commit into
mainfrom
fix/surface-langflow-error-messages

Conversation

@cfchase
Copy link
Copy Markdown
Owner

@cfchase cfchase commented Feb 20, 2026

Summary

  • Add extract_error_from_sse_data() to detect Langflow SSE error events during streaming and raise LangflowError so they propagate to the user
  • Change the empty-response path from a silent done event to an explicit error event with a descriptive message
  • Add comprehensive unit tests for both SSE extraction functions and an integration test for the empty-response scenario

Test plan

  • All 227 backend tests pass
  • Verified in browser: rejected queries now show error with danger icon and retry link
  • Verified via curl: empty response returns {"type": "error", "error": "No response received..."}
  • PR review agents (code review, comment analysis, test coverage, silent failure hunting) found no unresolved issues

🤖 Generated with Claude Code

When a Langflow flow rejects a query or returns no content, the UI now
displays an error message instead of silently showing nothing. This adds
extract_error_from_sse_data() to detect Langflow SSE error events during
streaming, and changes the empty-response path from a silent "done" to an
explicit error event.
@cfchase cfchase merged commit a457b9c into main Feb 20, 2026
4 checks passed
@cfchase cfchase deleted the fix/surface-langflow-error-messages branch February 20, 2026 17:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant