Commit c6eb7e8
committed
improvement(chat): restore stable inline tool activity headers and action summaries
Mothership v1.0.0 reintroduced the "Searching -> Searched -> Searching"
flicker that staging had fixed: between two calls of an open main-agent
activity, the header dropped to the past tense, lost its shimmer, and the
turn-level Thinking row appeared until the next call started. It also removed
the header icon and summarized headers as "<latest title> + N".
Stable in-progress header
- An open main-agent activity group (the streaming turn's tail, with nothing
after its last call) stays in progress through gaps: present-tense label of
its latest call, shimmer while that call runs or has succeeded. Only that
tail group is open; a pending approval or terminal handoff later in the
lane no longer re-opens earlier finished groups.
- Exactly one live indicator at a time: a main-agent search label now
shimmers while its call streams or runs, and hides Thinking like any
executing call. Once a trailing search finishes it shows static results, so
the gap after it belongs to Thinking. The open-run check follows the same
search/non-search split the transcript renders.
- assistantMessageHasVisibleActivity again lets that open group own the wait,
so Thinking no longer appears between its calls. Thinking still shows at turn
start, after prose closes the group, and after a failed or stopped call.
- Succeeded calls arrive with past-tense titles, so the open header maps them
back through the exact inverse of the completed-verb rewrite
(getToolActiveTitle). Subagent lanes use the same mapping; their open/active
rules are unchanged.
Header icons
- Group headers and single inline rows render the running or latest call's
icon again; a finished multi-call header shows the first successful call's
icon, matching the summary's first phrase.
Summaries without "+N"
- Running headers show only the active call. Finished groups use the model's
completedTitle when every call succeeded, and otherwise a fallback naming up
to three distinct successful actions ("Navigated, read pages, clicked
elements"), picked by first occurrence in transcript order. Failed calls are
left out, and the " · N stopped/skipped" outcome suffix stays.
- A rebuilt action catalog covers the current tool surface: every visible
catalog tool and operation, plus sim_cli commands. Each command's verb comes
from its own display title, and the object comes from its resource path, so
commands on one resource share a word ("Listed, read tables"). `mkdir`
commands read as creating folders and `tables upsert` as writing table rows.
Tools outside the catalog use their own completed title.
Separate finished activity groups
- groupByActivity still splits main-agent calls by activity id, but no longer
merges finished groups into one header, so the completedGroupCount plumbing
is removed, along with the unused getAgentIcon fallback parameter.1 parent 2d0353a commit c6eb7e8
20 files changed
Lines changed: 1447 additions & 235 deletions
File tree
- apps/sim
- app/workspace/[workspaceId]/home/components/message-content
- components/agent-group
- lib/mothership/tools
Lines changed: 22 additions & 28 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
146 | 146 | | |
147 | 147 | | |
148 | 148 | | |
149 | | - | |
| 149 | + | |
150 | 150 | | |
151 | 151 | | |
152 | 152 | | |
| |||
164 | 164 | | |
165 | 165 | | |
166 | 166 | | |
167 | | - | |
| 167 | + | |
168 | 168 | | |
169 | 169 | | |
170 | 170 | | |
| |||
241 | 241 | | |
242 | 242 | | |
243 | 243 | | |
244 | | - | |
| 244 | + | |
245 | 245 | | |
246 | 246 | | |
247 | 247 | | |
| |||
251 | 251 | | |
252 | 252 | | |
253 | 253 | | |
254 | | - | |
| 254 | + | |
255 | 255 | | |
256 | 256 | | |
257 | 257 | | |
| |||
281 | 281 | | |
282 | 282 | | |
283 | 283 | | |
284 | | - | |
285 | | - | |
286 | | - | |
287 | | - | |
288 | | - | |
289 | | - | |
| 284 | + | |
| 285 | + | |
290 | 286 | | |
291 | 287 | | |
292 | | - | |
| 288 | + | |
293 | 289 | | |
294 | 290 | | |
295 | 291 | | |
296 | | - | |
297 | | - | |
298 | | - | |
299 | | - | |
300 | | - | |
301 | | - | |
| 292 | + | |
| 293 | + | |
302 | 294 | | |
303 | | - | |
| 295 | + | |
| 296 | + | |
| 297 | + | |
| 298 | + | |
304 | 299 | | |
305 | 300 | | |
306 | 301 | | |
| |||
326 | 321 | | |
327 | 322 | | |
328 | 323 | | |
329 | | - | |
| 324 | + | |
330 | 325 | | |
331 | 326 | | |
332 | 327 | | |
| |||
363 | 358 | | |
364 | 359 | | |
365 | 360 | | |
366 | | - | |
| 361 | + | |
367 | 362 | | |
368 | 363 | | |
369 | 364 | | |
| |||
375 | 370 | | |
376 | 371 | | |
377 | 372 | | |
378 | | - | |
379 | 373 | | |
380 | 374 | | |
381 | 375 | | |
| |||
384 | 378 | | |
385 | 379 | | |
386 | 380 | | |
387 | | - | |
| 381 | + | |
388 | 382 | | |
389 | 383 | | |
390 | 384 | | |
| |||
393 | 387 | | |
394 | 388 | | |
395 | 389 | | |
396 | | - | |
| 390 | + | |
397 | 391 | | |
398 | 392 | | |
399 | 393 | | |
| |||
412 | 406 | | |
413 | 407 | | |
414 | 408 | | |
415 | | - | |
| 409 | + | |
416 | 410 | | |
417 | 411 | | |
418 | | - | |
419 | | - | |
| 412 | + | |
| 413 | + | |
420 | 414 | | |
421 | 415 | | |
422 | 416 | | |
| |||
448 | 442 | | |
449 | 443 | | |
450 | 444 | | |
451 | | - | |
452 | | - | |
| 445 | + | |
| 446 | + | |
453 | 447 | | |
454 | 448 | | |
455 | 449 | | |
| |||
Lines changed: 11 additions & 16 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
9 | | - | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
10 | 14 | | |
11 | 15 | | |
12 | 16 | | |
| |||
19 | 23 | | |
20 | 24 | | |
21 | 25 | | |
| 26 | + | |
22 | 27 | | |
23 | 28 | | |
24 | 29 | | |
| |||
54 | 59 | | |
55 | 60 | | |
56 | 61 | | |
57 | | - | |
58 | 62 | | |
59 | 63 | | |
60 | 64 | | |
| |||
69 | 73 | | |
70 | 74 | | |
71 | 75 | | |
| 76 | + | |
72 | 77 | | |
73 | | - | |
| 78 | + | |
74 | 79 | | |
75 | 80 | | |
76 | 81 | | |
77 | 82 | | |
78 | 83 | | |
| 84 | + | |
79 | 85 | | |
80 | 86 | | |
81 | 87 | | |
| |||
148 | 154 | | |
149 | 155 | | |
150 | 156 | | |
151 | | - | |
152 | 157 | | |
153 | 158 | | |
154 | 159 | | |
| |||
169 | 174 | | |
170 | 175 | | |
171 | 176 | | |
172 | | - | |
173 | 177 | | |
174 | 178 | | |
175 | 179 | | |
| |||
253 | 257 | | |
254 | 258 | | |
255 | 259 | | |
256 | | - | |
257 | 260 | | |
258 | 261 | | |
259 | 262 | | |
| |||
267 | 270 | | |
268 | 271 | | |
269 | 272 | | |
270 | | - | |
271 | | - | |
272 | | - | |
273 | | - | |
274 | | - | |
| 273 | + | |
275 | 274 | | |
276 | 275 | | |
277 | 276 | | |
| |||
280 | 279 | | |
281 | 280 | | |
282 | 281 | | |
283 | | - | |
284 | | - | |
285 | | - | |
286 | | - | |
287 | | - | |
| 282 | + | |
288 | 283 | | |
289 | 284 | | |
290 | 285 | | |
| |||
0 commit comments