Commit 0105da1
committed
fix: keep session ongoing when main file is stale but subagent is active
When a subagent does long-running work, the main session file stops
being written to and becomes stale (>60s). Previously, chunks_ongoing
gated on main file freshness and returned false even though a subagent
was actively running. Now also checks any_subagent_ongoing when chunks
are active but the main file is stale. Also checks pending background
commands at the subagent level.
Entire-Checkpoint: 3bcd1838f1b91 parent af945a9 commit 0105da1
1 file changed
Lines changed: 18 additions & 8 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
198 | 198 | | |
199 | 199 | | |
200 | 200 | | |
201 | | - | |
202 | | - | |
203 | | - | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
| 204 | + | |
| 205 | + | |
| 206 | + | |
| 207 | + | |
| 208 | + | |
| 209 | + | |
| 210 | + | |
| 211 | + | |
204 | 212 | | |
205 | | - | |
206 | | - | |
207 | | - | |
208 | | - | |
| 213 | + | |
| 214 | + | |
| 215 | + | |
209 | 216 | | |
210 | 217 | | |
211 | | - | |
| 218 | + | |
| 219 | + | |
| 220 | + | |
| 221 | + | |
212 | 222 | | |
213 | 223 | | |
214 | 224 | | |
| |||
0 commit comments