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] Web UI crashes when pasting large log text into the input box #40229
In the opencode Web UI, when pasting a large amount of log text into the chat input box, the page crashes. After refreshing the page, the page displays normally again, and the pasted log content can be successfully sent.
Steps to Reproduce
Open the opencode Web UI
Create a new session
Paste a large amount of log text into the chat input box
Observe the page crash
Expected Behavior
Pasting large text into the input box should not crash the page; the content should remain editable and sendable.
Actual Behavior
The page crashes immediately after pasting large log text. However, after refreshing, the page renders normally and the log content can be sent successfully.
This issue might be a duplicate of existing issues. Please check:
Pasting a long text in prompt box make Desktop app hang #38932: Pasting a long text in prompt box make Desktop app hang — same symptom (pasting large text into the input box causes the app to become unresponsive/crash), reported for the Desktop app rather than Web UI.
It seems like the page crashes when the input box is overwhelmed with a large amount of data. A potential cause could be the lack of efficient handling for large strings in the handleInputChange function within the input box component. Have you checked if there are any performance bottlenecks or memory issues during the paste operation, perhaps using browser dev tools to monitor performance metrics? Also, implementing a limit on the character count before the paste occurs could help mitigate this behavior temporarily.
I have pasted a 25,3888-character log entry. After refreshing, the pasted content still exists. This indicates that the input box processing performance is poor. However, the content can still be sent normally.
Activity
github-actions commentedon Aug 3, 2026
This issue might be a duplicate of existing issues. Please check:
NuWhE3wn0D commentedon Aug 3, 2026
It seems like the page crashes when the input box is overwhelmed with a large amount of data. A potential cause could be the lack of efficient handling for large strings in the
handleInputChangefunction within the input box component. Have you checked if there are any performance bottlenecks or memory issues during the paste operation, perhaps using browser dev tools to monitor performance metrics? Also, implementing a limit on the character count before the paste occurs could help mitigate this behavior temporarily.GuoChen-thlg commentedon Aug 3, 2026
github-actions commentedon Oct 3, 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.