Skip to content

ui: show tool calls in the trace as a grouped, plain-language log - #105

Closed
allozaur wants to merge 16 commits into
masterfrom
allozaur/feat/ui-tool-call-trace-groups
Closed

allozaur wants to merge 16 commits into
masterfrom
allozaur/feat/ui-tool-call-trace-groups

Conversation

@allozaur

@allozaur allozaur commented Nov 20, 2026 •

Copy link
Copy Markdown
Owner

Overview

A reply that runs the agentic loop now reads as an Agent Trace, a log of what the agent did: tool calls collapse into one summary line ("Ran 2 commands, read 1 file") that opens into a plain list of what happened, each call a short sentence. While the agent works the reply stays steady, shows a timer, and ends with the total time the task took. A sent message glides to the top of the screen, and the conversation is calmer: messages sit closer, their stats and actions appear on hover, and any thumbnail opens a slideshow of the whole thread's media.

Additional information

Runs off master, beside the Llama Harness stack. It touches ChatMessageAgenticContent.svelte, which #101 also edits for the permission card, so one of them gets a small rebase. tool_search (#102) already gets its phrasing here ("Loaded tools Monitor") by tool name, without depending on that PR.

Known gaps: the stories do not cover reasoning inside a group, the timer, the new shell row or the status in a group's title yet, and the "Loading weights" phase was not exercised live. The media slideshow was checked in Storybook and with tests only, since no test chat had images. The send glide was checked in Chromium only, at desktop size and a phone-sized viewport, not on a real phone or in Safari. Three microphone client tests failed intermittently in earlier full runs and passed alone. No demo video yet. The new user-facing strings (phrasing table, summaries, labels) are English only and sit in tool-call-phrasing.constants.ts. This PR bundles several separable changes; anything going upstream would be split per commit, with an issue first for the larger ones.

