diff --git a/src/message-runtime-flow.ts b/src/message-runtime-flow.ts index 078fe7d..8058d63 100644 --- a/src/message-runtime-flow.ts +++ b/src/message-runtime-flow.ts @@ -118,7 +118,11 @@ export function buildPendingPairedTurn(args: { const cursor = lastRaw?.seq ?? lastRaw?.timestamp ?? null; const taskStatus = task.status; const turnOutputs = getPairedTurnOutputs(task.id); - const priorTaskContext = resolvePriorTaskPromptContext(chatJid, task, turnOutputs); + const priorTaskContext = resolvePriorTaskPromptContext( + chatJid, + task, + turnOutputs, + ); const lastTurnOutput = turnOutputs[turnOutputs.length - 1]; const nextTurnAction = resolveNextTurnAction({ taskStatus, diff --git a/src/message-runtime-prompts.test.ts b/src/message-runtime-prompts.test.ts index 10d26d1..0f0618f 100644 --- a/src/message-runtime-prompts.test.ts +++ b/src/message-runtime-prompts.test.ts @@ -124,7 +124,9 @@ describe('message-runtime-prompts carry-forward guidance', () => { }, }); - expect(prompt).toContain('Background from the previous completed paired task:'); + expect(prompt).toContain( + 'Background from the previous completed paired task:', + ); expect(prompt).toContain('Previous task owner final:'); expect(prompt).toContain('이전 owner 결론'); expect(prompt).toContain('Previous task reviewer final:'); @@ -144,7 +146,9 @@ describe('message-runtime-prompts carry-forward guidance', () => { }, }); - expect(prompt).toContain('Background from the previous completed paired task:'); + expect(prompt).toContain( + 'Background from the previous completed paired task:', + ); expect(prompt).toContain('Previous task owner final:'); expect(prompt).toContain('Previous task reviewer final:'); expect(prompt).toContain('추가 owner 질문'); diff --git a/src/message-runtime.test.ts b/src/message-runtime.test.ts index 92d6f17..e9c6d68 100644 --- a/src/message-runtime.test.ts +++ b/src/message-runtime.test.ts @@ -35,6 +35,7 @@ vi.mock('./config.js', () => ({ CODEX_REVIEW_SERVICE_ID: 'codex-review', REVIEWER_AGENT_TYPE: 'claude-code', ARBITER_AGENT_TYPE: undefined, + shouldForceFreshClaudeReviewerSessionInUnsafeHostMode: vi.fn(() => false), normalizeServiceId: vi.fn((serviceId: string) => serviceId), isClaudeService: vi.fn(() => true), isReviewService: vi.fn(() => false), @@ -1952,7 +1953,9 @@ If your first line is DONE_WITH_CONCERNS, the system will reopen review instead updated_at: '2026-03-30T00:00:09.000Z', } as any; - vi.mocked(db.getLatestPreviousPairedTaskForChat).mockReturnValue(previousTask); + vi.mocked(db.getLatestPreviousPairedTaskForChat).mockReturnValue( + previousTask, + ); vi.mocked(db.getPairedTurnOutputs).mockImplementation((taskId: string) => { if (taskId === currentTask.id) { return []; @@ -1992,7 +1995,9 @@ If your first line is DONE_WITH_CONCERNS, the system will reopen review instead }); expect(pending).not.toBeNull(); - expect(pending?.prompt).toContain('Background from the previous completed paired task:'); + expect(pending?.prompt).toContain( + 'Background from the previous completed paired task:', + ); expect(pending?.prompt).toContain('Previous task owner final:'); expect(pending?.prompt).toContain('이전 owner 답변'); expect(pending?.prompt).toContain('Previous task reviewer final:');