The best way to control Claude Code, Codex and more from any computer or phone
Mirrored from https://github.com/Camo67/t3code.git
Synced Nov 23, 21:45 UTC
fix(web): paste after clicking away from the composer lands in it again (#13553)
Co-authored-by: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Theo Browne committed
Sep 24, 2026 at 21:56 UTC
0c84b4289cc9dee9af770a823f812ea1e8bea05d
1 file changed
+7
-5
apps/web/src/components/ChatView.tsx
+7
-5
@@ -642,6 +642,8 @@ const TYPE_TO_FOCUS_INTERACTIVE_SELECTOR = [
642
'[role="switch"]',
643
'[role="tab"]',
644
].join(",");
645
+// Popups match only while open or closing: some stay mounted when closed,
646
+// such as the chat header actions menu.
647
const TYPE_TO_FOCUS_FLOATING_LAYER_SELECTOR = [
648
'[role="dialog"][aria-modal="true"]',
649
'[data-slot="alert-dialog-popup"]:is([data-open],[data-ending-style])',
@@ -649,11 +651,11 @@ const TYPE_TO_FOCUS_FLOATING_LAYER_SELECTOR = [
651
'[data-slot="dialog-popup"]:is([data-open],[data-ending-style])',
652
'[data-slot="sheet-popup"]:is([data-open],[data-ending-style])',
653
'[data-slot="sidebar"][data-mobile="true"]:is([data-open],[data-ending-style])',
652
- '[data-slot="menu-popup"]',
653
- '[data-slot="select-popup"]',
654
- '[data-slot="popover-popup"]',
655
- '[data-slot="combobox-popup"]',
656
- '[data-slot="autocomplete-popup"]',
654
+ '[data-slot="menu-popup"]:is([data-open],[data-ending-style])',
655
+ '[data-slot="select-popup"]:is([data-open],[data-ending-style])',
656
+ '[data-slot="popover-popup"]:is([data-open],[data-ending-style])',
657
+ '[data-slot="combobox-popup"]:is([data-open],[data-ending-style])',
658
+ '[data-slot="autocomplete-popup"]:is([data-open],[data-ending-style])',
659
].join(",");
660
661
type EnvironmentUnavailableState = {