From c8dcffce46d92ddbb1f511baf88df60d322f4ac1 Mon Sep 17 00:00:00 2001 From: Jinwoo Hong <73622457+Jinwoo-H@users.noreply.github.com> Date: Wed, 7 Oct 2026 02:51:07 -0400 Subject: [PATCH] fix(native-chat): pass the @-mention file props in the composer resume test (#26097) #25835 kept the onAcceptMention prop that #26017 replaced with onChooseMentionFile and mentionFiles, so the web typecheck fails on main. --- .../native-chat/native-chat-composer-field-resume.test.tsx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/renderer/src/components/native-chat/native-chat-composer-field-resume.test.tsx b/src/renderer/src/components/native-chat/native-chat-composer-field-resume.test.tsx index 79ccf59d9c2..1f878175754 100644 --- a/src/renderer/src/components/native-chat/native-chat-composer-field-resume.test.tsx +++ b/src/renderer/src/components/native-chat/native-chat-composer-field-resume.test.tsx @@ -35,7 +35,7 @@ vi.mock('./NativeChatSessionOptionPickers', () => ({ })) vi.mock('./NativeChatAutocompleteMenus', () => ({ - NativeChatMentionHint: () => null, + NativeChatMentionMenu: () => null, NativeChatPickerMenu: () => null })) @@ -97,7 +97,8 @@ function TestField({ pickerListboxId="picker" onChoosePickerItem={vi.fn()} onRetrySkills={vi.fn()} - onAcceptMention={vi.fn()} + onChooseMentionFile={vi.fn()} + mentionFiles={{ files: [], loading: false, failed: false }} onRemoveImageAttachment={vi.fn()} onAttach={vi.fn()} onDictationToggle={vi.fn()}