Commit b015618
fix(ui): reset sawAssistantReply across autonomous turn boundaries
In #90122, annotateToolTurnOutcome was added to collapse non-terminal failed
tool errors when the turn produced a reply. The backward pass resets
sawAssistantReply only at user groups, assuming every turn starts with a
user message. Agent-initiated turns (cron/scheduled/autonomous) have no
user group between them, so a later turn reply leaks backward and stamps
an earlier genuinely-failed turn as turnSucceeded=true, hiding its error
banner.
Fix: add a terminal-turn-boundary reset for assistant groups without
reply text, scope tool errors by terminal turn outcome, and attribute
transcript messages to agent runs.
Related to #97849
Co-authored-by: SunnyShu0925 <[email protected]>
Co-authored-by: Peter Steinberger <[email protected]>1 parent 40d4e32 commit b015618
21 files changed
Lines changed: 777 additions & 516 deletions
File tree
- ui/src
- styles/chat
- ui
- chat
- controllers
- e2e
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
181 | 181 | | |
182 | 182 | | |
183 | 183 | | |
184 | | - | |
185 | 184 | | |
186 | 185 | | |
187 | | - | |
188 | 186 | | |
189 | 187 | | |
190 | 188 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3150 | 3150 | | |
3151 | 3151 | | |
3152 | 3152 | | |
| 3153 | + | |
| 3154 | + | |
| 3155 | + | |
| 3156 | + | |
3153 | 3157 | | |
3154 | 3158 | | |
3155 | 3159 | | |
| |||
3168 | 3172 | | |
3169 | 3173 | | |
3170 | 3174 | | |
| 3175 | + | |
3171 | 3176 | | |
3172 | 3177 | | |
3173 | 3178 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1148 | 1148 | | |
1149 | 1149 | | |
1150 | 1150 | | |
| 1151 | + | |
1151 | 1152 | | |
1152 | 1153 | | |
1153 | 1154 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
432 | 432 | | |
433 | 433 | | |
434 | 434 | | |
| 435 | + | |
| 436 | + | |
| 437 | + | |
| 438 | + | |
| 439 | + | |
| 440 | + | |
| 441 | + | |
| 442 | + | |
| 443 | + | |
| 444 | + | |
| 445 | + | |
| 446 | + | |
| 447 | + | |
| 448 | + | |
| 449 | + | |
| 450 | + | |
| 451 | + | |
| 452 | + | |
| 453 | + | |
| 454 | + | |
| 455 | + | |
| 456 | + | |
| 457 | + | |
| 458 | + | |
| 459 | + | |
| 460 | + | |
| 461 | + | |
| 462 | + | |
435 | 463 | | |
436 | 464 | | |
437 | 465 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
844 | 844 | | |
845 | 845 | | |
846 | 846 | | |
| 847 | + | |
| 848 | + | |
| 849 | + | |
847 | 850 | | |
848 | 851 | | |
849 | 852 | | |
850 | 853 | | |
851 | | - | |
| 854 | + | |
852 | 855 | | |
853 | 856 | | |
854 | 857 | | |
| |||
882 | 885 | | |
883 | 886 | | |
884 | 887 | | |
885 | | - | |
| 888 | + | |
886 | 889 | | |
887 | 890 | | |
888 | 891 | | |
| |||
0 commit comments