fix(web): keep the composer open while selecting timeline text #9499
Mergedjuliusmarmingemerged 1 commit into
fix/composer-paste-expands fromrefs/pull/9499/headmerged by juliusmarminge View on GitHubgithub-actions[bot](GitHub profile, opens in a new tab) added labelssize:M
github-actions[bot](GitHub profile, opens in a new tab) added labelsvouch:trusted
- @@ -4298,0 +4312,21 @@4312+ let wasHolding = false;4313+ const handleSelectionChange = () => {4314+ const holding = selectionHoldsComposerOpen(4315+ window.getSelection(),4316+ getTimelineScrollableNode(),4317+ );4318+ if (wasHolding && !holding) {4319+ scheduleComposerCollapseCheck();4320+ }4321+ wasHolding = holding;4322+ };4323+ document.addEventListener("selectionchange", handleSelectionChange);4324+ return () => {4325+ document.removeEventListener("selectionchange", handleSelectionChange);4326+ };4327+ }, [4328+ getTimelineScrollableNode,4329+ isComposerFocused,4330+ isMobileViewport,4331+ scheduleComposerCollapseCheck,4332+ ]);
juliusmarminge merged this522ebe6
juliusmarminge closed this
Sign in to join this conversation.





Thread transfer impact#
✅ Thread transfer remains within every enforced ceiling.
Baseline: unavailable · PR result:
4557997· Source CI: successScenario and decoded snapshot size
10 historical turns, 5 command tools per turn, 878.9 KiB retained MCP result per historical turn, and a 1.05 MiB retained result in the measured turn.
Updated in place by a trusted workflow. PR artifacts are strictly validated and never executed.