From 95c341a93dd4896e8088a329c4120429ff348b57 Mon Sep 17 00:00:00 2001 From: snowykr Date: Fri, 4 Sep 2026 22:33:39 +0900 Subject: [PATCH] fix: prevent bypass dialog jump --- src/components/chat/view/BypassConfirmDialog.tsx | 2 +- src/components/chat/view/PermissionModePicker.dom.bun.test.tsx | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/components/chat/view/BypassConfirmDialog.tsx b/src/components/chat/view/BypassConfirmDialog.tsx index bc575847..f87c3db0 100644 --- a/src/components/chat/view/BypassConfirmDialog.tsx +++ b/src/components/chat/view/BypassConfirmDialog.tsx @@ -18,7 +18,7 @@ export default function BypassConfirmDialog({ open, onCancel, onConfirm }: Bypas const { t } = useTranslation('chat'); return ( { if (!next) onCancel(); }}> - + {t('permissionMode.bypassConfirm.title')} diff --git a/src/components/chat/view/PermissionModePicker.dom.bun.test.tsx b/src/components/chat/view/PermissionModePicker.dom.bun.test.tsx index cb4232dd..da15ca07 100644 --- a/src/components/chat/view/PermissionModePicker.dom.bun.test.tsx +++ b/src/components/chat/view/PermissionModePicker.dom.bun.test.tsx @@ -58,6 +58,7 @@ test('the first switch to bypass asks for confirmation and only then reports it, const dialog = await screen.findByRole('dialog'); assert.match(dialog.textContent ?? '', /run any command without asking/); + assert.match(dialog.className, /animate-none/, 'the bypass warning opens at its final centered position'); assert.deepEqual(updates, [], 'nothing is sent before the user confirms'); fireEvent.click(screen.getByRole('button', { name: 'Cancel' }));