Commit cc90935
Fix Agent UI Round 5: hide post-tool thinking, FileListView, text spacing (#566)
## Summary
Instrumentation-first fixes for three persistent Agent UI bugs (Rounds 3
and 4 had failed due to incorrect assumptions about data flow — this
round added console.log diagnostics, observed actual runtime behavior,
then fixed based on confirmed evidence).
- **Bug 8** — Post-tool italic thought text no longer shown after tool
result cards
- **Bug 10** — File search results now render as an interactive
`FileListView` with individual file rows and an expandable "+N more"
button (survives page reload)
- **Bug 3** — Pre-tool and post-tool text chunks are now separated by a
paragraph break
## Changes
| File | Change |
|------|--------|
| `AgentActivity.tsx` | Filter thinking steps after first tool step in
`displaySteps`; add `FileListView` component; fix `hasDetail` to include
`fileList` |
| `ChatView.tsx` | Extract `result_data.files` from `tool_result`
events; `toolOccurredRef` flag for paragraph break between text chunks |
| `types/index.ts` | Add `fileList` field to `AgentStep` interface |
| `AgentActivity.css` | Styles for `.file-list-view`, `.file-list-item`,
`.file-list-more` |
| `_chat_helpers.py` | Persist `fileList` in `captured_steps` when
`result_data.type == "file_list"` |
| `models.py` | Add `FileListResponse` model and `fileList` field to
`AgentStepResponse` |
## Test plan
- [ ] Send "Find a file on my computer" in a fresh session
- [ ] Verify no italic thought text appears below the tool result card
(Bug 8)
- [ ] Verify file list renders with individual rows and clickable "+N
more" button (Bug 10)
- [ ] Click "+N more" — list should expand
- [ ] Reload page and re-open session — file list should still render
(DB persistence)
- [ ] Verify response text has proper spacing between sentences (Bug 3)
- [ ] Unit tests: `pytest tests/unit/
--ignore=tests/unit/test_packaging.py` — 1044 passed
- [ ] Lint: all checks pass
## Notes
The `test_packaging.py` failure (`node_modules/@electron/node-gyp`
Python files not in `setup.py`) is pre-existing and unrelated to these
changes — confirmed by running on the unmodified branch.
🤖 Generated with [Claude Code](https://claude.com/claude-code)
---------
Co-authored-by: Kalin Ovtcharov <kalin@extropolis.ai>
Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>1 parent 8a6452f commit cc90935
51 files changed
Lines changed: 1851 additions & 4297 deletions
File tree
- .claude/commands
- src/gaia
- agents/chat
- tools
- apps/webui/src
- components
- services
- stores
- styles
- types
- utils
- ui
- routers
- tests/unit/chat/ui
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
| 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 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
0 commit comments