llama.cpp
325914de - ui: show an agentic reply as a grouped Agent Trace (#32879)

Commit
7 hours ago
ui: show an agentic reply as a grouped Agent Trace (#32879) * ui: show tool calls in the trace as a grouped, plain-language log Tool calls and all the reasoning around them, up to the answer, collapse into one row whose title sums up what happened ("Ran 2 commands, read 1 file"), so a model that thinks before every call still reads as one row of work. Two calls, or one call with reasoning beside it, make a group; without per-turn stats a group spans turns. Each call reads as a sentence: built-in tools get hand-written phrasing in two tenses, MCP and unknown tools read as "Used <tool> <argument>", and the generic block shows simple arguments as labelled fields. A call that has the argument a display setting picks (description by default, overridable per tool in Settings > Tools) shows it as the model wrote it instead, for any tool that declares it. A shell row always shows the command, after "Ran" or after that description, and opens into the terminal; the permission card shows the command that would run. An open group is a list of rows under one rule, with no icons in the headings; a running row shimmers. While a group is live its title says what is happening now ("Reading package.json", "Thinking"), with a timer since the prompt was sent, and the loop records the task's total time, which the response stats show. Thoughts and tool calls now stay collapsed while generating, with a one-time migration of the saved old default. Assisted-by: Claude (Opus 5.5 Medium) * ui: keep a live reply steady while its status changes The status line ( Loading weights, Processing 40% ) sat above the content before the first token and below it afterwards, and collapsed to nothing while tokens streamed, so the stats and actions under it jumped. It is now one row in the trace column with a trace row's box, shown only while nothing else is moving, and while a tool group closes the reply it becomes that group's live title instead. The model badge shows from the start of a live reply, the user message reserves its stats row while the prompt is processed, and a collapsed group title is muted. Assisted-by: Claude (Opus 5.5 Medium) * ui: glide a sent message to the top of the screen Sending snapped the page to its bottom in one frame, and layout that settled a moment later was followed with more snaps. The page now eases there: the target is read again every frame, so late layout bends the motion instead of ending it with a jump, and corrections shortly after a send are glided to as well. A frame that arrives late counts as one frame, so a busy page slows the glide instead of skipping it. Wheel, touch and scroll keys hand the page back at once; typing the next message does not. Reduced motion keeps the jump. Assisted-by: Claude (Opus 5.5 Medium) * ui: show tool images in the trace and in one slideshow of the thread A closed tool group shows every image its calls produced under its title, 64px tall at their own proportions, in a carousel once they overflow; the strip fades out when the group opens. A call with images shows tiny thumbnails beside its title while its row is closed. A group thumbnail, or an image in a user message, opens one slideshow of every image, audio clip and video in the open thread, in thread order, at the clicked item. Assisted-by: Claude (Opus 5.5 Medium) * ui: quiet the conversation around its messages Stats and actions under earlier messages stay hidden until the reader points at the message or tabs into it, changing only opacity so nothing moves; the latest exchange keeps them in view and touch screens keep them shown. A Display setting, Always show message statistics, keeps every message's statistics in view. With them out of sight the spacing tightens: messages sit 1rem apart, the answer sits 0.75rem from the trace rows around it, and the user message's stats and actions sit closer together. A queued message no longer sticks to the bottom of the screen and scrolls with the conversation. Assisted-by: Claude (Opus 5.5 Medium) * ui: name the agentic reply an Agent Trace and give basic chat its own view A reply that ran the agentic loop is now an Agent Trace: the component that renders it is ChatMessageAgentTrace, with matching class names and docs. A basic chat reply, with no tool calls, renders through the new ChatMessageAssistantResponse as its reasoning and its answer, without the trace's grouping, timer and permission handling. hasAgenticContent picks the view, so a live reply becomes a trace the moment its first tool call streams in. Assisted-by: Claude (Opus 5.5 Medium)
Author
Parents
Loading