@devries-cameron20 / t3code-1 / commits / 25c7003226
Fork 0

The best way to control Claude Code, Codex and more from any computer or phone

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

Ibrahim Elkamali committed Mar 20, 2026 at 21:28 UTC 25c70032266aea4ad416251dfe46ad12142e136a
2 files changed +3 -4
apps/web/src/components/ChatView.tsx
+2 -3
@@ -1105,10 +1105,9 @@ export default function ChatView({ threadId }: ChatViewProps) {
1105 const keybindings = serverConfigQuery.data?.keybindings ?? EMPTY_KEYBINDINGS;
1106 const availableEditors = serverConfigQuery.data?.availableEditors ?? EMPTY_AVAILABLE_EDITORS;
1107 const providerStatuses = serverConfigQuery.data?.providers ?? EMPTY_PROVIDER_STATUSES;
1108 - const activeProvider = activeThread?.session?.provider ?? "codex";
1108 const activeProviderStatus = useMemo(
1110 - () => providerStatuses.find((status) => status.provider === activeProvider) ?? null,
1111 - [activeProvider, providerStatuses],
1109 + () => providerStatuses.find((status) => status.provider === selectedProvider) ?? null,
1110 + [selectedProvider, providerStatuses],
1111 );
1112 const activeProjectCwd = activeProject?.cwd ?? null;
1113 const activeThreadWorktreePath = activeThread?.worktreePath ?? null;
apps/web/src/components/chat/ProviderHealthBanner.tsx
+1 -1
@@ -22,7 +22,7 @@ export const ProviderHealthBanner = memo(function ProviderHealthBanner({
22 status.status === "error"
23 ? `${providerLabel} provider is unavailable.`
24 : `${providerLabel} provider has limited availability.`;
25 - const title = providerLabel === "Codex" ? "Codex provider status" : `${providerLabel} status`;
25 + const title = `${providerLabel} provider status`;
26
27 return (
28 <div className="pt-3 mx-auto max-w-3xl">