Commit e019c3b
fix(agentex): run SSE status recheck on a timer, not only when idle
The lost-terminal-event recheck was gated on idle cycles, so steady non-terminal
traffic (message_count stays nonzero) meant it never ran and a subscriber could
stay open after a terminal transition whose event publish failed. Drive the
recheck off its own interval timer so it fires busy or idle; the keepalive ping
stays idle-only.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>1 parent 571dfe8 commit e019c3b
1 file changed
Lines changed: 15 additions & 9 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
127 | 127 | | |
128 | 128 | | |
129 | 129 | | |
| 130 | + | |
130 | 131 | | |
131 | 132 | | |
132 | 133 | | |
| |||
161 | 162 | | |
162 | 163 | | |
163 | 164 | | |
164 | | - | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
165 | 179 | | |
166 | | - | |
167 | 180 | | |
168 | | - | |
169 | | - | |
170 | | - | |
171 | | - | |
172 | | - | |
173 | | - | |
174 | | - | |
175 | 181 | | |
176 | 182 | | |
177 | 183 | | |
| |||
0 commit comments