From b5bfbf58c8bde097e8a79bf7f9b78b7ac2493726 Mon Sep 17 00:00:00 2001 From: Jinjing <6427696+AmethystLiang@users.noreply.github.com> Date: Fri, 13 Nov 2026 21:34:27 -0800 Subject: [PATCH] fix(macos): FDA toast copy + inline action row (#41892) * fix(macos): FDA toast copy claims only observed file prompts, not agent interruptions * fix(macos): keep FDA toast actions inline on roomy cards and ring the dismiss link on focus --- .../FullDiskAccessNudgeToast.tsx | 21 +++++++++---------- src/renderer/src/i18n/locales/en.json | 6 +++--- 2 files changed, 13 insertions(+), 14 deletions(-) diff --git a/src/renderer/src/components/macos-permissions/FullDiskAccessNudgeToast.tsx b/src/renderer/src/components/macos-permissions/FullDiskAccessNudgeToast.tsx index 694e9dc6262..f64e4c04e50 100644 --- a/src/renderer/src/components/macos-permissions/FullDiskAccessNudgeToast.tsx +++ b/src/renderer/src/components/macos-permissions/FullDiskAccessNudgeToast.tsx @@ -35,12 +35,10 @@ export function FullDiskAccessNudgeToast({ const t = useTranslate() const title = promptCount > 1 - ? t( - 'auto.hooks.useMacosTccPromptNotice.titleMany', - 'macOS interrupted your agents {{count}}×', - { count: promptCount } - ) - : t('auto.hooks.useMacosTccPromptNotice.titleOne', 'macOS just interrupted an agent') + ? t('auto.hooks.useMacosTccPromptNotice.titleMany', 'macOS showed {{count}} file prompts', { + count: promptCount + }) + : t('auto.hooks.useMacosTccPromptNotice.titleOne', 'macOS just showed a file prompt') return (
@@ -61,15 +59,16 @@ export function FullDiskAccessNudgeToast({

{t( 'auto.hooks.useMacosTccPromptNotice.subtitle', - 'Full Disk Access stops these file prompts.' + 'Full Disk Access stops these prompts.' )}

{/* Why: on a roomy card, indent by illustration width + gap so the actions start - under the title. Below ~22rem of card width (20rem content box) that indent would - push the button past the border, so the row drops it and stacks full width. */} -
+ under the title; below a 20rem content box that indent would overflow, so stack. + Each property is set only by a container variant: dev-loaded utility sheets + (react-grab) re-declare base utilities later and would win a base-vs-variant tie. */} +
{/* Why: Button is nowrap/shrink-0 by default; let the label wrap rather than overflow. */}