diff --git a/src/renderer/src/components/native-chat/native-chat-question-card-composition-survival.test.tsx b/src/renderer/src/components/native-chat/native-chat-question-card-composition-survival.test.tsx index fa44e2aee1b..7544b56ab29 100644 --- a/src/renderer/src/components/native-chat/native-chat-question-card-composition-survival.test.tsx +++ b/src/renderer/src/components/native-chat/native-chat-question-card-composition-survival.test.tsx @@ -190,7 +190,14 @@ function setInteractivePrompt(prompt: string | null, rendered: ReturnType { @@ -257,7 +264,10 @@ describe('native chat question card vs an in-flight composition', () => { // The mechanism, pinned directly: onChange fires on composition `input` // frames, so the draft cache — not the unmounted DOM node — is what carries - // the preedit across the swap. Gating onChange on `isComposing` breaks here. + // the preedit across the swap. Gating onChange on either `isComposing` or + // `inputType` breaks here — the frames now carry both, so neither gate is + // exempt. Previously only `inputType` was set, so an `isComposing` gate + // passed this suite untouched despite the claim. setInteractivePrompt(ASK_USER_QUESTION, rendered) expect(readNativeChatDraftCache(PANE_KEY)).toBe('가') })