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
Improve Assistant in-flight progress
rcourtman9cdee482d5db
diff --git a/docs/release-control/v6/internal/status.json b/docs/release-control/v6/internal/status.jsonindex 90a15b3815..3cdee5bf39 100644--- a/docs/release-control/v6/internal/status.json+++ b/docs/release-control/v6/internal/status.json@@ -6763,7 +6763,21 @@],"coverage_gaps": [],"candidate_lanes": [],- "work_claims": [],+ "work_claims": [+ {+ "id": "codex-lane-followup-architecture-post-rc-canonicalization",+ "agent_id": "codex",+ "summary": "Improve Assistant frontend in-flight progress and session ergonomics toward OpenCode parity",+ "target_id": "v6-product-lane-expansion",+ "claimed_at": "2026-06-05T21:57:48Z",+ "heartbeat_at": "2026-06-05T21:57:48Z",+ "expires_at": "2026-06-05T23:57:48Z",+ "work_item": {+ "kind": "lane-followup",+ "id": "architecture-post-rc-canonicalization"+ }+ }+ ],"open_decisions": [],"source_of_truth_file": "docs/release-control/v6/internal/SOURCE_OF_TRUTH.md","resolved_decisions": [diff --git a/docs/release-control/v6/internal/subsystems/ai-runtime.md b/docs/release-control/v6/internal/subsystems/ai-runtime.mdindex 49f27949de..62b33d1aa3 100644--- a/docs/release-control/v6/internal/subsystems/ai-runtime.md+++ b/docs/release-control/v6/internal/subsystems/ai-runtime.md@@ -183,6 +183,14 @@ runtime cost control, and shared AI transport surfaces.turns, and selected-provider startup. These events are runtime progress, notAssistant-authored analysis, and they must not become keyword routers,explore pre-passes, or instructions that choose the model's next action.+ The drawer transcript owns visible in-flight progress for the active turn:+ a new assistant row must start with a neutral local preparation status until+ stream progress arrives, must show the current effective model route while+ the turn is still streaming, and must render late workflow progress in the+ assistant row instead of only in drawer chrome. Workflow status is live+ progress, not answer content; once visible assistant text, tool progress,+ approvals, or questions begin, stale workflow text must clear so the row does+ not keep saying it is waiting on a phase that has already been superseded.Streamed provider startup must be bounded by the configured Assistant requesttimeout and the OpenAI-compatible SSE response-header guard; transientstartup failures may retry once before surfacing failed-turn recovery, but adiff --git a/frontend-modern/src/components/AI/Chat/MessageItem.tsx b/frontend-modern/src/components/AI/Chat/MessageItem.tsxindex 64d1f8a575..1a2ba2061c 100644--- a/frontend-modern/src/components/AI/Chat/MessageItem.tsx+++ b/frontend-modern/src/components/AI/Chat/MessageItem.tsx@@ -109,10 +109,12 @@ export const MessageItem: Component<MessageItemProps> = (props) => {!props.message.content.trim() &&!hasRenderableStreamEvents() &&!props.message.error;+ const workflowStatusText = createMemo(() => props.message.workflowStatus?.message?.trim() || '');const inlineStreamingStatusText = createMemo(() => {- const workflowMessage = props.message.workflowStatus?.message?.trim();- return workflowMessage || 'Thinking...';+ return workflowStatusText() || 'Thinking...';});+ const shouldShowHeaderWorkflowStatus = () =>+ props.message.isStreaming && !isWaitingForFirstToken() && !!workflowStatusText();const interruptionLabel = createMemo(() => {switch (props.message.interruption) {case 'replaced':@@ -170,18 +172,28 @@ export const MessageItem: Component<MessageItemProps> = (props) => {</div><div class="min-w-0 flex-1">- <div class="mb-2 flex min-h-7 items-center gap-2">- <span class="text-xs font-semibold text-base-content">+ <div class="mb-2 flex min-h-7 min-w-0 items-center gap-2">+ <span class="shrink-0 text-xs font-semibold text-base-content">{AI_CHAT_ASSISTANT_MESSAGE_LABEL}</span>- <Show when={messageModelLabel() && !props.message.isStreaming}>+ <Show when={messageModelLabel()}><span- class="truncate rounded border border-border-subtle bg-surface-alt px-1.5 py-0.5 text-[10px] font-medium text-muted"+ class="max-w-[12rem] truncate rounded border border-border-subtle bg-surface-alt px-1.5 py-0.5 text-[10px] font-medium text-muted"title={props.message.model}>{messageModelLabel()}</span></Show>+ <Show when={shouldShowHeaderWorkflowStatus()}>+ <span+ class="inline-flex min-w-0 max-w-[18rem] items-center gap-1.5 rounded border border-blue-200 bg-blue-50 px-1.5 py-0.5 text-[10px] font-medium text-blue-700 dark:border-blue-900/60 dark:bg-blue-950/30 dark:text-blue-200"+ title={workflowStatusText()}+ aria-live="polite"+ >+ <span class="h-1.5 w-1.5 shrink-0 rounded-full bg-blue-500 animate-pulse" />+ <span class="truncate">{workflowStatusText()}</span>+ </span>+ </Show><Show when={canCopy()}><buttontype="button"diff --git a/frontend-modern/src/components/AI/Chat/__tests__/MessageItem.test.tsx b/frontend-modern/src/components/AI/Chat/__tests__/MessageItem.test.tsxindex 72353555cc..174117eabc 100644--- a/frontend-modern/src/components/AI/Chat/__tests__/MessageItem.test.tsx+++ b/frontend-modern/src/components/AI/Chat/__tests__/MessageItem.test.tsx@@ -388,7 +388,7 @@ describe('MessageItem', () => {expect(screen.getByText('claude-3.5-sonnet')).toBeInTheDocument();});- it('does not show model name when message is streaming', () => {+ it('keeps the active model route visible while streaming', () => {render(() => (<MessageItemmessage={makeMessage({@@ -400,7 +400,7 @@ describe('MessageItem', () => {/>));- expect(screen.queryByText('claude-3.5-sonnet')).not.toBeInTheDocument();+ expect(screen.getByText('claude-3.5-sonnet')).toBeInTheDocument();});it('does not show model name when model is not provided', () => {@@ -532,6 +532,29 @@ describe('MessageItem', () => {expect(screen.queryByText('Thinking...')).not.toBeInTheDocument();});+ it('shows current workflow progress in the assistant header after visible content starts', () => {+ render(() => (+ <MessageItem+ message={makeMessage({+ role: 'assistant',+ content: 'Partial answer',+ isStreaming: true,+ pendingTools: [],+ streamEvents: [{ type: 'content', content: 'Partial answer' }],+ workflowStatus: {+ phase: 'provider_start',+ message: 'Waiting for OpenRouter to start responding.',+ },+ })}+ {...makeHandlers()}+ />+ ));++ expect(screen.getByText('Partial answer')).toBeInTheDocument();+ expect(screen.getByText('Waiting for OpenRouter to start responding.')).toBeInTheDocument();+ expect(screen.queryByText('Thinking...')).not.toBeInTheDocument();+ });+it('does not show cursor when streaming but there are pending tools', () => {const { container } = render(() => (<MessageItemdiff --git a/frontend-modern/src/components/AI/Chat/__tests__/useChat.test.ts b/frontend-modern/src/components/AI/Chat/__tests__/useChat.test.tsindex bad68349b4..1cdafcf0d2 100644--- a/frontend-modern/src/components/AI/Chat/__tests__/useChat.test.ts+++ b/frontend-modern/src/components/AI/Chat/__tests__/useChat.test.ts@@ -180,6 +180,10 @@ describe('useChat', () => {content: '',isStreaming: true,pendingTools: [],+ workflowStatus: {+ phase: 'request_start',+ message: 'Preparing Pulse context.',+ },});expect(mockCreateSession).not.toHaveBeenCalled();expect(mockChat).toHaveBeenCalledOnce();@@ -962,6 +966,50 @@ describe('useChat', () => {dispose();});+ it('clears workflow progress when visible answer content starts streaming', async () => {+ const { getFireEvent } = setupWithEventCapture();+ const { value: chat, dispose } = withRoot(() => useChat({ sessionId: 's' }));++ await chat.sendMessage('hi');+ const fire = getFireEvent();++ fire({+ type: 'workflow_state',+ data: {+ phase: 'provider_start',+ message: 'Waiting for OpenRouter to start responding.',+ },+ });+ fire({ type: 'content', data: 'Here is the answer.' });++ const assistant = chat.messages().find((m) => m.role === 'assistant')!;+ expect(assistant.content).toBe('Here is the answer.');+ expect(assistant.workflowStatus).toBeUndefined();+ dispose();+ });++ it('clears workflow progress when a governed tool block starts', async () => {+ const { getFireEvent } = setupWithEventCapture();+ const { value: chat, dispose } = withRoot(() => useChat({ sessionId: 's' }));++ await chat.sendMessage('hi');+ const fire = getFireEvent();++ fire({+ type: 'workflow_state',+ data: {+ phase: 'context',+ message: 'Reading Pulse inventory.',+ },+ });+ fire({ type: 'tool_start', data: { id: 'tool-1', name: 'get_logs', input: '{}' } });++ const assistant = chat.messages().find((m) => m.role === 'assistant')!;+ expect(assistant.workflowStatus).toBeUndefined();+ expect(assistant.pendingTools).toHaveLength(1);+ dispose();+ });+it('processes tool_start events', async () => {const { getFireEvent } = setupWithEventCapture();const { value: chat, dispose } = withRoot(() => useChat({ sessionId: 's' }));diff --git a/frontend-modern/src/components/AI/Chat/hooks/useChat.ts b/frontend-modern/src/components/AI/Chat/hooks/useChat.tsindex 86da8091d4..aaecccf9f2 100644--- a/frontend-modern/src/components/AI/Chat/hooks/useChat.ts+++ b/frontend-modern/src/components/AI/Chat/hooks/useChat.ts@@ -30,6 +30,10 @@ import type {const generateId = () => Math.random().toString(36).substring(2, 9);type AssistantInterruption = NonNullable<ChatMessage['interruption']>;+const INITIAL_ASSISTANT_WORKFLOW_STATUS: WorkflowStatus = {+ phase: 'request_start',+ message: 'Preparing Pulse context.',+};export interface UseChatOptions {sessionId?: string;@@ -519,6 +523,7 @@ export function useChat(options: UseChatOptions = {}) {return {...updated,content: appendMessageContent(baseMsg, visible.text),+ workflowStatus: undefined,};}@@ -575,6 +580,7 @@ export function useChat(options: UseChatOptions = {}) {return {...updated,+ workflowStatus: undefined,pendingTools: [...(msg.pendingTools || []), pendingTool],};}@@ -676,6 +682,7 @@ export function useChat(options: UseChatOptions = {}) {return {...msg,streamEvents: updatedEvents,+ workflowStatus: undefined,pendingTools: updatedPending,pendingApprovals: updatedApprovals,toolCalls: [...(msg.toolCalls || []), newToolCall],@@ -759,6 +766,7 @@ export function useChat(options: UseChatOptions = {}) {return {...updated,+ workflowStatus: undefined,pendingApprovals: [...(msg.pendingApprovals || []), approval],};}@@ -794,6 +802,7 @@ export function useChat(options: UseChatOptions = {}) {return {...updated,+ workflowStatus: undefined,pendingQuestions: [...(msg.pendingQuestions || []), pendingQuestion],};}@@ -932,6 +941,7 @@ export function useChat(options: UseChatOptions = {}) {pendingTools: [],toolCalls: [],streamEvents: [],+ workflowStatus: INITIAL_ASSISTANT_WORKFLOW_STATUS,};if (options?.queuedMessageId) {