diff --git a/src/lib/components/AgenticProgress.svelte b/src/lib/components/AgenticProgress.svelte index 59a5070..e31c708 100644 --- a/src/lib/components/AgenticProgress.svelte +++ b/src/lib/components/AgenticProgress.svelte @@ -23,7 +23,16 @@ }; // Build steps from toolEvents, filling in status, icon, and userDescription + $: agentThinking = toolEvents.length === 0; $: steps = toolEvents.map((event, idx) => { + if (event.tool === 'thinking') { + return { + description: 'The AI Agent is analyzing your submission…', + icon: '💡', + status: toolEvents.length === 1 ? 'running' : 'done', + time: event.time + }; + } const meta = TOOL_META_MAP[event.tool]; return { description: meta ? meta.userDescription : event.tool, @@ -32,16 +41,12 @@ time: event.time }; }); - // If no events yet, show agent 'thinking' - $: agentThinking = toolEvents.length === 0; $: statusMessage = agentThinking ? 'The AI Agent is analyzing your submission and selecting the best tools...' : 'The AI Agent is now processing your submission...'; - $: liveMessage = agentThinking - ? statusMessage - : steps.length > 0 - ? steps[steps.length - 1].description - : statusMessage; + $: liveMessage = steps.length > 0 + ? steps[steps.length - 1].description + : statusMessage;