From 0b8133f44dca1d023bb9f5d72119d05bff3b0e08 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Sat, 15 Aug 2026 22:11:40 +0000 Subject: [PATCH] fmt(js): `npm run fix` on merge --- .../src/app/chat/session-tile-actions.ts | 9 ++++++- .../session/hooks/use-prompt-actions/index.ts | 1 - .../hooks/use-prompt-actions/rewind.test.ts | 25 ++++++++++++++++--- .../hooks/use-prompt-actions/rewind.ts | 5 +++- 4 files changed, 34 insertions(+), 6 deletions(-) diff --git a/apps/desktop/src/app/chat/session-tile-actions.ts b/apps/desktop/src/app/chat/session-tile-actions.ts index 64aa21296669..274be26c6f55 100644 --- a/apps/desktop/src/app/chat/session-tile-actions.ts +++ b/apps/desktop/src/app/chat/session-tile-actions.ts @@ -447,7 +447,14 @@ export function useSessionTileActions({ runtimeId, scope, storedSessionId }: Ses try { applySurvivorRowIds( - await submitRewind(plan.text, plan.truncateOrdinal, false, plan.truncateMessageId, plan.truncateRowId, plan.sourceText) + await submitRewind( + plan.text, + plan.truncateOrdinal, + false, + plan.truncateMessageId, + plan.truncateRowId, + plan.sourceText + ) ) } catch (err) { update(current => ({ ...current, busy: false, awaitingResponse: false })) diff --git a/apps/desktop/src/app/session/hooks/use-prompt-actions/index.ts b/apps/desktop/src/app/session/hooks/use-prompt-actions/index.ts index 85b92b0946bf..cedcc7a56741 100644 --- a/apps/desktop/src/app/session/hooks/use-prompt-actions/index.ts +++ b/apps/desktop/src/app/session/hooks/use-prompt-actions/index.ts @@ -854,7 +854,6 @@ export function usePromptActions({ [activeSessionIdRef, requestGateway, selectedStoredSessionIdRef] ) - const reloadFromMessage = useCallback( async (parentId: string | null) => { // Ref, not the closure-captured prop — a truncating resubmit aimed at a diff --git a/apps/desktop/src/app/session/hooks/use-prompt-actions/rewind.test.ts b/apps/desktop/src/app/session/hooks/use-prompt-actions/rewind.test.ts index d9b1ffbd32a6..f1158f34c17d 100644 --- a/apps/desktop/src/app/session/hooks/use-prompt-actions/rewind.test.ts +++ b/apps/desktop/src/app/session/hooks/use-prompt-actions/rewind.test.ts @@ -264,7 +264,6 @@ describe('finalizeInterruptedMessages', () => { expect(message.parts).toHaveLength(1) expect(message.parts[0].completedAt).toBe(11.25) expect(message.completedAt).toBe(11.25) - }) }) @@ -432,7 +431,17 @@ describe('runRewindSubmit durable-address discipline (#87059)', () => { it('resolves a missing rowId by content before submitting, and drops the client ordinal', async () => { const calls: Call[] = [] - await runRewindSubmit(makeGateway(calls), 'sid', 'fixed prompt', 5, undefined, false, undefined, undefined, 'typo prompt') + await runRewindSubmit( + makeGateway(calls), + 'sid', + 'fixed prompt', + 5, + undefined, + false, + undefined, + undefined, + 'typo prompt' + ) const submit = calls.find(call => call.method === 'prompt.submit') @@ -444,7 +453,17 @@ describe('runRewindSubmit durable-address discipline (#87059)', () => { it('degrades to a plain resubmit when the row id cannot be resolved', async () => { const calls: Call[] = [] - await runRewindSubmit(makeGateway(calls), 'sid', 'fixed prompt', 5, undefined, false, undefined, undefined, 'unknown text') + await runRewindSubmit( + makeGateway(calls), + 'sid', + 'fixed prompt', + 5, + undefined, + false, + undefined, + undefined, + 'unknown text' + ) const submit = calls.find(call => call.method === 'prompt.submit') 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 91250fdb6598..6cde8c434ba5 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 @@ -183,7 +183,10 @@ export async function resolveDurableRowId( const durableUsers = messages.filter( message => - message.role === 'user' && !message.display_kind && typeof message.row_id === 'number' && Number.isInteger(message.row_id) + message.role === 'user' && + !message.display_kind && + typeof message.row_id === 'number' && + Number.isInteger(message.row_id) ) const matches = durableUsers.filter(message => (message.text ?? '').trim() === wanted)