fix(web): address steering review feedback

This commit is contained in:
imccyu
2026-08-02 17:53:07 +08:00
parent cf918fa05d
commit 7d08e43720
27 files changed
+248 -78

No files matched your search

+6 -1
View File
@@ -264,7 +264,12 @@ export class ReactLoopAgent implements Agent {
message: pending.item.message,
placement: 'steering',
})
this.outbox.push({ message: item.message, steering: true, item })
this.outbox.push({
message: item.message,
steering: true,
item,
...pending.delivery === undefined ? {} : { delivery: pending.delivery },
})
// Publish the replacement only after it is owned by the outbox. Its
// enqueue precedes the old occurrence's discard so reentrant
// cancellation can terminally account for both occurrences.