Deduplicate paired reviewer handoffs

This commit is contained in:
ejclaw
2026-04-07 08:07:25 +09:00
parent b9d0328b2b
commit 75066f345d
8 changed files with 330 additions and 35 deletions

View File

@@ -11,9 +11,7 @@ export {
} from './agent-attempt-retry.js';
export type PairedFollowUpQueueAction =
| 'generic'
| 'pending'
| 'skip-inline-finalize'
| 'none';
export function resolvePairedFollowUpQueueAction(args: {
@@ -31,14 +29,7 @@ export function resolvePairedFollowUpQueueAction(args: {
});
if (args.executionStatus === 'succeeded' && args.sawOutput) {
if (nextTurnAction.kind === 'reviewer-turn') {
return 'generic';
}
return args.completedRole === 'reviewer' &&
nextTurnAction.kind === 'finalize-owner-turn'
? 'skip-inline-finalize'
: 'none';
return 'none';
}
const shouldRequeuePendingPairedTurn =