What changed
  • Agent Traces and basic replies. A reply that ran the agentic loop is an Agent Trace, rendered by ChatMessageAgentTrace (renamed from ChatMessageAgenticContent). 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.
  • Groups. Tool calls render as one ChatMessageToolCallGroup row whose title sums them up ("Ran 3 commands, read 2 files, used 1 tool"), muted while collapsed. A group holds the calls and all the reasoning around them up to the answer, so a reply reads as one work row and then the answer, and a model that thinks before every call still gets one row; without per-turn stats a group spans turns. Two calls, or one call with reasoning beside it, make a group; a lone call stays its own row, and reasoning that only leads into text stays apart.
  • Rows, not cards. An open group is a list of rows under one rule. Each row is a sentence with its chevron right beside it; the group, tool call and reasoning headings have no icons, and a running call shimmers instead of spinning. Only an opened row's result gets a frame. Dropping the icons also drops the MCP server favicon from tool rows; mcpStore.getServerFaviconForTool() is left in place, now without a caller, because ui: make MCP a built-in extension, on MCP SDK v2 #61 reworks that store.
  • A sentence per call. Built-in tools get hand-written phrasing ("Read sum.ts", "Edited sum.ts +1 -1", "Searched for 'issue' in src", "Loaded tools Monitor"). MCP and unknown tools read as "Used <tool> <main argument>", and the generic block shows simple arguments as labelled fields.
  • Shell calls. A shell row always shows the command: "Ran <command>", or the model's description followed by the command. Opening it shows the terminal with the prompt line, the output and the exit badge. The UI adds a required description argument to the shell tool's schema it sends to the model (the server ignores arguments it does not know), and shows that description as the model wrote it. The permission card shows the command that would run, since the description is the model's wording and not what gets executed.
  • Live title. While a call runs, the group title says what is happening now ("Reading package.json", "Running ls"); while the model reasons inside the group it says "Thinking"; and while a group closes the reply, what the server is doing between turns ("Processing 40%", "Loading weights") takes the title instead of a line of its own. The title stays on one line, truncating a long description.
  • Collapsed while generating. "Show thought in progress" and "Show tool call in progress" now default to off. A one-time migration drops the saved values: the persisted config carries every key, so a saved true cannot be told apart from the old default. That also resets anyone who had left them on by choice, once; they turn them back on in Settings. With "Show tool call in progress" on, the latest group stays open for the whole reply and folds into its summary at the end.
  • Timer and total time. The last tool row or group shows the time since the prompt was sent. The loop records the task's wall time (timings.agentic.totalMs, permission waits included) and the response stats show it next to the generation time.
  • Images. A closed group shows every image its calls produced under the summary, 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, inside a group or on its own.
  • Media slideshow. 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 (mediaGalleryStore, with the dialog mounted once on the chat screen).
  • Spacing. Text and a trace row get 0.75rem between them, while trace rows keep their tight 0.5rem stack. Messages sit 1rem apart instead of 3rem, the stats row under a reply keeps 1rem around it, and the stats and actions under a user message sit 0.5rem apart.
  • Stats and actions on hover. The latest exchange, the user message and its reply, keeps its stats and actions in view; under earlier messages they stay hidden until the reader points at the message or tabs into it, changing only opacity so nothing moves. Touch screens keep them shown. A new Display setting under "Show message generation statistics", "Always show message statistics" (off by default), keeps the statistics of every message in view; the actions stay hover-only either way.
  • A steady reply. The status line ("Loading weights", "Processing 40%") is one row in the trace column with a trace row's box, shown only while nothing else is moving, so the next row takes its place instead of pushing the stats and actions around. The model badge shows from the start of a live reply and the user message reserves its stats row while the prompt is processed.
  • Queued message. A message queued while a reply streams no longer sticks to the bottom of the screen; it sits after the last message and scrolls with the conversation.
  • Send glide. Sending used to snap the page to its bottom in one frame, then snap again as measured heights settled. StickToBottom.glideToBottom() eases there: the target is read every frame, so late layout bends the motion, and corrections in the 2.5s after a send are glided to as well. A late frame counts as one frame, so a busy page slows the glide instead of skipping it. Wheel, touch and scroll keys stop it at once, typing the next message does not, and reduced motion keeps the jump.
  • The phrasing lives in parsers/tool-call-phrasing.ts with its table in tool-call-phrasing.constants.ts. CollapsibleContentBlock gains trailing, titleSuffix and inlineChevron; ToolCallBlock loses its unused wrapper and icon props.
Testing
  • npm run lint, npm run check and npm run build were run on the final commit. Lint and the build pass. npm run check reports the same 44 errors as master, all in untouched files (Snippet types from two Svelte copies).
  • Unit tests (881) pass, with tool-call-phrasing.test.ts covering the per-tool lines, tenses, partial args, model descriptions shown as written, tool_search, the MCP fallback, summaries, grouping with reasoning around the calls, the Thinking title, and tool-call-description.test.ts covering the schema argument.
  • Client tests: 344 pass on the last full run, with four new cases for the glide in stick-to-bottom.svelte.test.ts, three for the slideshow in media-gallery.svelte.test.ts, three for the two reply views in assistant-response.svelte.test.ts and two for what the permission card and the shell row show in permission-request-command.svelte.test.ts; three microphone tests failed in earlier full runs and passed alone. The shell streaming tests now read the prompt line from the body.
  • Story tests: all 187 pass.
  • Dev server against llama-server in router mode with the already loaded Inkling-2-Mini: calls grouped across reasoning, the shell row opened into the terminal, the timer ticked, the total time showed in the stats, and in a fresh chat the model wrote its own descriptions. Element positions sampled during a live reply: the reply's top stays put and the stats row moves only when a row or the permission card is added. With two shell calls the reply showed one row throughout, including "Processing 40%" between turns, and ended as "Ran 2 commands" with only the answer below it. With one shell call the reply showed a single row throughout (the model's description, then "Thinking", then "Ran 1 command") and only the answer below it. A send sampled frame by frame at desktop size: the new message eases from 531px to the top, only ever moving up the screen.

