diff --git a/src/message-runtime.test.ts b/src/message-runtime.test.ts index d227839..e03d8a7 100644 --- a/src/message-runtime.test.ts +++ b/src/message-runtime.test.ts @@ -35,10 +35,12 @@ vi.mock('./config.js', () => ({ vi.mock('./paired-execution-context.js', () => ({ preparePairedExecutionContext: vi.fn(() => undefined), completePairedExecutionContext: vi.fn(), - resolveOwnerTaskForHumanMessage: vi.fn((args?: { existingTask?: unknown }) => ({ - task: args?.existingTask ?? null, - supersededTask: null, - })), + resolveOwnerTaskForHumanMessage: vi.fn( + (args?: { existingTask?: unknown }) => ({ + task: args?.existingTask ?? null, + supersededTask: null, + }), + ), })); vi.mock('./db.js', () => { diff --git a/src/paired-execution-context.ts b/src/paired-execution-context.ts index 799a663..c464d22 100644 --- a/src/paired-execution-context.ts +++ b/src/paired-execution-context.ts @@ -173,7 +173,8 @@ function cancelOutstandingFinalizeOwnerTurn(task: PairedTask): void { } cancelPairedTurn({ turnIdentity, - error: 'Superseded by a newer human message before owner finalize delivery.', + error: + 'Superseded by a newer human message before owner finalize delivery.', }); logger.info( { @@ -358,8 +359,7 @@ export function preparePairedExecutionContext(args: { // bot-only ping-pong must accumulate the counter for loop detection. const hasHuman = args.hasHumanMessage === true; const needsStatusReset = - latestTask.status === 'review_ready' || - latestTask.status === 'in_review'; + latestTask.status === 'review_ready' || latestTask.status === 'in_review'; if (hasHuman || needsStatusReset) { if (needsStatusReset) { transitionPairedTaskStatus({