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 queued Assistant route identity
rcourtmand9e9b952e7e0
diff --git a/docs/release-control/v6/internal/subsystems/ai-runtime.md b/docs/release-control/v6/internal/subsystems/ai-runtime.mdindex 8322600010..719e32acd7 100644--- a/docs/release-control/v6/internal/subsystems/ai-runtime.md+++ b/docs/release-control/v6/internal/subsystems/ai-runtime.md@@ -194,9 +194,11 @@ deriving an older display status from `workflowStatusHistory`.controls plus clear-all, and must drain queued turns in order only after theactive stream becomes idle. Queued follow-ups must snapshot the effectivemodel route at enqueue time so a later model/provider switch cannot silently- reroute an already-queued user turn; explicit failed-turn recovery actions- labelled from a configured provider route must pass that selected route as an- override instead of relying on ambient selector state. The referenced+ reroute an already-queued user turn, and both the transcript queued-user row+ and composer-adjacent queue row must surface that snapshotted route label when+ it exists; explicit failed-turn recovery actions labelled from a configured+ provider route must pass that selected route as an override instead of+ relying on ambient selector state. The referencedOpenCode source at fetched `origin/dev` commit`1399323b78a04229d9bfe00c7436d7f41770fda8` keeps current, recent, andselected models as structured `{ providerID, modelID }` values in@@ -873,9 +875,9 @@ deriving an older display status from `workflowStatusHistory`.removal through `FooterApi.onQueuedRemove`, and are removed from the visiblequeue before their own turn begins. Pulse's Assistant drawer adapts thatbehavior by keeping queued follow-ups in the transcript, showing queue- position plus edit/remove controls on each queued user row, and draining- those rows through the existing chat-runtime queue without aborting the- active model stream.+ position, snapshotted model-route identity, and edit/remove controls on each+ queued user row, and draining those rows through the existing chat-runtime+ queue without aborting the active model stream.The referenced OpenCode source at fetched `origin/dev` commit`09d9cf01f93798939c1284fbe974b6e1f4d2759d` registers the`session.interrupt` command while a turn is non-idle indiff --git a/frontend-modern/src/components/AI/Chat/MessageItem.tsx b/frontend-modern/src/components/AI/Chat/MessageItem.tsxindex 0b7964691f..d0e6e8b5b0 100644--- a/frontend-modern/src/components/AI/Chat/MessageItem.tsx+++ b/frontend-modern/src/components/AI/Chat/MessageItem.tsx@@ -389,6 +389,8 @@ export const MessageItem: Component<MessageItemProps> = (props) => {return `${modelRouteLabel(event.failedModel)} -> ${modelRouteLabel(event.model)}`;};const messageModelLabel = () => modelRouteLabel(props.message.model);+ const queuedModelRouteLabel = () =>+ isQueuedUserMessage() ? modelRouteLabel(props.message.request?.model) : '';const messageDurationLabel = () =>props.message.isStreaming? ''@@ -506,6 +508,16 @@ export const MessageItem: Component<MessageItemProps> = (props) => {><ClockIcon class="h-3 w-3" aria-hidden="true" /><span>{queuedStatusLabel()}</span>+ <Show when={queuedModelRouteLabel()}>+ {(label) => (+ <span+ class="inline-flex max-w-[12rem] items-center rounded border border-blue-200 bg-white/80 px-1.5 py-0.5 text-[10px] font-semibold text-blue-800 dark:border-blue-800 dark:bg-blue-950/40 dark:text-blue-200"+ title={props.message.request?.model}+ >+ <span class="truncate">{label()}</span>+ </span>+ )}+ </Show><Show when={props.onEditQueued}><buttontype="button"diff --git a/frontend-modern/src/components/AI/Chat/__tests__/AIChat.test.tsx b/frontend-modern/src/components/AI/Chat/__tests__/AIChat.test.tsxindex 61a8e8e2e5..11c8f7b2f3 100644--- a/frontend-modern/src/components/AI/Chat/__tests__/AIChat.test.tsx+++ b/frontend-modern/src/components/AI/Chat/__tests__/AIChat.test.tsx@@ -2724,13 +2724,23 @@ describe('AIChat', () => {await waitFor(() => expect(document.activeElement).toBe(textarea));});- it('shows queued follow-up count and clears queued follow-ups', () => {+ it('shows queued follow-up count, route identity, and clears queued follow-ups', async () => {+ mockAIAPI.getModels.mockResolvedValue({+ models: [+ {+ id: 'openrouter:qwen/qwen3.7-plus',+ name: 'Qwen: Qwen3.7 Plus',+ provider: 'openrouter',+ },+ ],+ });mockChat.queuedFollowUpCount.mockReturnValue(2);mockChat.queuedFollowUps.mockReturnValue([{id: 'queued-1',messageId: 'msg-queued-1',prompt: 'first queued prompt',+ sendOptions: { model: 'openrouter:qwen/qwen3.7-plus' },timestamp: new Date(),},{@@ -2747,6 +2757,9 @@ describe('AIChat', () => {);expect(screen.getByText('first queued prompt')).toBeInTheDocument();expect(screen.getByText('second queued prompt')).toBeInTheDocument();+ await waitFor(() => {+ expect(screen.getByText('Route: Qwen: Qwen3.7 Plus via OpenRouter')).toBeInTheDocument();+ });fireEvent.click(screen.getByRole('button', { name: 'Clear queued follow-up messages' }));diff --git a/frontend-modern/src/components/AI/Chat/__tests__/MessageItem.test.tsx b/frontend-modern/src/components/AI/Chat/__tests__/MessageItem.test.tsxindex 8d633ceb10..2e4343f4ea 100644--- a/frontend-modern/src/components/AI/Chat/__tests__/MessageItem.test.tsx+++ b/frontend-modern/src/components/AI/Chat/__tests__/MessageItem.test.tsx@@ -175,8 +175,14 @@ describe('MessageItem', () => {role: 'user',content: 'follow up after this',delivery: 'queued',+ request: { model: 'openrouter:qwen/qwen3.7-plus' },})}{...makeHandlers()}+ getModelRouteLabel={(modelId) =>+ modelId === 'openrouter:qwen/qwen3.7-plus'+ ? 'Qwen 3.7 Plus via OpenRouter'+ : modelId+ }queuedPosition={2}queuedCount={3}onEditQueued={onEditQueued}@@ -186,6 +192,7 @@ describe('MessageItem', () => {expect(screen.getByText('follow up after this')).toBeInTheDocument();expect(screen.getByRole('status')).toHaveTextContent('Queued 2 of 3');+ expect(screen.getByRole('status')).toHaveTextContent('Qwen 3.7 Plus via OpenRouter');fireEvent.click(screen.getByRole('button', { name: 'Edit queued follow-up' }));expect(onEditQueued).toHaveBeenCalledTimes(1);diff --git a/frontend-modern/src/components/AI/Chat/index.tsx b/frontend-modern/src/components/AI/Chat/index.tsxindex 66628e372b..74266d059a 100644--- a/frontend-modern/src/components/AI/Chat/index.tsx+++ b/frontend-modern/src/components/AI/Chat/index.tsx@@ -1639,6 +1639,10 @@ export const AIChat: Component<AIChatProps> = (props) => {const match = aiRuntimeModels().find((candidate) => candidate.id === normalized);return match ? formatAIModelRouteLabel(match) : formatAIModelRouteLabel(normalized);};+ const queuedFollowUpRouteLabel = (queued: QueuedFollowUp) => {+ const model = queued.sendOptions?.model?.trim();+ return model ? formatChatMessageModelRoute(model) : '';+ };const providerForModelRoute = (modelId: string) => {const normalized = modelId.trim();@@ -4614,18 +4618,35 @@ export const AIChat: Component<AIChatProps> = (props) => {<For each={chat.queuedFollowUps()}>{(queued, index) => {const preview = () => queuedFollowUpPreview(queued.prompt);+ const routeLabel = () => queuedFollowUpRouteLabel(queued);+ const rowLabel = () =>+ routeLabel()+ ? `Queued follow-up: ${preview()}. Route: ${routeLabel()}. Press Enter to edit or Delete to remove.`+ : `Queued follow-up: ${preview()}. Press Enter to edit or Delete to remove.`;return (<divclass="flex min-h-7 items-center gap-2 rounded-md bg-white/70 px-2 py-1 text-xs text-blue-900 outline-none transition-colors focus:bg-white focus:ring-2 focus:ring-blue-500/40 dark:bg-blue-900/30 dark:text-blue-100 dark:focus:bg-blue-900/50"role="listitem"tabIndex={0}- aria-label={`Queued follow-up: ${preview()}. Press Enter to edit or Delete to remove.`}+ aria-label={rowLabel()}data-testid="assistant-queued-follow-up-row"onKeyDown={(event) =>handleQueuedFollowUpRowKeyDown(event, queued.id)}>- <span class="min-w-0 flex-1 truncate">{preview()}</span>+ <span class="min-w-0 flex-1">+ <span class="block truncate">{preview()}</span>+ <Show when={routeLabel()}>+ {(label) => (+ <span+ class="block truncate text-[10px] font-medium text-blue-700 dark:text-blue-200"+ title={queued.sendOptions?.model}+ >+ Route: {label()}+ </span>+ )}+ </Show>+ </span><Show when={chat.queuedFollowUpCount() > 1 && index() > 0}><buttontype="button"