Requirements

@allozaur allozaur changed the title ui: group tool calls in the trace and describe each call in plain words ui: show tool calls in the trace as a grouped, plain-language log Nov 23, 2026
@allozaur
allozaur force-pushed the allozaur/feat/ui-tool-call-trace-groups branch 2 times, most recently from 847e774 to f1141eb Compare November 23, 2026 09:57
@github-actions github-actions Bot added the documentation Improvements or additions to documentation label Nov 23, 2026
@allozaur
allozaur force-pushed the allozaur/feat/ui-tool-call-trace-groups branch 2 times, most recently from e5470fe to b9afde0 Compare November 23, 2026 12:43
@allozaur
allozaur force-pushed the allozaur/feat/ui-tool-call-trace-groups branch from b9afde0 to d856a76 Compare November 23, 2026 12:54
* ui: give every collapsible the smooth height transition

Llama UI's Collapsible.Content now force-mounts the bits-ui content and
renders the animated region the chat used to keep as CollapsibleRegion:
height eases open and shut, and the body unmounts once the collapse is
over. The chat's standalone regions use Collapsible.Root/Content, so the
tool groups in settings, the tools menu and drawer and the terminal block
animate like the rest.

Assisted-by: Claude (Opus 5.5 Medium)

* ui: keep collapsible spacing inside the content

Collapsible.Content now stays in the layout while closed, so a margin on
it left a gap under a closed MCP tools list, connection log or server
info. The margin moves onto the content inside, as does the story's
spacing.

Assisted-by: Claude (Opus 5.5 Medium)
@allozaur
allozaur force-pushed the allozaur/feat/ui-tool-call-trace-groups branch from d856a76 to 111f96e Compare November 23, 2026 13:41
thelittlefireman and others added 15 commits November 23, 2026 15:17
ggml-org#32651)

* rpc : typed request helpers and a single validation step on the server

Client and server share one table (rpc_msg_types) that maps each
fixed-size command to its request and response structs. The client sends
them with dispatcher->call<CMD>() and call_async<CMD>(), the server serves
them with rpc_serve<CMD>(), so the per-command code in rpc_serve_client
and at the call sites is gone and a wrong struct for a command does not
compile. SET_TENSOR, SET_TENSOR_2D and GRAPH_COMPUTE get header structs,
written with rpc_writer and parsed with a bounds-checked rpc_reader. The
wire format is unchanged.

Validation of client data is now in one place:
- deserialize_tensor rejects what ggml_new_tensor would assert on (op
  range, ne[0] not a multiple of the block size, element count overflow)
  and computes the tensor size without overflow before the buffer check
- rpc_check_region replaces the per-handler bounds checks and checks the
  request against the tensor size, which ggml_backend_tensor_set/get/memset
  assert on, so an in-buffer but out-of-tensor request no longer aborts
- graph_compute builds the graph in one pass over the tensors, which the
  client sends in topological order: no recursion, and unknown or
  duplicate ids, duplicate nodes, sources sent after their users, compute
  nodes with unallocated operands and views outside their view_src buffer
  are rejected; a tensor may be its own source (ggml_cast)
- GET_ALLOC_SIZE fails if a source tensor is invalid
- a client-sized allocation that fails closes the connection instead of
  terminating the server

* rpc : trim comments
…gml-org#32861)

* ggml-openvino: keep the rope angle in f32 under the f16 inference hint

* ggml-openvino: add a GGML_OP_ARGMAX translator

* ggml-openvino: keep the token dim dynamic for a 2-D activation graph input

* ggml-openvino: tolerate graph inputs and outputs with no backing storage

* ggml-openvino: invalidate a cached graph when its output set changes

* ggml-openvino: bound the compiled-model cache to N shapes instead of 1

* ggml-openvino: add GGML_OPENVINO_LOG_SUPPORTS_OP diagnostic

* ggml-openvino: honour a node's dynamic-dim classification on non-split graphs too

