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(result).toBe(true);
expect(agentRunner.runAgentProcess).toHaveBeenCalledTimes(1); 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 () => { 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 = ( const buildPendingPairedTurn = (
task: PairedTask, task: PairedTask,
rawMissedMessages: NewMessage[], rawMissedMessages: NewMessage[],
): ): {
| { prompt: string;
prompt: string; channel: Channel;
channel: Channel; cursor: string | number | null;
cursor: string | number | null; cursorKey?: string;
cursorKey?: string; } | null => {
}
| null => {
const lastRaw = rawMissedMessages[rawMissedMessages.length - 1]; const lastRaw = rawMissedMessages[rawMissedMessages.length - 1];
const cursor = lastRaw?.seq ?? lastRaw?.timestamp ?? null; const cursor = lastRaw?.seq ?? lastRaw?.timestamp ?? null;
const taskStatus = task.status; const taskStatus = task.status;