Repository navigation
Conversation
allozaur
force-pushed
the
allozaur/feat/ui-tool-call-trace-groups
branch
2 times, most recently
from
November 23, 2026 09:57
847e774 to
f1141eb
Compare
allozaur
force-pushed
the
allozaur/feat/ui-tool-call-trace-groups
branch
2 times, most recently
from
November 23, 2026 12:43
e5470fe to
b9afde0
Compare
allozaur
force-pushed
the
allozaur/feat/ui-tool-call-trace-groups
branch
from
November 23, 2026 12:54
b9afde0 to
d856a76
Compare
* 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
force-pushed
the
allozaur/feat/ui-tool-call-trace-groups
branch
from
November 23, 2026 13:41
d856a76 to
111f96e
Compare
…32566) Assisted-by: ChatGPT (GPT-6)
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
force-pushed
the
allozaur/feat/ui-tool-call-trace-groups
branch
from
November 23, 2026 16:10
111f96e to
0114aea
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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 touchesChatMessageAgenticContent.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
ChatMessageAgentTrace(renamed fromChatMessageAgenticContent). A basic chat reply, with no tool calls, renders through the newChatMessageAssistantResponseas its reasoning and its answer, without the trace's grouping, timer and permission handling.hasAgenticContentpicks the view, so a live reply becomes a trace the moment its first tool call streams in.ChatMessageToolCallGrouprow 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.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.<tool><main argument>", and the generic block shows simple arguments as labelled fields.<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 requireddescriptionargument 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.truecannot 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.timings.agentic.totalMs, permission waits included) and the response stats show it next to the generation time.mediaGalleryStore, with the dialog mounted once on the chat screen).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.parsers/tool-call-phrasing.tswith its table intool-call-phrasing.constants.ts.CollapsibleContentBlockgainstrailing,titleSuffixandinlineChevron;ToolCallBlockloses its unusedwrapperand icon props.Testing
npm run lint,npm run checkandnpm run buildwere run on the final commit. Lint and the build pass.npm run checkreports the same 44 errors asmaster, all in untouched files (Snippet types from two Svelte copies).tool-call-phrasing.test.tscovering 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, andtool-call-description.test.tscovering the schema argument.stick-to-bottom.svelte.test.ts, three for the slideshow inmedia-gallery.svelte.test.ts, three for the two reply views inassistant-response.svelte.test.tsand two for what the permission card and the shell row show inpermission-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.Requirements
Claude (Opus 5.5 Medium)