style: format pending paired turn helpers
This commit is contained in:
@@ -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 () => {
|
||||||
|
|||||||
@@ -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;
|
||||||
|
|||||||
Reference in New Issue
Block a user