From a81e5aea632f097a0eb534badc098469103a8bb8 Mon Sep 17 00:00:00 2001 From: Eyejoker Date: Tue, 31 Mar 2026 05:43:54 +0900 Subject: [PATCH] style: format pending paired turn helpers --- src/message-runtime.test.ts | 5 ++++- src/message-runtime.ts | 14 ++++++-------- 2 files changed, 10 insertions(+), 9 deletions(-) diff --git a/src/message-runtime.test.ts b/src/message-runtime.test.ts index ed33197..4d3c152 100644 --- a/src/message-runtime.test.ts +++ b/src/message-runtime.test.ts @@ -863,7 +863,10 @@ describe('createMessageRuntime', () => { expect(result).toBe(true); expect(agentRunner.runAgentProcess).toHaveBeenCalledTimes(1); - expect(channel.sendMessage).toHaveBeenCalledWith(chatJid, 'arbiter 확인 완료'); + expect(channel.sendMessage).toHaveBeenCalledWith( + chatJid, + 'arbiter 확인 완료', + ); }); it('allows follow-up messages without a trigger after a visible reply in non-main groups', async () => { diff --git a/src/message-runtime.ts b/src/message-runtime.ts index 9bc4f6f..0fb2d03 100644 --- a/src/message-runtime.ts +++ b/src/message-runtime.ts @@ -667,14 +667,12 @@ export function createMessageRuntime(deps: MessageRuntimeDeps): { const buildPendingPairedTurn = ( task: PairedTask, rawMissedMessages: NewMessage[], - ): - | { - prompt: string; - channel: Channel; - cursor: string | number | null; - cursorKey?: string; - } - | null => { + ): { + prompt: string; + channel: Channel; + cursor: string | number | null; + cursorKey?: string; + } | null => { const lastRaw = rawMissedMessages[rawMissedMessages.length - 1]; const cursor = lastRaw?.seq ?? lastRaw?.timestamp ?? null; const taskStatus = task.status;