Skip to content

The agent that grows with you

fix: correct the blur rationale in the edit composer test

teknium17916c2fbdb7b
diff --git a/apps/desktop/src/components/assistant-ui/thread/user-message-edit-shared-composer.test.tsx b/apps/desktop/src/components/assistant-ui/thread/user-message-edit-shared-composer.test.tsx
index bc0e05b5a3c..7e540d6204a 100644
--- a/apps/desktop/src/components/assistant-ui/thread/user-message-edit-shared-composer.test.tsx
+++ b/apps/desktop/src/components/assistant-ui/thread/user-message-edit-shared-composer.test.tsx
@@ -87,8 +87,8 @@ async function openEdit() {
await act(async () => {
fireEvent.pointerDown(bubble, { button: 0 })
- // The bubble click blurs the pane composer: on macOS a <button> never
- // takes mouse focus; elsewhere it does and then unmounts with the bubble.
+ // jsdom does not move focus on a synthetic pointerdown; the explicit blur
+ // stands in for Chromium's mousedown focus leaving the pane composer.
main.blur()
fireEvent.pointerUp(bubble, { button: 0 })
fireEvent.click(bubble)