Real-time monitoring dashboard for Proxmox VE, PBS, Docker, Kubernetes, TrueNAS and vSphere. Self-hosted, with alerts for failed backups, full disks, unhealthy containers and offline nodes.
Go aialertsdashboarddockerdocker-monitoringgohomelabinfrastructure-monitoringkubernetesmonitoringmspproxmoxproxmox-backup-serverproxmox-mail-gatewayproxmox-veself-hostedtruenastypescriptvspherewebhooks
Show Assistant provider route health in composer
rcourtman05c8874b7d5b
diff --git a/docs/release-control/v6/internal/subsystems/ai-runtime.md b/docs/release-control/v6/internal/subsystems/ai-runtime.mdindex 01fd8667be..8b27630a23 100644--- a/docs/release-control/v6/internal/subsystems/ai-runtime.md+++ b/docs/release-control/v6/internal/subsystems/ai-runtime.md@@ -110,7 +110,10 @@ runtime cost control, and shared AI transport surfaces.drawer may surface the result as actionable retry/settings status plussame-model configured-provider alternatives without converting it intoassistant-authored output. Provider checking is a background diagnostic and- must not delay the user's first useful chat turn; a confirmed selected-route+ must not delay the user's first useful chat turn; the drawer should keep+ routine selected-route health visible in compact composer chrome while+ reserving the larger provider-status banner for requested checks and+ actionable failures. A confirmed selected-routeprovider error must keep typed text and focus without blocking normal chatdispatch. If a same-model configured-provider alternative is available whenthe operator sends while that warning is still visible, the drawer mustdiff --git a/frontend-modern/src/components/AI/Chat/__tests__/AIChat.test.tsx b/frontend-modern/src/components/AI/Chat/__tests__/AIChat.test.tsxindex 0c90c73d14..5ebfebcd3c 100644--- a/frontend-modern/src/components/AI/Chat/__tests__/AIChat.test.tsx+++ b/frontend-modern/src/components/AI/Chat/__tests__/AIChat.test.tsx@@ -1025,7 +1025,7 @@ describe('AIChat', () => {);});- it('keeps a pending selected-provider check quiet while still allowing input', async () => {+ it('shows pending selected-provider checks in the composer without blocking input', async () => {mockAIAPI.getSettings.mockResolvedValue({model: 'openai:gpt-4',chat_model: '',@@ -1042,6 +1042,9 @@ describe('AIChat', () => {});expect(screen.queryByText('Verifying OpenAI provider')).not.toBeInTheDocument();expect(screen.queryByLabelText('Assistant provider status')).not.toBeInTheDocument();+ expect(screen.getByLabelText('Assistant provider route health')).toHaveTextContent(+ 'Checking OpenAI',+ );const textarea = screen.getByPlaceholderText('Ask about your infrastructure...',diff --git a/frontend-modern/src/components/AI/Chat/index.tsx b/frontend-modern/src/components/AI/Chat/index.tsxindex e5877e78ec..2c00bfca2c 100644--- a/frontend-modern/src/components/AI/Chat/index.tsx+++ b/frontend-modern/src/components/AI/Chat/index.tsx@@ -225,6 +225,13 @@ interface ChatProviderReadinessState {action?: string;}+interface AssistantProviderRouteHealthPresentation {+ label: string;+ title: string;+ className: string;+ dotClassName: string;+}+interface PromptHistoryEntry {prompt: string;mentions: MentionResource[];@@ -1916,6 +1923,51 @@ export const AIChat: Component<AIChatProps> = (props) => {return modelRouteAlternativeFor(selectedChatModel());});+ const providerRouteHealth = createMemo<AssistantProviderRouteHealthPresentation | null>(() => {+ const readiness = providerReadiness();+ if (!readiness.provider || readiness.status === 'idle') return null;++ const providerLabel = getAIProviderDisplayName(readiness.provider);+ const routeLabel = readiness.model?.trim() ? formatChatMessageModelRoute(readiness.model) : '';+ const title = compactText([+ readiness.status === 'checking'+ ? `Checking ${providerLabel} provider route`+ : readiness.status === 'ready'+ ? `${providerLabel} provider route ready`+ : `${providerLabel} provider route issue`,+ routeLabel ? `Route: ${routeLabel}` : undefined,+ readiness.summary || readiness.message,+ ]).join('. ');++ if (readiness.status === 'checking') {+ return {+ label: `Checking ${providerLabel}`,+ title,+ className:+ 'border-blue-200 bg-blue-50 text-blue-700 dark:border-blue-900/60 dark:bg-blue-950/30 dark:text-blue-200',+ dotClassName: 'bg-blue-500 animate-pulse',+ };+ }++ if (readiness.status === 'ready') {+ return {+ label: `${providerLabel} ready`,+ title,+ className:+ 'border-emerald-200 bg-emerald-50 text-emerald-700 dark:border-emerald-900/60 dark:bg-emerald-950/30 dark:text-emerald-200',+ dotClassName: 'bg-emerald-500',+ };+ }++ return {+ label: `${providerLabel} issue`,+ title,+ className:+ 'border-amber-200 bg-amber-50 text-amber-800 dark:border-amber-900/60 dark:bg-amber-950/30 dark:text-amber-100',+ dotClassName: 'bg-amber-500',+ };+ });+let providerReadinessRequestId = 0;let lastProviderReadinessKey = '';@@ -4749,6 +4801,24 @@ export const AIChat: Component<AIChatProps> = (props) => {onModelSelect={selectModel}onRefresh={() => loadModels(true)}/>+ <Show when={providerRouteHealth()}>+ {(health) => (+ <div+ role="status"+ aria-label="Assistant provider route health"+ aria-live="polite"+ title={health().title}+ class={`inline-flex h-7 max-w-[11rem] shrink-0 items-center gap-1.5 rounded-md border px-2 text-[10px] font-medium ${health().className}`}+ data-testid="assistant-provider-route-health"+ >+ <span+ class={`h-1.5 w-1.5 shrink-0 rounded-full ${health().dotClassName}`}+ aria-hidden="true"+ />+ <span class="min-w-0 truncate">{health().label}</span>+ </div>+ )}+ </Show><buttontype="button"onClick={openAssistantCommandHelp}