Repository navigation
fix(web): save edited annotations before direct send - #1184
Conversation
On touch devices the send button preserves focus, so the annotation textarea's blur handler may not run before submission. Explicitly blur the active annotation editor on primary-send mousedown and cover the focus helper with a focused unit test.
|
Caution Review failedThe pull request is closed. No actionable comments were generated in the recent review. Summary
Merge Risk:
|
|
Thanks for fixing this subtle touch/direct-send annotation bug! Before merging into |
Summary
Related issues
N/A
UI Demo
No visual changes: this PR only changes focus/submission ordering; the annotation tray appearance and styling are unchanged.
Test plan
npx vitest run --config tests/vitest.config.js apps/web-ui/packages/client/ui-conversation/test/view-binding.test.ts— 1 test passed.npx tsc -b packages/web-server && npm run build:web:ui— passed.FakeChHost, mobile emulation at 390×844: reproduced the stale comment on the unmodified base, then verified after the fix that both the actualturn/startpayload and the sent-message annotation card contain the new comment; no page errors.git diff --check, and UTF-8 without BOM checks passed.upstream/mainwithout conflicts; upstream did not change the affected files.🤖 Generated with Claude Code