The agent that grows with you
Python aiai-agentai-agentsanthropicchatgptclaudeclaude-codecodexhermeshermes-agentllmnous-researchopenai
fmt(js): `npm run fix` on merge (#87296)
hermes-seaeye[bot]17c7b0bebd3f
diff --git a/apps/desktop/src/app/chat/session-tile-actions.ts b/apps/desktop/src/app/chat/session-tile-actions.tsindex 64aa2129666..274be26c6f5 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 }: Sestry {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.tsindex 85b92b0946b..cedcc7a5674 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 adiff --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.tsindex d9b1ffbd32a..f1158f34c17 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.tsindex 91250fdb659..6cde8c434ba 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)