mirror of
https://github.com/deepseek-ai/deepseek-harness.git
synced 2026-11-10 20:57:49 +08:00
The composer's paste path used RangeSelection.insertText, which keeps every pasted newline inside one text node. In that document the browser reports the collapsed caret's geometry as the whole block's, so deleting the draft's last line moved the capped scrollport to the draft's head while the caret stayed at its end. RangeSelection.insertRawText splits the input into text and line-break nodes, the document a typed draft already has.