* ggml-openvino: fold consecutive SET_ROWS column writes into one scatter

* ggml-openvino: keep the speculative decoding feature buffers in device memory

* ggml-openvino: keep the fixed token count of static graph inputs for npu
GDN

In a static (NPU) graph that overwrites the fixed token count that
get_graph_input_shape set just before, for example of inp_tokens, so the NPU
graph got a dynamic token dimension. GATED_DELTA_NET models (Qwen3.5, Qwen3.6)
then fail to translate: "GATED_DELTA_NET pad masking requires a static token
dimension". Keep the change for dynamic graphs and the previous behaviour for
static ones.

* ggml-openvino: one output in the decode model of a static NPU pair

The decode model of a static prefill/decode pair copied the compute params of the
prefill graph, including output_len. With llama-perplexity the prefill graph has many
outputs (128 at -c 256), so the decode model gathered 128 rows from its one token in
the last layer. For a MoE model that layer then differs from the others and NPUW fails
to lower its experts ("could not lower the isolated expert partition"). A decode step
outputs one token; the model cache key already assumes it (decode_signature out=1).

* ggml-openvino: fix gated delta net when v is a view with padded heads

The GDN translator assumed v is a view of the fused qkv conv output with
the heads packed in each row, and sliced H_v * S_v elements off that row.
test-backend-ops now has padded_v cases, where v views a wider tensor and
each head row is padded (nb[1] > S_v * nb[0]). The slice then read the
padding, and the results were wrong on CPU and GPU.

Take the packed path only when nb[1] == S_v * nb[0]. Any other view goes
through the generic view resolution, which already returns
[B, T, H_v, S_v], so the reshape of the packed case is skipped too. Model
graphs build v with packed heads and keep the packed path.

* ggml-openvino: make the f32 rope angle opt-in

GGML_OPENVINO_ROPE_F32_ANGLE was on by default. It changes the RoPE of
every model on every device, and it was validated on one model on the
GPU only. On the CPU device, which computes in f32, its f16 round trip
rounds cos and sin, and ROPE cases of test-backend-ops fail against the
CPU backend.

Turn it off by default; GGML_OPENVINO_ROPE_F32_ANGLE=1 turns it on. Fix
the comment that called the round trip a no-op on f32 paths. Document
the variable, and the two diagnostics added with it
(GGML_OPENVINO_LOG_SUPPORTS_OP, GGML_OPENVINO_DIAG_GRAPH_IO), in the
dev_doc.

* docs : add the Muse-Glimmer-30B DFlash memory limit and env var samples

Muse-Glimmer-30B with a DFlash draft peaks at about 45 GB of RAM on an
integrated GPU. Add it to the GPU limitations as a runnable sample, and
add samples for GGML_OPENVINO_LOG_SUPPORTS_OP and
GGML_OPENVINO_DIAG_GRAPH_IO to the dev_doc.

* ggml-openvino: fix weight zero points, buffer extras and cache-key gaps

A code review of ggml/src/ggml-openvino found these bugs:

- Q4_1 weights: `extract_q4_1_data` packs two zero points per byte from a `parallel_for` over blocks, so two threads can write the same byte.
- Zero points out of the u4/u8 range wrap around instead of saturating. gemma-4-E2B has 6 Q4_K sub-blocks with a zero point of 16 or more; 16 wrapped to 0.
- `set_tensor` overwrote the extra that `init_tensor` created for a weight without deleting it.
- The two buffer constructors had separate id counters, and the buffer id is part of the shared graph key.
- A freed weight buffer stayed in the release registry, so a later release could madvise memory it no longer owned.
- `GGML_OPENVINO_ROPE_F32_ANGLE` changes the graph but was not in the compiled-model cache key.
- On NPU, group-128 requantization ignored the row width. A model whose rows are not a multiple of 128 failed to load its weights (SmolLM2-360M).
- The static Split cache held a strong reference to the Split on its own input (a reference cycle) and ignored the output port.
- `rms_norm` took op_case 3 for both a direct and a packed pre-scaled GDN output, so the packed one was not sliced.
- Smaller items: static decode read `out_ids` even when it is empty; the static path aborted where the dynamic path returns an error; a damaged weights `.meta` hash threw from `std::stoull`; `extract_layer_from_name` threw on a non-numeric suffix; `GGML_OP_FILL` was registered twice.

