authorgravatar for 126423069+Marve10s@users.noreply.github.comIbrahim Elkamali <126423069+Marve10s@users.noreply.github.com> 2026-03-20 21:28:05+03:00
committergravatar for noreply@github.comGitHub <noreply@github.com> 2026-03-20 18:28:05+00:00
log25c70032266aea4ad416251dfe46ad12142e136a
tree733a5e7d4cf3e8f7d8b78d3a8a1f258106d462d3
parent46e63b36121da87195280ef447e5d4f712a115e9
signature Signed by PGP key B5690EEEBB952194

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


2 files changed, 3 insertions(+), 4 deletions(-)

apps/web/src/components/ChatView.tsx+2-3
......@@ -1105,10 +1105,9 @@ export default function ChatView({ threadId }: ChatViewProps) {
11051105 const keybindings = serverConfigQuery.data?.keybindings ?? EMPTY_KEYBINDINGS;
11061106 const availableEditors = serverConfigQuery.data?.availableEditors ?? EMPTY_AVAILABLE_EDITORS;
11071107 const providerStatuses = serverConfigQuery.data?.providers ?? EMPTY_PROVIDER_STATUSES;
1108 const activeProvider = activeThread?.session?.provider ?? "codex";
11091108 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],
11121111 );
11131112 const activeProjectCwd = activeProject?.cwd ?? null;
11141113 const activeThreadWorktreePath = activeThread?.worktreePath ?? null;
apps/web/src/components/chat/ProviderHealthBanner.tsx+1-1
......@@ -22,7 +22,7 @@ export const ProviderHealthBanner = memo(function ProviderHealthBanner({
2222 status.status === "error"
2323 ? `${providerLabel} provider is unavailable.`
2424 : `${providerLabel} provider has limited availability.`;
25 const title = providerLabel === "Codex" ? "Codex provider status" : `${providerLabel} status`;
25 const title = `${providerLabel} provider status`;
2626
2727 return (
2828 <div className="pt-3 mx-auto max-w-3xl">