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 068ac9f23ca5..d3aa1cfbb3b0 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 @@ -940,7 +940,9 @@ describe('usePromptActions slash.exec dispatch payloads', () => { const profile = sessionProfiles.get(sessionId) const command = String(params?.command ?? '') - if (profile && command === 'approvals off') persistedModes.set(profile, 'off') + if (profile && command === 'approvals off') { + persistedModes.set(profile, 'off') + } return { output: 'Approval mode: off (persistent profile setting).' } as never }