fix(subagent): preserve continuable behavior after rebase

This commit is contained in:
imccyu
2026-08-01 08:37:21 +08:00
parent 264bc41a13
commit bb6e6d6f3b
22 changed files with 173 additions and 60 deletions

View File

@@ -71,6 +71,7 @@ function createSteeringDelivery(): SteeringDelivery {
return {
receipt: { outcome: promise },
settle(outcome): void {
/* v8 ignore next -- each ownership transfer removes the delivery before another settlement path can reach it. */
if (settled) return
settled = true
resolve(outcome)
@@ -544,6 +545,7 @@ export class ReactLoopAgent implements Agent {
this.drainOutbox(turn)
break steps
}
/* v8 ignore next -- step() folded the same steering predicate into continueTurn immediately before returning. */
if (outcome.continueTurn || this.outbox.some(item => item.steering)) continue
break
case 'request-failed': {