fix(agent-loop): scope blocked admission cleanup

This commit is contained in:
_Kerman
2026-07-31 14:35:58 +08:00
parent 12a48558f2
commit c2ff9ddec8
18 changed files with 162 additions and 51 deletions

View File

@@ -350,7 +350,7 @@ export function apply(ctx: Context): void {
cancelReservation(agent, attempt)
}
requestDrive(state)
return { kind: 'block', reason: STALE_ROUND_REASON, keepInbox: true }
return { kind: 'block', reason: STALE_ROUND_REASON, discardClaimed: false }
}
let decision: PromptDecision
try {
@@ -398,7 +398,7 @@ export function apply(ctx: Context): void {
cancelReservation(agent, attempt)
}
requestDrive(state)
return { kind: 'block', reason: STALE_ROUND_REASON, keepInbox: true }
return { kind: 'block', reason: STALE_ROUND_REASON, discardClaimed: false }
}
return decision
})