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 running tools inline
rcourtman3b64c753c8c8
diff --git a/docs/release-control/v6/internal/subsystems/ai-runtime.md b/docs/release-control/v6/internal/subsystems/ai-runtime.mdindex 533c1ddd91..375a0b37dd 100644--- a/docs/release-control/v6/internal/subsystems/ai-runtime.md+++ b/docs/release-control/v6/internal/subsystems/ai-runtime.md@@ -138,6 +138,10 @@ runtime cost control, and shared AI transport surfaces.stored assistant prose before the browser restores a transcript. Providerreasoning may remain in runtime-only history for model continuity, but itmust not serialize through public session history or resumed drawer state.+ Pending tool progress is part of the same transcript contract: pending tool+ stream events must render inline as compact running rows in the assistant+ turn instead of disappearing until completion or relying only on the+ drawer-level status bar.The empty Assistant drawer may surface recent non-empty sessions as directresume actions using the backend session list already owned by the drawer;it must not create a parallel recent-chat store or product-authored promptdiff --git a/frontend-modern/src/components/AI/Chat/MessageItem.tsx b/frontend-modern/src/components/AI/Chat/MessageItem.tsxindex 6a934a37da..6770713937 100644--- a/frontend-modern/src/components/AI/Chat/MessageItem.tsx+++ b/frontend-modern/src/components/AI/Chat/MessageItem.tsx@@ -7,7 +7,7 @@ import CpuIcon from 'lucide-solid/icons/cpu';import RotateCcwIcon from 'lucide-solid/icons/rotate-ccw';import SparklesIcon from 'lucide-solid/icons/sparkles';import { renderMarkdown } from '../aiChatUtils';-import { ToolExecutionBlock } from './ToolExecutionBlock';+import { PendingToolBlock, ToolExecutionBlock } from './ToolExecutionBlock';import { ApprovalCard } from './ApprovalCard';import { QuestionCard } from './QuestionCard';import { stripAssistantOutputArtifacts } from './assistantOutputHygiene';@@ -68,6 +68,8 @@ export const MessageItem: Component<MessageItemProps> = (props) => {return !!stripAssistantOutputArtifacts(evt.content || '').text;case 'tool':return !!evt.tool;+ case 'pending_tool':+ return !!evt.pendingTool;case 'approval':return !!evt.approval;case 'question':@@ -218,7 +220,7 @@ export const MessageItem: Component<MessageItemProps> = (props) => {{(evt) => (<Switch><Match when={evt.type === 'pending_tool' && evt.pendingTool}>- <></>+ <PendingToolBlock tool={evt.pendingTool!} /></Match><Match when={evt.type === 'tool' && evt.tool}>diff --git a/frontend-modern/src/components/AI/Chat/__tests__/MessageItem.test.tsx b/frontend-modern/src/components/AI/Chat/__tests__/MessageItem.test.tsxindex 392bf60c75..13e47cd1d3 100644--- a/frontend-modern/src/components/AI/Chat/__tests__/MessageItem.test.tsx+++ b/frontend-modern/src/components/AI/Chat/__tests__/MessageItem.test.tsx@@ -13,6 +13,11 @@ vi.mock('../ThinkingBlock', () => ({}));vi.mock('../ToolExecutionBlock', () => ({+ PendingToolBlock: (props: { tool: { name: string; input: string } }) => (+ <div data-testid="pending-tool-block" data-tool-name={props.tool.name}>+ {props.tool.input}+ </div>+ ),ToolExecutionBlock: (props: {tool: { name: string; input: string; output: string; success: boolean };}) => (@@ -651,11 +656,11 @@ describe('MessageItem', () => {expect(screen.queryByText(/target_host/)).not.toBeInTheDocument();});- it('renders pending_tool events as empty fragments (no visible output)', () => {+ it('renders pending_tool events as inline running tool rows', () => {const events: StreamDisplayEvent[] = [{type: 'pending_tool',- pendingTool: { id: 'pt-1', name: 'run_command', input: '{}' },+ pendingTool: { id: 'pt-1', name: 'run_command', input: '{"command":"ls /dev"}' },},];@@ -666,7 +671,10 @@ describe('MessageItem', () => {/>));- // pending_tool renders <></> (empty fragment) - no tool block visible+ expect(screen.getByTestId('pending-tool-block')).toHaveAttribute(+ 'data-tool-name',+ 'run_command',+ );expect(screen.queryByTestId('tool-execution-block')).not.toBeInTheDocument();});