Repository navigation
feat(ui): show a turn's work in plain words, with a live plan checklist - #5245
Merged
kovtcharov-amd merged 5 commits intoOct 19, 2026
Merged
Conversation
While GAIA worked, the Agent UI showed raw tool cards: internal tool names, argument dumps, 9-11 px monospace text, the same failed call repeated as separate cards, and the plan as a numbered list with no sign of which step was running. - The plan is one checklist marked done, running, failed, stopped or not started, updated live as the agent re-sends it; a replan gets its own. - Each call is one plain line from derive_narration(), now sent on tool_start, tool_args and plan events and saved with the turn. Long paths and URLs show the part that differs. - Identical calls merge into one row marked xN; a failure's reason shows on its row; the raw tool name, arguments and output are one click deeper. - A live line with a timer says which tool is running or that GAIA is waiting on the model. The "Model is processing" heartbeat no longer fires under a running tool and counts from the last event, not the turn start. - List arguments read "owner, task, due" instead of splitting into rows. - No text in the activity view is below 12 px. Closes amd#5220, amd#5190.
Closed
3 tasks
…plain steps
After a turn, the model's reasoning could sit open above the answer as a
tall monospace block quoting GAIA's internal rules, and the expanded step
list opened on a filter bar and leftover progress notes.
- Reasoning sits behind a one-line "Reasoning · N words" toggle. It is open
only while it streams and folds once the agent moves on or the turn ends.
- Its text is sans, 13 px, in text-secondary on the recessed background
(6.0:1 light, AA in dark), with a test pinning both themes.
- A finished turn drops progress notes ("Sending to model...").
- The filter sits after the steps and appears only from six call rows.
Closes amd#5252.
This was referenced Oct 17, 2026
Contributor
|
Verdict: Approve with suggestions The Agent UI now shows a turn's work in plain words: the plan becomes a live checklist, each tool call becomes one plain line, repeated identical calls merge into one ×N row, and raw tool names and arguments sit one click deeper. I found no correctness bugs. The live view and the saved, reloaded turn fold the plan the same way. The "model is processing" heartbeat now stays quiet while a tool runs, and its timer counts from the last event.
Real-world evidenceN/A: no evidence bundle was produced for this run, and inference-backed Agent UI checks belong to the strix-halo lane. This verdict rests on reading the code. I couldn't run the tests here because pytest isn't installed on this runner. 🔍 Technical detailsIssues
Strengths
|
kovtcharov-amd
pushed a commit
to kovtcharov/gaia
that referenced
this pull request
Oct 19, 2026
amd#5266) **Held until after v0.25.0.** During a long turn the Agent UI gave little sign it was working, and its motion was 84 hand-picked timings that reduced motion only partly stopped. Now one live status line carries a subtle sweep while the model works. Plan steps tick over, the side rail slides in, and queued messages ease into place. Every timing comes from a small set of tokens, reduced motion stops all of it (including the status typewriter and smooth scrolling), and an idle window runs no animation at all. - **Expect a merge-order conflict with the checklist, rail and queue PRs (amd#5245, amd#5246, amd#5241, amd#5242).** Their motion lives in `motion.css` and keys on their class names, so their files are untouched. Whichever lands second must reconcile two things. The new lint fails on amd#5242's literal `sb-dot-pulse 1.4s ease-in-out`, which becomes `var(--duration-pulse) var(--ease-in-out)`. And a class renamed there would quietly switch this motion off, so recheck the `motion.css` selectors once each of those PRs merges. - **Small visible changes from the token move:** spinners now share one 0.9 s turn (were 0.7–1 s), the typing cursor blinks at 1 s (was 0.6 s), and the old 300–400 ms panel timings share 320 ms. **Live status line, before and after, from real local turns** (main vs this branch, same backend and prompt; reduced motion emulated in the page):  - Before: only the cursor blinks, and with reduced motion on the label still types itself out. - After: a slow highlight sweeps the label while the model works. With reduced motion on, the label appears whole, has no sweep, and `document.getAnimations()` reports nothing running. - The GIF is stitched from frames captured about 0.3 s apart, so the sweep looks steppier than it does live. <details> <summary>🔍 Technical details</summary> - Tokens: `--duration-fast|--duration|--duration-slow|--duration-spin|--duration-blink|--duration-pulse|--duration-shimmer`, `--ease|--ease-in-out|--ease-linear|--ease-step`, `--stagger`, `--toast-hold`. - The shimmer is an alpha `mask-image` sweep, not a gradient fill (the design language bans those). Its dim stop is 80%, which keeps the 11 px label above AA in both themes. - The global reduced-motion rule keeps 0.01 ms rather than `none`, so `forwards` fills and toast holds still land. It now also forces `scroll-behavior: auto`. JS motion reads `prefersReducedMotion()` from `utils/motion.ts`. - `motion.test.ts` rejects literal times, raw easings, `var()` fallbacks and non-motion variables in any `animation*`/`transition*` declaration. It also requires every loop to sit on a live-state selector. - Queue-place changes animate only on remount. Adding `key={place}` on amd#5242's `.sb-row-queue` span makes each change replay. - With amd#5245 merged there are two live lines (`Thinking… · 24s` in the bubble, `Waiting on the model · 8s` in the summary). Only the bubble line shimmers. Folding the two into one is a product follow-up. </details> ## Test plan - [ ] `cd src/gaia/apps/webui && npx vitest run`: 857 pass, including `styles/__tests__/motion.test.ts` and `MessageBubble.liveMotion.test.tsx` - [ ] `npx tsc --noEmit` is clean - [ ] Run a multi-step turn in the Agent UI and send a second message while it works. Check that the status line sweeps, the queued row drops in, the rail slides in, and once the turn ends `document.getAnimations().filter(a => a.playState === 'running')` is empty. - [ ] Turn on reduced motion in the OS (or emulate it in DevTools) and repeat. The label appears whole with no sweep, spinners stand still, and the rail and queue appear without movement. Verified locally on main merged with amd#5245, amd#5246 and amd#5241 (backend :4309, Vite :5309, real local turns), with reduced motion emulated in the page.
# Conflicts: # src/gaia/apps/webui/src/components/AgentActivity.tsx
…the clock A re-sent plan now refreshes the saved turn's plain lines the way the live view does, so a plan first sent without them still reloads with them. The "Model is processing" seconds come from the clock since the last event instead of counting 0.2 s queue timeouts, which ran low on a loaded machine. Tests pin that hidden memory calls neither show nor split identical calls.
# Conflicts: # src/gaia/ui/sse_handler.py
kovtcharov-amd
pushed a commit
to kovtcharov/gaia
that referenced
this pull request
Oct 19, 2026
The line under an answer showed developer stats ("1012ms TTFT · 68 → 510
tokens · 38.1 tok/s"), and permission prompts named internal tools
("Always allow `write_file on prompt-test.txt` in this chat", "ran
'write_file' without asking"). Now the footer reads "Answered in 40 s on
your GPU · first word in 1 s" (or "via Fireworks AI" for a cloud turn),
with the exact numbers one click away. Prompts read "Allow writing
file?" and "Always allow writing prompt-test.txt in this chat", and the
full-access notice says what ran: "Full access is on, so GAIA didn't ask
first. Writing file: prompt-test.txt".
Part of amd#5260. The suggestion-card item (cards wrapping 3 + 1) is
already fixed in amd#5240, which lays the cards out as a 2-column grid, so
this PR leaves it alone. On merges: this PR and amd#5241 both edit the
stats row under an answer, so expect a small conflict there. It also
touches the permission-request handling in the chat view next to code
that amd#5241, amd#5242, amd#5244 and amd#5245 change. It lands after v0.25.0.
## Screenshots
Footer (expanded by a click) and permission card, before → after:
| | Before | After |
|---|---|---|
| Light |

|

|
| Dark |

|

|
Footer before the click:

## Test plan
- [x] `npx vitest run`: 860 passed. `npx tsc --noEmit` is clean
- [x] `pytest` on the Agent UI, permission, stdio, shell-prompt and
agent suites plus the flagship package tests: 6798 passed. The 3
failures are tool-count checks in `hub/agents/gaia` (87 tools found vs
95 declared). Optional dependencies are missing from the local venv, and
this PR doesn't touch tool registration
- [x] `python util/lint.py --black --isort --pylint` passes
- [x] Checked in the running app, in light and dark, before and after
(screenshots above). The footer shows plain words and expands on click,
and the permission card shows no tool ids
- [ ] Reviewer: run a turn on a local model and check that the footer
names the right device. Then run one on a cloud model and check that it
says "via …"
<details>
<summary>🔍 Technical details</summary>
- Each turn's stats gain `place`, set by `_turn_place`. For a cloud
model it is the provider's name. For a local model it is the `device`
that Lemonade's `/health` reports for that model. Older messages have no
`place`, so their footer makes no claim about where they ran. The cloud
provider is resolved from the model before any Lemonade call, so a cloud
turn names it even with Lemonade stopped.
- `permission_request` gains `tool_label` (from `tool_phrase`, built on
`derive_narration`) and `always_label` (from `grant_phrase`, which uses
the same `_VERB_FORMS`). `always_scope` is unchanged because
`agent_ui_control` matches it exactly. Shell scopes get no label because
they are already the command itself.
- `GrantScope` gains an optional `subject` (the file or skill), so the
label can be worded without parsing it.
- The MCP `turn_view` footer still returns the raw numbers. Only its
docstring and the guide line about it changed.
</details>
kovtcharov-amd
added a commit
to kovtcharov/gaia
that referenced
this pull request
Oct 19, 2026
…ter (amd#5290) The Agent UI looked developer-built: copper on cool blue-grey, 19 font sizes, labels in spaced-out monospace capitals, and buttons in three different shapes. This lands the foundation of the approved redesign (amd#1001). It brings warm gray neutrals and muted brass for actions and focus only. Inter replaces DM Sans and Space Mono. Controls are soft tinted, rise slightly on hover and settle on press, and dialogs use calm sentence-case titles. Every token keeps its name, so the open feature PRs pick up the new look without edits. With no saved theme, the app now follows the OS instead of defaulting to dark, so a light-mode user who never picked a theme opens it in light. **Decided: brass on both the Agent UI and the TUI.** This PR moves the Agent UI first. The TUI keeps copper only until amd#5291 lands a terminal-safe brass, because the light brass `#7A5A22` rounds to `#875F00` on a 256-colour terminal, which is the TUI's Warning and Selected entry. Until then the cross-surface test pins the TUI's copper on its own, and amd#5291 restores the shared-accent assertion. The commit marked `[decision pending]` predates the decision. **Stacked on amd#5266.** This branch includes amd#5266's motion commit, because its tokens are the motion base; review the commits after it. Lands after v0.25.0. | Before (`main`) | After | |---|---| |  |  | |  |  | |  |  | |  |  | **Defaulted, easy to change.** The four round-3 design questions went unanswered, so the recommended answers stand: a green tick for a finished step, neutral markers for the selected chat and current chapter, a small dark dot for an unread answer, and an icon shadow that falls only outside each shape. They apply in the follow-ups below, which own those components. ## Test plan - [ ] `npm test` in `src/gaia/apps/webui`: 899 pass, including new contrast cases for the raw brass and the switch knob on it - [ ] `npx tsc --noEmit -p .` and `npx tsc --noEmit -p visual` in `src/gaia/apps/webui` are clean - [ ] `npx vitest run` in `website/`: 236 pass - [ ] `go test ./internal/ui/theme/...` in `tui/` passes against the updated spec - [ ] `npm run test:visual` in `src/gaia/apps/webui`: 12 snapshots, six screens in light and dark, match on Windows (set `GAIA_VISUAL_CHROMIUM` to a local Chromium if `npx playwright install chromium` can't download) - [ ] `gaia chat --ui`: switch Light, Dark and Match system in Settings › General. The composer shows a brass focus ring, buttons lift on hover, the warning notice shows its icon, and Settings switches are brass when on. <details> <summary>🔍 Technical details</summary> **What moved** - `index.css` tokens: warm-gray palette in both themes; brass `--accent` (`#7A5A22` / `#D4B47E`); soft-tinted `--accent-fill`; new `--accent-solid`, `--accent-ring`, `--shadow-press`, `--ease-spring`, `--duration-spring`, `--duration-press` and `--fs-*`. The layered `--shadow-sm/md/lg` carry a light top rim. None of them is a glow, and the no-glow guard passes. - Each place that used `--accent-fill` as a solid mark moved to a role that stays visible on the new pale wash: switch tracks, native checkboxes and progress bars, the suggested permission button, and the count badges in `Sidebar.css` and `NotificationCenter.css`. - `ScheduleManager.css` redefined `.btn-primary` and `.btn-secondary` unscoped. Once its lazy chunk loaded, every button in the app changed shape. Those rules are removed. - Labels that were uppercase or monospace in stylesheets no other open PR touches are now sentence-case Inter. Paths, keys and code stay monospace. - `--bg-active` rejoins the contrast matrix. The pinned copper used to fail on it; the brass clears every floor. - The Electron mirrors (`main.cjs`, the installer dialog), `index.html` `theme-color` and `utils/theme.ts` follow the new canvas. **Visual suite** (`src/gaia/apps/webui/visual/`): `vite preview` of the production build, every `/api` call answered from fixtures, a frozen clock, animations off, and at most 50 differing pixels. An API call without a fixture fails the test by name. Baselines are Windows-only and no CI job runs the suite yet; follow-up below. **Follow-ups once these PRs merge** (each restyle goes through tokens; no code here depends on them) - amd#5242: sidebar rich rows (status, preview line, time), titles that fade instead of truncating, borderless search. - amd#5240: 28px greeting, raised suggestion cards that lift, first-run stepper. `SetupScreen.css` gets a one-line change here, outside amd#5240's hunks. - amd#5243: Memory with neutral stat figures, brass switches instead of green, and no per-tile hues. - amd#5245: live checklist with each step's time, a shimmering live step, and sans labels. - amd#5269 / amd#5266: a raised user bubble, 15px answer prose, path chips and the answer footer. - amd#5244: AdvancedSettings headings in sentence case, and warning status text with its icon. - amd#5246, amd#5241, amd#5275, amd#5283, amd#5239: side rail, queue rows, context panel, session panel and turn changes adopt the type and elevation tokens. - New behaviour, each its own PR: resizable panes, chapter bars (amd#5271), the outer-only icon shadow wrapper, and Linux baselines plus a CI job for `test:visual`. - TUI: brass that survives 256-colour rounding, re-unifying the accent (amd#5291). </details> --------- Co-authored-by: Kalin Ovtcharov <[email protected]>
This was referenced Oct 21, 2026
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.
Lands after v0.25.0.
While GAIA worked, the Agent UI showed raw tool cards: internal tool names, argument dumps in 9–11 px text, the same failed call repeated as separate cards, and the plan as a numbered list with no sign of which step was running. Now the plan is a live checklist (done, running, failed, stopped, not started), each call is one plain line ("Fetching page: go.nps.gov/RainierWeather"), identical calls merge into one row marked ×3, and a live line with a timer says which tool is running or that GAIA is waiting on the model. Raw tool names, arguments and output are one click deeper, and no text is below 12 px. List arguments now read "owner, task, due, status", and the "Model is processing" line no longer appears under a running tool.
Closes #5220
Closes #5190
Closes #5252
The model's reasoning sits behind a one-line "Reasoning" toggle that folds once the turn moves on, it reads at AA contrast in both themes, and an expanded turn leads with its plain steps (the filter comes after them, and only on busy turns).
Not included: #5191 (progress prose filling the answer area). That fix changes how streamed text is routed in ChatView/MessageBubble and belongs in its own change.
🔍 Technical details
agentEventToStepcopiesnarrationonto tool steps andstep_narrations/current_steponto plan steps, and thetool_argshandler copiesnarration. Without them the live view never sees the plan's current step or the plain lines; they would only appear after a reload.tool_start,tool_argsandplanevents carry plain lines from the existingderive_narration(); no new narration code. A saved turn keeps one row per plan with its current step, and a replan keeps its own row.docs/sdk/sdks/agent-ui.mdxis updated for the new fields.Test plan
cd src/gaia/apps/webui && npx vitest run(874 passed) andnpx tsc --noEmitpython -m pytest tests/unit/chat/ui(1568 passed), including the newtest_plan_step_persistence.pypython util/lint.py --all: no failures