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) {...@@ -1105,10 +1105,9 @@ export default function ChatView({ threadId }: ChatViewProps) {
1105 const keybindings = serverConfigQuery.data?.keybindings ?? EMPTY_KEYBINDINGS;1105 const keybindings = serverConfigQuery.data?.keybindings ?? EMPTY_KEYBINDINGS;
1106 const availableEditors = serverConfigQuery.data?.availableEditors ?? EMPTY_AVAILABLE_EDITORS;1106 const availableEditors = serverConfigQuery.data?.availableEditors ?? EMPTY_AVAILABLE_EDITORS;
1107 const providerStatuses = serverConfigQuery.data?.providers ?? EMPTY_PROVIDER_STATUSES;1107 const providerStatuses = serverConfigQuery.data?.providers ?? EMPTY_PROVIDER_STATUSES;
1108 const activeProvider = activeThread?.session?.provider ?? "codex";
1109 const activeProviderStatus = useMemo(1108 const activeProviderStatus = useMemo(
1110 () => providerStatuses.find((status) => status.provider === activeProvider) ?? null,1109 () => providerStatuses.find((status) => status.provider === selectedProvider) ?? null,
1111 [activeProvider, providerStatuses],1110 [selectedProvider, providerStatuses],
1112 );1111 );
1113 const activeProjectCwd = activeProject?.cwd ?? null;1112 const activeProjectCwd = activeProject?.cwd ?? null;
1114 const activeThreadWorktreePath = activeThread?.worktreePath ?? 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,7 +22,7 @@ export const ProviderHealthBanner = memo(function ProviderHealthBanner({
22 status.status === "error"22 status.status === "error"
23 ? `${providerLabel} provider is unavailable.`23 ? `${providerLabel} provider is unavailable.`
24 : `${providerLabel} provider has limited availability.`;24 : `${providerLabel} provider has limited availability.`;
25 const title = providerLabel === "Codex" ? "Codex provider status" : `${providerLabel} status`;25 const title = `${providerLabel} provider status`;
2626
27 return (27 return (
28 <div className="pt-3 mx-auto max-w-3xl">28 <div className="pt-3 mx-auto max-w-3xl">