- ggml-quants.cpp: one `parallel_for` iteration per zero point byte for Q4_1; clamp zero points to [0, 15] (u4) and [0, 255] (u8).
- ggml-openvino.cpp: `ggml_openvino_set_extra` replaces and deletes the old extra at every site; one id counter; `ggml_openvino_unregister_weight_buffer` in the buffer destructor; a failed KV re-allocation returns `GGML_STATUS_ALLOC_FAILED`.
- model-cache.cpp: hash `GGML_OPENVINO_ROPE_F32_ANGLE`, cache version 9; `strtoull` for the `.meta` hash.
- npu_quant_policy.cpp: Q4_0_128 falls back to Q4_0_C when `ne[0] % 128 != 0`. ggml-openvino-extra.cpp: the group-64 requant targets fall back to Q8_0_C when `ne[0] % 64 != 0`.
- openvino/utils.cpp: the static Split cache uses a weak reference and the output port in its key, like the dynamic one.
- rms_norm.cpp, ggml-decoder.cpp: op_case 5 for a packed pre-scaled GDN output.
- utils.cpp: static decode writes 0 to `out_ids`; a compile after a weight release returns `GGML_STATUS_FAILED`.
- ggml-decoder.cpp: `extract_layer_from_name` returns nullopt for a non-numeric suffix.
- op_table.cpp/.h: remove the duplicate `GGML_OP_FILL`.

* ggml-openvino: copy the decoder once per graph conversion

`GgmlOvDecoder::visit_subgraph` made a full copy of the decoder for every node it visited. Translators only read the decoder, so one copy per walk is enough. Graph conversion time drops 12-24x (Qwen3.5-0.8B: 4.1 s to 0.17 s over the six graphs of a short run).

- ggml-decoder.cpp: make one decoder copy before the node loop.
- utils.cpp: `get_static_attention_size` takes the decoder by const reference and does not copy the compute params.

* ggml-openvino: remove dead code and fix stale comments

Code that nothing calls or registers, and comments that no longer match the code. No behavior change.

- Remove `translate_gated_delta_net_ref`, `translate_solve_tri` (not registered), the unused `FuseToSDPA` pass, `add_rope_sin_cos`, `checksum`, `save_ggml_tensor_data_to_txt`, `non_cont_dim`, the unused templates in openvino/utils.h and the undefined `getCurrentTime` declaration.
- ggml-decoder.cpp: drop the VIEW op_case tail that only ever set 0.
- utils.cpp: drop a duplicate `entry->ptr` store and the always-false `!model_leafs.empty() == false` term.
- `ggml_openvino_manual_gqa_enabled()` replaces two copies of the GGML_OPENVINO_MANUAL_GQA_ATTN default (flash_attn_ext.cpp and the cache key).
- ggml-openvino.cpp: remove the SSM_CONV case whose comment said it stays on CPU (it runs on OpenVINO); fix the gemma3n reason text (not GPU-only) and two typos.

* ggml-openvino: track dynamic dims through bailingmoe3's GDN views and conv state

bailingmoe3 uses GATED_DELTA_NET views to expose its attention and
state outputs. Preserve their dynamic dimensions in the decoder.

- Assign the dynamic dimensions of the translated attention and state
  outputs to the corresponding GATED_DELTA_NET result VIEWs.
- Count the convolution state slots using the rows spanned by the
  destination view. bailingmoe3 packs the q/k/v convolution states
  into a single row.
- Preserve the tracked dynamic dimension in RESHAPE op case 0 when
  the reshape only adds a trailing size-1 dimension.

