From 2be2464d259a6640c72a6f5b4efd6a03ef745176 Mon Sep 17 00:00:00 2001 From: teknium1 <127238744+teknium1@users.noreply.github.com> Date: Sun, 26 Jul 2026 21:02:27 -0700 Subject: [PATCH] fix(desktop): satisfy eslint in approvals-command rebase --- .../src/app/session/hooks/use-prompt-actions/index.test.tsx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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 }