You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Bug] The "paste summary" causes the content to be disordered after pasting. #25854
When UTF8 characters are included in the input content, if the paste action triggers a paste summary, the actual text passed to the model will be completely scrambled, and the pasted text will be inserted in the wrong position.
Plugins
none
OpenCode version
dev and any release version
Steps to reproduce
Enter some UTF8 text
Paste a long text to trigger paste summary, confirm that you see "[Pasted ~x lines]" displayed.
A sufficiently long test content1 A sufficiently long test content2 A sufficiently long test content3 A sufficiently long test content1 A sufficiently long test content2 A sufficiently long test content4 A sufficiently long test content1 A sufficiently long test content2 A sufficiently long test content5
Activity
github-actions commentedon May 5, 2026
This issue might be a duplicate of existing issues. Please check:
[Pasted ~N lines]tokenIf your issue is the same underlying bug, consider adding a comment there instead.
zclllyybb commentedon May 5, 2026
I have fixed this problem in #25855 and the tests runs well locally. @jlongster would you mind telling me how to continue to push this?
simonklee commentedon Jun 1, 2026
bba7600