The agent that grows with you
Python aiai-agentai-agentsanthropicchatgptclaudeclaude-codecodexhermeshermes-agentllmnous-researchopenai
test(desktop): expect the approval-mode statusbar write to name its profile
teknium1f3107339c36a
diff --git a/apps/desktop/src/app/shell/approval-mode-menu.test.tsx b/apps/desktop/src/app/shell/approval-mode-menu.test.tsxindex 6cef6cb3206..bf6a888b952 100644--- a/apps/desktop/src/app/shell/approval-mode-menu.test.tsx+++ b/apps/desktop/src/app/shell/approval-mode-menu.test.tsx@@ -43,7 +43,13 @@ describe('approval mode statusbar item', () => {fireEvent.click(await screen.findByRole('menuitemradio', { name: /manual/i }))await waitFor(() => {- expect(requestGateway).toHaveBeenCalledWith('config.set', { key: 'approvals.mode', value: 'manual' })+ // The menu shows the "work" profile, so the write must name it (#125969); an unscoped+ // `config.set` would edit whichever profile the backend was launched with instead.+ expect(requestGateway).toHaveBeenCalledWith('config.set', {+ key: 'approvals.mode',+ value: 'manual',+ profile: 'work'+ })expect(screen.getByRole('button', { name: /manual/i })).toBeTruthy()})})