Repository navigation
Commit 93a9b65
committed
fix(task): never dequeue queued messages for an aborted task
Tools now await the write checkpoint before handing off queued work,
so a cancellation can land between the write and the handoff.
processQueuedMessages dequeued unconditionally and scheduled
submitUserMessage, which rejects once abort is set - the queued
message was consumed and dropped instead of being left for the
resume/abort flow. The dequeue is now skipped while the task is
aborted, guarding every handoff site at the lowest layer. Regression
test pins that an aborted task leaves the queue intact (negative
control verified: the unconditional dequeue reddens it).
Review feedback on PR 1404 (Lifecycle Resource Cleanup row); ported to
every unit of this series.1 parent aa7f9e4 commit 93a9b65
2 files changed
Lines changed: 36 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6310 | 6310 | | |
6311 | 6311 | | |
6312 | 6312 | | |
| 6313 | + | |
| 6314 | + | |
| 6315 | + | |
| 6316 | + | |
| 6317 | + | |
| 6318 | + | |
| 6319 | + | |
| 6320 | + | |
6313 | 6321 | | |
6314 | 6322 | | |
6315 | 6323 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7119 | 7119 | | |
7120 | 7120 | | |
7121 | 7121 | | |
| 7122 | + | |
| 7123 | + | |
| 7124 | + | |
| 7125 | + | |
| 7126 | + | |
| 7127 | + | |
| 7128 | + | |
| 7129 | + | |
| 7130 | + | |
| 7131 | + | |
| 7132 | + | |
| 7133 | + | |
| 7134 | + | |
| 7135 | + | |
| 7136 | + | |
| 7137 | + | |
| 7138 | + | |
| 7139 | + | |
| 7140 | + | |
| 7141 | + | |
| 7142 | + | |
| 7143 | + | |
| 7144 | + | |
| 7145 | + | |
| 7146 | + | |
| 7147 | + | |
| 7148 | + | |
| 7149 | + | |
7122 | 7150 | | |
7123 | 7151 | | |
7124 | 7152 | | |
| |||
0 commit comments