Skip to content

The agent that grows with you

style(desktop): drop stray semicolons in rewind.ts

kshitij4aeb6f4a4f96
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 214992c21d1..23d9d380958 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<string, unknown> {
- 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 {}