Commit 0fe2187
Improve Agent UI active agent context (#1578)
## Summary
Updates the Agent UI chat view so an empty chat reflects the selected
agent, and adds a compact active-agent indicator to the task header.
## Why
The Agent UI previously showed a generic empty state even when a
specific agent was selected. That made it harder to confirm which agent
would handle the next prompt and hid useful metadata like the agent
description, starter prompts, tags, and tool count.
## Linked issue
Closes #1526
## Changes
- Resolve the displayed agent from the session agent or active agent
selection.
- Show agent-specific empty-state icon, title, description, conversation
starters, and capability summary.
- Add a compact active-agent header indicator with the agent icon, name,
and capability summary.
- Add a focused Vitest coverage case for the agent-aware empty state and
header indicator.
## Test plan
- [x] `npm run test` from `src/gaia/apps/webui` passed: 4 files, 41
tests.
- [x] `npm run build` from `src/gaia/apps/webui` passed.
- [x] `git diff --check` passed.
- [x] `python util/lint.py --all` was run. Black, isort, Flake8, import
validation, dependabot validation, and doc version checks passed. The
all-repo Pylint gate reported existing Python analyzer errors unrelated
to this Agent UI change:
- `src/gaia/agents/base/console.py:933`
- `src/gaia/installer/lemonade_installer.py:630`
- `src/gaia/mcp/servers/agent_ui_mcp.py:470`
- [x] `python -m pytest tests/unit` was run after installing the local
dev/API/MCP extras. The suite collected 5424 tests, then hit unrelated
baseline/env failures and timed out after 10 minutes at 78%.
## Checklist
- [x] I have linked a GitHub issue above (`Closes #N` / `Fixes #N` /
`Refs #N`).
- [x] I have described **why** this change is being made, not just what
changed.
- [x] I have run linting and tests locally (`python util/lint.py --all`,
`pytest tests/unit/`), with the repo-wide Python baseline notes included
above.
- [x] Documentation not updated; this is a small contextual UI
affordance with no setup, API, or workflow documentation change.
Co-authored-by: Tomasz Iniewicz <itomek@users.noreply.github.com>1 parent a55e23b commit 0fe2187
3 files changed
Lines changed: 213 additions & 8 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
42 | 42 | | |
43 | 43 | | |
44 | 44 | | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
45 | 89 | | |
46 | 90 | | |
47 | 91 | | |
| |||
260 | 304 | | |
261 | 305 | | |
262 | 306 | | |
| 307 | + | |
| 308 | + | |
| 309 | + | |
| 310 | + | |
| 311 | + | |
263 | 312 | | |
264 | 313 | | |
265 | 314 | | |
| |||
273 | 322 | | |
274 | 323 | | |
275 | 324 | | |
276 | | - | |
| 325 | + | |
277 | 326 | | |
278 | 327 | | |
279 | 328 | | |
280 | 329 | | |
| 330 | + | |
| 331 | + | |
| 332 | + | |
| 333 | + | |
| 334 | + | |
| 335 | + | |
| 336 | + | |
| 337 | + | |
| 338 | + | |
| 339 | + | |
| 340 | + | |
| 341 | + | |
| 342 | + | |
| 343 | + | |
| 344 | + | |
| 345 | + | |
281 | 346 | | |
282 | 347 | | |
283 | 348 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
13 | | - | |
| 13 | + | |
| 14 | + | |
14 | 15 | | |
15 | 16 | | |
16 | 17 | | |
| |||
23 | 24 | | |
24 | 25 | | |
25 | 26 | | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
26 | 38 | | |
27 | 39 | | |
28 | 40 | | |
| |||
195 | 207 | | |
196 | 208 | | |
197 | 209 | | |
| 210 | + | |
| 211 | + | |
| 212 | + | |
| 213 | + | |
| 214 | + | |
| 215 | + | |
| 216 | + | |
| 217 | + | |
| 218 | + | |
198 | 219 | | |
199 | 220 | | |
200 | 221 | | |
| |||
1294 | 1315 | | |
1295 | 1316 | | |
1296 | 1317 | | |
| 1318 | + | |
| 1319 | + | |
| 1320 | + | |
1297 | 1321 | | |
1298 | 1322 | | |
1299 | 1323 | | |
| |||
1347 | 1371 | | |
1348 | 1372 | | |
1349 | 1373 | | |
| 1374 | + | |
| 1375 | + | |
| 1376 | + | |
| 1377 | + | |
| 1378 | + | |
| 1379 | + | |
| 1380 | + | |
| 1381 | + | |
| 1382 | + | |
| 1383 | + | |
| 1384 | + | |
| 1385 | + | |
| 1386 | + | |
| 1387 | + | |
| 1388 | + | |
| 1389 | + | |
| 1390 | + | |
1350 | 1391 | | |
1351 | 1392 | | |
1352 | 1393 | | |
| |||
1495 | 1536 | | |
1496 | 1537 | | |
1497 | 1538 | | |
1498 | | - | |
1499 | | - | |
| 1539 | + | |
| 1540 | + | |
| 1541 | + | |
| 1542 | + | |
| 1543 | + | |
| 1544 | + | |
1500 | 1545 | | |
1501 | | - | |
1502 | | - | |
1503 | | - | |
| 1546 | + | |
| 1547 | + | |
| 1548 | + | |
| 1549 | + | |
| 1550 | + | |
1504 | 1551 | | |
| 1552 | + | |
| 1553 | + | |
| 1554 | + | |
1505 | 1555 | | |
1506 | | - | |
| 1556 | + | |
1507 | 1557 | | |
1508 | 1558 | | |
1509 | 1559 | | |
| |||
Lines changed: 90 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
0 commit comments