Format owner failure recovery changes

This commit is contained in:
ejclaw
2026-04-15 03:11:47 +09:00
parent 2ab3bddc0e
commit 1846d59d2f
2 changed files with 8 additions and 3 deletions

View File

@@ -1018,7 +1018,8 @@ describe('paired execution context', () => {
taskId: 'task-1',
role: 'owner',
status: 'failed',
summary: "Error running remote compact task: Unknown parameter: 'prompt_cache_retention'",
summary:
"Error running remote compact task: Unknown parameter: 'prompt_cache_retention'",
});
expect(db.updatePairedTask).toHaveBeenCalledWith(

View File

@@ -370,7 +370,9 @@ export function preparePairedExecutionContext(args: {
expectedUpdatedAt: latestTask.updated_at,
updatedAt: now,
patch: {
...(hasHuman ? { round_trip_count: 0, owner_failure_count: 0 } : {}),
...(hasHuman
? { round_trip_count: 0, owner_failure_count: 0 }
: {}),
},
});
} else {
@@ -379,7 +381,9 @@ export function preparePairedExecutionContext(args: {
expectedUpdatedAt: latestTask.updated_at,
updatedAt: now,
patch: {
...(hasHuman ? { round_trip_count: 0, owner_failure_count: 0 } : {}),
...(hasHuman
? { round_trip_count: 0, owner_failure_count: 0 }
: {}),
},
});
}