Deduplicate paired reviewer handoffs
This commit is contained in:
@@ -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 =
|
||||
|
||||
Reference in New Issue
Block a user