Skip to content

fix(web): show health banner for selected provider instead of defaulting to Codex#1223

Merged
juliusmarminge merged 2 commits intopingdotgg:mainfrom
Marve10s:fix/provider-health-banner-wrong-provider
Mar 20, 2026
Merged

fix(web): show health banner for selected provider instead of defaulting to Codex#1223
juliusmarminge merged 2 commits intopingdotgg:mainfrom
Marve10s:fix/provider-health-banner-wrong-provider

Conversation

@Marve10s
Copy link
Copy Markdown
Contributor

@Marve10s Marve10s commented Mar 20, 2026

Summary

  • The ProviderHealthBanner always displayed the Codex provider status regardless of which provider the user selected in the composer, because activeProvider fell back to "codex" when no session existed yet (sessions are only created after the first message is sent).
  • Replaced the hardcoded "codex" fallback with selectedProvider, which correctly resolves from the composer draft's provider selection.
  • Unified the banner title format across providers ("<provider> provider status" for all, instead of special-casing Codex).

Note

[!NOTE]

Fix health banner to show status for the selected provider instead of defaulting to Codex

  • In ChatView.tsx, the active provider status lookup now uses selectedProvider instead of activeThread?.session?.provider with a "codex" fallback.
  • In ProviderHealthBanner.tsx, the alert title is now "<Provider> provider status" for all providers, removing prior special-casing that omitted "provider" for non-Codex labels.

Macroscope summarized 20e79bd.

…defaulting to Codex

The health banner always showed the Codex provider status regardless of
which provider the user selected, because activeProvider fell back to
"codex" when no session existed yet. Use selectedProvider instead, which
correctly resolves from the composer draft selection.
@coderabbitai
Copy link
Copy Markdown

coderabbitai bot commented Mar 20, 2026

Important

Review skipped

Auto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: Repository UI

Review profile: CHILL

Plan: Pro

Run ID: 3d984920-009b-49e2-ab33-bd8f8bc298a2

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

Tip

CodeRabbit can use oxc to improve the quality of JavaScript and TypeScript code reviews.

Add a configuration file to your project to customize how CodeRabbit runs oxc.

@github-actions github-actions bot added size:XS 0-9 changed lines (additions + deletions). vouch:unvouched PR author is not yet trusted in the VOUCHED list. labels Mar 20, 2026
@juliusmarminge juliusmarminge enabled auto-merge (squash) March 20, 2026 18:26
@juliusmarminge juliusmarminge merged commit 25c7003 into pingdotgg:main Mar 20, 2026
9 checks passed
aaditagrawal pushed a commit to aaditagrawal/t3code that referenced this pull request Mar 21, 2026
gabrielMalonso pushed a commit to gabrielMalonso/t3code that referenced this pull request Mar 21, 2026
apexsloth pushed a commit to apexslothforks/t3code that referenced this pull request Mar 26, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size:XS 0-9 changed lines (additions + deletions). vouch:unvouched PR author is not yet trusted in the VOUCHED list.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants