Conversation
|
Implemented the chat recovery refactor and the follow-up hardening fixes on this branch. What changed:
Validation run on the current head (
Review loop:
GitHub status:
From my side this PR is ready to merge. |
👍 GitRank PR AnalysisScore: 20 points
Eligibility Checks
Impact SummaryThe PR adds HTML error document summarization to prevent raw markup from appearing in chat status messages, toasts, and transcript rendering. It extracts error codes, titles, and provider information from full HTML error pages (e.g., Cloudflare 525 errors) and displays a concise summary instead. The changes include refactoring chat connection logic into a reusable hook (useChatConnection) with improved retry policies and transcript session management. Analysis DetailsComponent Classification: This PR affects multiple UI and library components (markdown rendering, API error handling, transcript management, chat connection logic) without a single dominant area. Classified as OTHER due to cross-cutting refactoring nature. Severity Justification: This is a P2 (Medium) bug fix that prevents raw HTML markup from being displayed to users in error scenarios. While it improves user experience and prevents potential XSS-like issues with unescaped HTML, it doesn't cause service downtime or data loss—it's a functional bug with a workaround (users see raw HTML instead of summarized errors). Eligibility Notes: Issue: True—fixes a bug where HTML error documents were being displayed raw to users. Fix Implementation: True—code changes align with PR title and description, adding HTML error summarization across multiple layers. PR Linked: True—clear summary and testing section provided. Tests: True—comprehensive test coverage added for html-error, api, markdown, chat-retry-policy, chat-transcript-session, and chat page integration tests. Tests Required: True—this is a bug fix in business logic (error handling) and refactoring of critical chat connection code, both requiring test coverage to prevent regressions. Analyzed by GitRank 🤖 |
Summary
Testing