Commit a62cdeb
fix(agentex): publish task_updated when a task is failed via the service
AgentTaskService.fail_task persisted FAILED via task_repository.update without
publishing a task_updated event — the only terminal write that didn't emit.
An actively streaming viewer therefore never learned the task failed and its
SSE stream blocked forever (an eventless terminal transition).
Route fail_task through update_task so it emits like every other terminal
write. Now all terminal transitions publish an event, which the SSE in-loop
check reacts to — no eventless-terminal leak.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>1 parent 79b341a commit a62cdeb
1 file changed
Lines changed: 8 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
166 | 166 | | |
167 | 167 | | |
168 | 168 | | |
169 | | - | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
170 | 172 | | |
171 | 173 | | |
172 | 174 | | |
| |||
374 | 376 | | |
375 | 377 | | |
376 | 378 | | |
377 | | - | |
| 379 | + | |
| 380 | + | |
| 381 | + | |
| 382 | + | |
| 383 | + | |
378 | 384 | | |
379 | 385 | | |
380 | 386 | | |
| |||
0 commit comments