fix(web): use selected provider for pre-session health banner#25
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (3)
📝 WalkthroughWalkthroughThis pull request introduces a new helper function 🚥 Pre-merge checks | ✅ 2 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (2 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. 📝 Coding Plan
Comment Tip You can customize the high-level summary generated by CodeRabbit.Configure the |
What Changed
apps/web/src/components/ChatView.logic.tsto resolve which provider’s health banner should be shown.apps/web/src/components/ChatView.tsxso that when a thread has no active session yet (pre-session), the banner follows the currently selected draft provider instead of defaulting to Codex.apps/web/src/components/ChatView.logic.test.tsto cover:Why
When creating a new thread from the sidebar
+, the thread starts in a pre-session state; previously, banner provider resolution fell back to Codex, which could show:for Copilot-first workflows where Codex is intentionally not installed.
This change keeps behavior minimal and focused: it only adjusts banner-provider resolution in the web UI and does not modify provider runtime/server protocol flow.
UI Changes
Before (Codex warning shown even in Copilot workflow pre-session):
After:
With Copilot:

With Codex:

Checklist
Refs #24
Summary by CodeRabbit
Tests
Refactor