Format files touched by executor refactor
This commit is contained in:
@@ -1553,7 +1553,9 @@ describe('runAgentForGroup Claude rotation', () => {
|
|||||||
});
|
});
|
||||||
|
|
||||||
expect(result).toBe('success');
|
expect(result).toBe('success');
|
||||||
expect(pairedExecutionContext.completePairedExecutionContext).toHaveBeenCalledWith(
|
expect(
|
||||||
|
pairedExecutionContext.completePairedExecutionContext,
|
||||||
|
).toHaveBeenCalledWith(
|
||||||
expect.objectContaining({
|
expect.objectContaining({
|
||||||
taskId: 'paired-task-claude-rotation-success',
|
taskId: 'paired-task-claude-rotation-success',
|
||||||
role: 'owner',
|
role: 'owner',
|
||||||
|
|||||||
@@ -911,8 +911,9 @@ export async function runAgentForGroup(
|
|||||||
| 'pending'
|
| 'pending'
|
||||||
| 'skip-inline-finalize'
|
| 'skip-inline-finalize'
|
||||||
| 'none';
|
| 'none';
|
||||||
type PairedTaskStatus =
|
type PairedTaskStatus = NonNullable<
|
||||||
NonNullable<ReturnType<typeof getPairedTaskById>>['status'];
|
ReturnType<typeof getPairedTaskById>
|
||||||
|
>['status'];
|
||||||
|
|
||||||
const resolvePairedFollowUpQueueAction = (
|
const resolvePairedFollowUpQueueAction = (
|
||||||
completedRole: PairedRoomRole,
|
completedRole: PairedRoomRole,
|
||||||
@@ -1024,7 +1025,8 @@ export async function runAgentForGroup(
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (!primaryAttempt.sawOutput && output.status !== 'error') {
|
if (!primaryAttempt.sawOutput && output.status !== 'error') {
|
||||||
const claudeRetryResult = await retryClaudeAttemptIfNeeded(primaryAttempt);
|
const claudeRetryResult =
|
||||||
|
await retryClaudeAttemptIfNeeded(primaryAttempt);
|
||||||
if (claudeRetryResult) {
|
if (claudeRetryResult) {
|
||||||
return claudeRetryResult;
|
return claudeRetryResult;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -575,8 +575,7 @@ function handleOwnerFinalizeCompletion(args: {
|
|||||||
taskId,
|
taskId,
|
||||||
now,
|
now,
|
||||||
arbiterLogMessage: 'Owner finalize loop detected — requesting arbiter',
|
arbiterLogMessage: 'Owner finalize loop detected — requesting arbiter',
|
||||||
escalateLogMessage:
|
escalateLogMessage: 'Owner finalize loop detected — escalating to user',
|
||||||
'Owner finalize loop detected — escalating to user',
|
|
||||||
logContext: {
|
logContext: {
|
||||||
taskId,
|
taskId,
|
||||||
ownerVerdict,
|
ownerVerdict,
|
||||||
|
|||||||
Reference in New Issue
Block a user