Skip to content

feat: surface Langflow error messages to users#9

Merged
cfchase merged 1 commit into
mainfrom
feature/show-langflow-errors
Feb 19, 2026
Merged

feat: surface Langflow error messages to users#9
cfchase merged 1 commit into
mainfrom
feature/show-langflow-errors

Conversation

@cfchase
Copy link
Copy Markdown
Owner

@cfchase cfchase commented Feb 19, 2026

Summary

  • Replace generic error message with actual Langflow/backend error text in chat UI
  • Preserve partial streamed content when errors occur mid-stream
  • Use PatternFly Message.error prop and extraContent.afterMainContent for clean error rendering with inline retry
  • Track errors by message ID instead of fragile string matching
  • Auto-generate TOKEN_ENCRYPTION_KEY for local dev so OAuth integrations (Google Drive, Dataverse) work without manual config
  • Default .env.example to ENVIRONMENT=development with OAuth enabled

Test plan

  • make test-frontend — 22 tests pass (3 new error scenario tests), lint + typecheck clean
  • make test-backend — 209 tests pass, including updated encryption tests
  • Code review, security review, and architectural review completed by agent team
  • UI tested via chrome-devtools: error messages display correctly with retry button
  • Manual verification: send message to a flow missing an API key, confirm error surfaces
  • Manual verification: stop Langflow, send message, confirm "connection refused" appears
  • Manual verification: restart backend without TOKEN_ENCRYPTION_KEY set, confirm OAuth integrations still work

🤖 Generated with Claude Code

…n encryption key

Replace generic "Sorry, an error occurred" with actual error messages from
Langflow and the backend. Preserve partial streamed content when errors
occur mid-stream. Use PatternFly Alert error prop and extraContent for
clean rendering with retry support.

Also auto-generate TOKEN_ENCRYPTION_KEY for local dev so OAuth integrations
work without manual configuration, and default .env.example to development
mode with OAuth enabled.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@cfchase cfchase merged commit efd0f9a into main Feb 19, 2026
7 of 8 checks passed
@cfchase cfchase deleted the feature/show-langflow-errors branch February 19, 2026 18:09
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