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

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