Commit eb2b75b
committed
fix(ui): clear pending run state on cross-run final to fix stuck typing indicator
When a subagent completes and sends a final event with a different
runId, the WebChat UI appends the message but did not clear
chatRunId / chatStream / chatStreamStartedAt. This left the parent
agent visually stuck in a typing / processing state even after the
final response was already visible. Refreshing the page cleared it.
Now clear the pending run state when a cross-run final carries a real
(non-NO_REPLY) assistant message. NO_REPLY / empty finals still
preserve the parent run state since the parent agent may still be
processing.
Closes #57795
Assisted-by: Claude Code1 parent 910134b commit eb2b75b
2 files changed
Lines changed: 14 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
99 | 99 | | |
100 | 100 | | |
101 | 101 | | |
102 | | - | |
| 102 | + | |
103 | 103 | | |
104 | 104 | | |
105 | 105 | | |
| |||
115 | 115 | | |
116 | 116 | | |
117 | 117 | | |
118 | | - | |
119 | | - | |
120 | | - | |
121 | | - | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
122 | 124 | | |
123 | 125 | | |
124 | 126 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
285 | 285 | | |
286 | 286 | | |
287 | 287 | | |
288 | | - | |
| 288 | + | |
| 289 | + | |
| 290 | + | |
| 291 | + | |
| 292 | + | |
| 293 | + | |
| 294 | + | |
289 | 295 | | |
290 | 296 | | |
291 | 297 | | |
| |||
0 commit comments