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
Paste-then-type text corruption in command line input box: content overwriting/loss #22785
When pasting text (especially content containing Chinese characters) into the command line input box and then typing additional text manually (e.g., input like [Pasted ~2 lines] text after paste), two critical content corruption issues occur:
The trailing part of the pasted content is overwritten and lost.
The manually typed content after pasting is overwritten by the pasted content, resulting in the loss of manual input.
Steps to Reproduce
Copy a multi-line text block containing Chinese characters to the clipboard.
Paste the text into the OpenCode command line input box.
Immediately type additional text manually right after the pasted content.
Observe the final input content.
Expected Behavior
The pasted content (including Chinese characters) remains fully intact.
The manually typed text is appended correctly after the pasted content, with no overwriting or loss.
Actual Behavior
Either the end of the pasted content is cut off/lost, or
The manually typed text is overwritten by the pasted content and disappears.
The issue is observed when the pasted content contains Chinese characters.
Environment
OpenCode version: 1.4.6
Plugins: None
OS Name: Microsoft Windows 11 Pro
Version: 25H2
OS Build: 26200.8246
Experience: Windows Feature Experience Pack 1000.26100.297.0
Activity
chenyuanrun commentedon Jun 14, 2026
I have the same problem ,please fix it.
github-actions commentedon Aug 14, 2026
To stay organized issues are automatically closed after 60 days of no activity. If the issue is still relevant please open a new one.