mirror of
https://github.com/NanmiCoder/cc-haha
synced 2026-07-16 13:03:31 +08:00
Chat selection references could miss drag gestures that ended outside the message bubble after the Electron migration. The chat transcript now tracks selection gestures at the document pointer-up boundary and repositions the shared selection action near the selected text with above-then-right placement. Constraint: Electron/WebView selection ranges are not always stable during the message-local mouseup event Rejected: Add a new selection popover system | the existing shared selection hook already covers chat and workspace dismissal behavior Confidence: high Scope-risk: narrow Directive: Keep chat and workspace selection popovers on the shared positioning/dismissal hook unless their behavior intentionally diverges Tested: bun run test -- src/components/chat/MessageList.test.tsx -t "selected-message action" Tested: bun run test -- src/components/chat/MessageList.test.tsx Tested: bun run check:desktop Tested: in-app browser smoke at http://127.0.0.1:5181/ with zero console errors Not-tested: Packaged Electron manual drag selection smoke Related: #351