fix(ui): keep provisioning chat routes polling until ready#172
Conversation
👍 GitRank PR AnalysisScore: 20 points
Eligibility Checks
Impact SummaryThis PR fixes a polling lifecycle bug in the chat provisioning flow where the application would stop checking for route readiness after the first unchanged response. The fix ensures continuous polling until the route becomes chat-ready and a conversation is successfully opened. Two comprehensive regression tests are added to cover delayed provisioning and delayed direct-route discovery scenarios. Analysis DetailsComponent Classification: This PR affects UI chat routing logic and does not fit into a specific high-impact category. It's classified as OTHER since it's a general bug fix in the chat page provisioning flow. Severity Justification: This is a P2 (Medium) severity bug fix. It addresses a functional issue where provisioning chat routes stop polling prematurely instead of waiting until the instance is ready, causing user-facing failures. However, it's not a critical service outage or security risk, and users have a workaround (manual refresh). Eligibility Notes: Issue: True - PR clearly describes a bug fix for premature polling termination. Fix Implementation: True - code changes align with the stated goal of keeping polling alive until readiness. PR Linked: True - comprehensive description with TL;DR, summary, and test plan. Tests: True - 140 lines of test additions with two new regression test cases. Tests Required: True - this is a business logic bug fix in the chat routing system that requires test coverage to prevent regressions. Analyzed by GitRank 🤖 |
TL;DR
This keeps fresh agent chat routes polling until the instance is actually ready, instead of stopping after the first unchanged provisioning response.
It also adds regressions for both repeated provisioning polls and delayed direct-route discovery.
Summary
Review focus
Test plan