From 4aeb6f4a4f9615e1573b2606fc5e638107372af4 Mon Sep 17 00:00:00 2001 From: kshitij <82637225+kshitijk4poor@users.noreply.github.com> Date: Tue, 11 Aug 2026 14:17:42 +0530 Subject: [PATCH] style(desktop): drop stray semicolons in rewind.ts Three PR-introduced trailing semicolons in a semicolon-free file; rewind.test.ts re-run green (5/5) with the change in place. --- .../src/app/session/hooks/use-prompt-actions/rewind.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/apps/desktop/src/app/session/hooks/use-prompt-actions/rewind.ts b/apps/desktop/src/app/session/hooks/use-prompt-actions/rewind.ts index 214992c21d172..23d9d3809580b 100644 --- a/apps/desktop/src/app/session/hooks/use-prompt-actions/rewind.ts +++ b/apps/desktop/src/app/session/hooks/use-prompt-actions/rewind.ts @@ -39,8 +39,8 @@ export function truncateSubmitParams( truncateMessageId?: string, truncateRowId?: number ): Record { - const hasOrdinal = typeof truncateOrdinal === 'number' && Number.isInteger(truncateOrdinal) && truncateOrdinal >= 0; - const hasRowId = typeof truncateRowId === 'number' && Number.isInteger(truncateRowId); + const hasOrdinal = typeof truncateOrdinal === 'number' && Number.isInteger(truncateOrdinal) && truncateOrdinal >= 0 + const hasRowId = typeof truncateRowId === 'number' && Number.isInteger(truncateRowId) // Renderer ids are ephemeral (`${timestamp}-${index}-${role}` from // chat-messages.ts, plus older `user-…` / `assistant-…` shapes). Gateway // history never carries them — only durable `row_id` / platform message_id. @@ -50,7 +50,7 @@ export function truncateSubmitParams( truncateMessageId.startsWith('assistant-') || truncateMessageId.includes('-synthetic-') || /^\d+-\d+-(user|assistant|tools)\b/.test(truncateMessageId)) - const hasMessageId = typeof truncateMessageId === 'string' && truncateMessageId.length > 0 && !isSyntheticId; + const hasMessageId = typeof truncateMessageId === 'string' && truncateMessageId.length > 0 && !isSyntheticId if (!hasOrdinal && !hasMessageId && !hasRowId) { return {}