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.
This commit is contained in:
parent
040420bd11
commit
4aeb6f4a4f
|
|
@ -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 {}
|
||||
|
|
|
|||
Loading…
Reference in New Issue