* ggml-openvino: translate the per-key gate of GATED_DELTA_NET

Ling-3.0-tiny (bailingmoe3) uses a gate per key dimension (kda),
which the backend previously rejected, causing these layers to
fall back to the CPU.

- Use the fused GatedDeltaNet when the OpenVINO runtime and target
  device support a rank-4 gate.
- Detect support once by compiling a one-node GatedDeltaNet with
  a rank-4 gate and checking the target device with query_model.
  Older runtimes reject this gate, and the CPU plugin does not
  support it.
- Fall back to the reference loop when the fused path is unavailable.
- Support a dynamic token count in the reference loop by using
  dynamic reshapes and deriving the trip count from the input shape.
- Reject unsupported cases with a reason: padded chunks, recurrent
  caches, state snapshots, and the native state layout. The loop
  currently handles one state in the ggml layout.

* ggml-openvino: Fix issue highlighted by tests

* ggml-openvino: reject a padded permuted v in gated delta net

supports_op rejected a permuted v only when src2 was the PERMUTE itself. With padded heads, v is a VIEW of the PERMUTE, so the check missed it and the per-key gate reference loop ran on a v layout it does not handle. Look through the VIEW so this case falls back like the other permuted v inputs.

* ggml-openvino: write back intermediate nodes of op-test graphs

The ADD_RMS_NORM_MUL op test checks the intermediate sum of its graph as
well as the final output. compute_model_outputs() made a node a model
output only when the graph does not consume all of it, so the sum was
never written back and the test read uninitialised memory (28 failures
on GPU and CPU). MUL_MAT_ID_SHARED, which checks its routed and shared
results, failed the same way on CPU.

Op-test graphs (the naive path) can read any node, so make every
non-in-place node a model output there. Model graphs are unchanged.

---------

Co-authored-by: Mustafa Cavus <[email protected]>
Co-authored-by: yzhou51 <[email protected]>
Co-authored-by: Sabnis, Omkar <[email protected]>
…l-org#32890)

The manifest is built in Node by its Vite plugin, where import.meta.env is not set, so it was
always named llama-ui whatever VITE_PUBLIC_APP_NAME said. The plugin now names it from the env
Vite loaded (.env files included), and the default name is Llama Chat.

Assisted-by: Claude (Opus 5.5 Medium)
The error state reused the primary button's edge, which shows as a light
ring in dark mode. Use the danger button's edge instead.

Assisted-by: Claude (Opus 5.5 Medium)
…2738)

* ui: drop tool calls cut off by Stop from the next request

A tool call stopped mid-stream could stay on its message with cut-off
arguments. The server parses every call's arguments as JSON, so the next
message in that chat ("Continue") failed with "Failed to parse tool call
arguments as JSON". Requests now leave such calls out, with the tool results
that answer them, and send a call with no arguments as {}.

Assisted-by: Claude (Opus 5.5 Medium)

* ui: add a demo trace that ends in a stopped tool call

A conversation whose last tool call was stopped while its arguments were
still streaming, for recording the fix in the previous commit.

Assisted-by: Claude (Opus 5.5 Medium)
…g#32881)

bits-ui rebuilds the Collapsible.Content snippet args when its close
transition ends, which re-ran the region's effect and restarted the
unmount timer, so a closed body stayed mounted for two transitions
instead of one. Reading `open` through a derived keeps the effect from
rerunning when only the args object changes.

Assisted-by: Claude (Opus 5.5 Medium)
…32892)

Inline code and code blocks were 14px next to 16px text. Llama Mono
has Llama Sans's x-height, so the two read as one size without the
mono being scaled down. The chat form's editor follows.

Assisted-by: Claude (Opus 5.5 Medium)
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)
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)
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)
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)
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)
… 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)
@allozaur
allozaur force-pushed the allozaur/feat/ui-tool-call-trace-groups branch from 111f96e to 0114aea Compare November 23, 2026 16:10
@allozaur allozaur closed this Nov 24, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants