Skip to content

The agent that grows with you

test(desktop): pin the explicit deep-truncate confirm on edit and tile restore retry

kshitijk4poor45be34ba9c77
diff --git a/apps/desktop/src/app/chat/session-tile-actions.test.ts b/apps/desktop/src/app/chat/session-tile-actions.test.ts
index 49f1eba1110..fc0c08f68c1 100644
--- a/apps/desktop/src/app/chat/session-tile-actions.test.ts
+++ b/apps/desktop/src/app/chat/session-tile-actions.test.ts
@@ -353,6 +353,7 @@ describe('useSessionTileActions reloadFromMessage failed-submit rollback (#95745
expect(resumeTile).toHaveBeenCalledWith(STORED_SESSION_ID, { refreshTranscript: true })
expect(submitAttempts).toBe(2)
expect(submitCalls[1]?.params).toMatchObject({
+ confirm_deep_truncate: true,
truncate_before_row_id: 501
})
})
diff --git a/apps/desktop/src/app/session/hooks/use-prompt-actions/index.test.tsx b/apps/desktop/src/app/session/hooks/use-prompt-actions/index.test.tsx
index a069ea75c1c..7220000e6b6 100644
--- a/apps/desktop/src/app/session/hooks/use-prompt-actions/index.test.tsx
+++ b/apps/desktop/src/app/session/hooks/use-prompt-actions/index.test.tsx
@@ -6024,6 +6024,9 @@ describe('usePromptActions stale-closure session routing', () => {
expect(updated).toContain(RUNTIME_SESSION_B)
expect(updated).not.toContain(RUNTIME_SESSION_ID)
+ expect(gatewayCalls(requestGateway).find(([m]) => m === 'prompt.submit')?.[1]).toMatchObject({
+ confirm_deep_truncate: true
+ })
for (const [, params] of gatewayCalls(requestGateway)) {
if (params && 'session_id' in params) {