style: format pending paired turn helpers

This commit is contained in:
Eyejoker
2026-03-31 05:43:54 +09:00
parent 43f8341c17
commit a81e5aea63
2 changed files with 10 additions and 9 deletions

View File

@@ -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 () => {

View File

@@ -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;