style: format pending paired turn helpers
This commit is contained in:
@@ -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 () => {
|
||||
|
||||
@@ -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 => {
|
||||
} | null => {
|
||||
const lastRaw = rawMissedMessages[rawMissedMessages.length - 1];
|
||||
const cursor = lastRaw?.seq ?? lastRaw?.timestamp ?? null;
|
||||
const taskStatus = task.status;
|
||||
|
||||
Reference in New Issue
Block a user