Repository navigation
Commit a0f9770
committed
fix(task): hand a consumed submission's ID only when its entry is reserved
What: the pending-slot consumption hands queuedMessageId to the caller
only when claimMessage(submittedId) succeeds; the tracker is cleared
either way. When the entry is gone (user deleted the queued message
between drain submission and consumption), the response text/images are
still returned but with queuedMessageId undefined, so the consumer
treats them as direct feedback via the say path.
Why: with the reservation change, claimMessage can fail on an entry the
webview removed mid-flight; handing the ID anyway made the durable ack
persist feedback and then fail at removeMessage on the missing entry,
turning sayUserFeedbackAndAckQueued into a throw (CodeRabbit 4174162031).
Impact: no ID without a live reserved entry; deleted-mid-flight
submissions degrade to direct feedback. Pin: drain-submit -> remove ->
consume returns the text with queuedMessageId undefined.1 parent d6d0b86 commit a0f9770
2 files changed
Lines changed: 30 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2535 | 2535 | | |
2536 | 2536 | | |
2537 | 2537 | | |
2538 | | - | |
2539 | | - | |
| 2538 | + | |
| 2539 | + | |
| 2540 | + | |
| 2541 | + | |
| 2542 | + | |
| 2543 | + | |
| 2544 | + | |
2540 | 2545 | | |
2541 | 2546 | | |
2542 | 2547 | | |
2543 | 2548 | | |
2544 | 2549 | | |
2545 | 2550 | | |
2546 | | - | |
| 2551 | + | |
| 2552 | + | |
| 2553 | + | |
2547 | 2554 | | |
2548 | 2555 | | |
2549 | 2556 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
481 | 481 | | |
482 | 482 | | |
483 | 483 | | |
| 484 | + | |
| 485 | + | |
| 486 | + | |
| 487 | + | |
| 488 | + | |
| 489 | + | |
| 490 | + | |
| 491 | + | |
| 492 | + | |
| 493 | + | |
| 494 | + | |
| 495 | + | |
| 496 | + | |
| 497 | + | |
| 498 | + | |
| 499 | + | |
| 500 | + | |
| 501 | + | |
| 502 | + | |
| 503 | + | |
484 | 504 | | |
485 | 505 | | |
486 | 506 | | |
| |||
0 commit comments