Large pasted content renders poorly in chat history—overflows and blends with questions, hindering review #1983

Closed
opened 2026-02-16 17:33:33 -05:00 by yindo · 11 comments
Owner

Originally created by @LePao1 on GitHub (Oct 7, 2025).

Originally assigned to: @adamdotdevin on GitHub.

When I paste a lot of content into the input box, it appears as shown in the image—nice and tidy.

Image

But after pressing Enter and continuing the conversation, this large amount of content renders poorly—it looks visually messy, the text even overflows the chat box, and the copied text blends in with the question, making it hard for me to review the previous dialogue.

Image
Originally created by @LePao1 on GitHub (Oct 7, 2025). Originally assigned to: @adamdotdevin on GitHub. When I paste a lot of content into the input box, it appears as shown in the image—nice and tidy. <img width="1073" height="636" alt="Image" src="https://github.com/user-attachments/assets/c66c8b27-d70c-496a-97ab-f553da984fda" /> But after pressing Enter and continuing the conversation, this large amount of content renders poorly—it looks visually messy, the text even overflows the chat box, and the copied text blends in with the question, making it hard for me to review the previous dialogue. <img width="1972" height="841" alt="Image" src="https://github.com/user-attachments/assets/4a4e7be0-28ec-4ea5-9fac-2e0f3b679ac9" />
yindo closed this issue 2026-02-16 17:33:33 -05:00
Author
Owner

@github-actions[bot] commented on GitHub (Oct 7, 2025):

This issue might be a duplicate of existing issues. Please check:

  • #372: The chat history gets covered up if the chat box is getting too big
  • #642: Text input overlays the chat/messages
  • #1098: Copy pasting a large text makes it impossible to scroll it to the end
  • #1526: Pasting something big causes UI issues
  • #2582: Prompt box overflows on top of LLM response and cannot be shown with scrolling (closed)

Feel free to ignore if none of these address your specific case.

@github-actions[bot] commented on GitHub (Oct 7, 2025): This issue might be a duplicate of existing issues. Please check: - #372: The chat history gets covered up if the chat box is getting too big - #642: Text input overlays the chat/messages - #1098: Copy pasting a large text makes it impossible to scroll it to the end - #1526: Pasting something big causes UI issues - #2582: Prompt box overflows on top of LLM response and cannot be shown with scrolling (closed) Feel free to ignore if none of these address your specific case.
Author
Owner

@rekram1-node commented on GitHub (Oct 7, 2025):

hm this is specific to your terminal emulator, which one are you using?

@rekram1-node commented on GitHub (Oct 7, 2025): hm this is specific to your terminal emulator, which one are you using?
Author
Owner

@LePao1 commented on GitHub (Oct 7, 2025):

hm this is specific to your terminal emulator, which one are you using?hm 这与您的终端模拟器有关,您使用的是哪个?

I use OpenCode in the terminal within VS Code.

@LePao1 commented on GitHub (Oct 7, 2025): > hm this is specific to your terminal emulator, which one are you using?hm 这与您的终端模拟器有关,您使用的是哪个? I use OpenCode in the terminal within VS Code.
Author
Owner

@rekram1-node commented on GitHub (Oct 7, 2025):

Gotcha, I think we may have this fixed in our opentui version

Generally we recommend:

A modern terminal emulator like:
WezTerm, cross-platform
Alacritty, cross-platform
Ghostty, Linux and macOS
Kitty, Linux and macOS

But i hope we can get the tui rendering inside vscode decently too

@rekram1-node commented on GitHub (Oct 7, 2025): Gotcha, I think we may have this fixed in our opentui version Generally we recommend: > A modern terminal emulator like: [WezTerm](https://wezterm.org/), cross-platform [Alacritty](https://alacritty.org/), cross-platform [Ghostty](https://ghostty.org/), Linux and macOS [Kitty](https://sw.kovidgoyal.net/kitty/), Linux and macOS But i hope we can get the tui rendering inside vscode decently too
Author
Owner

@LePao1 commented on GitHub (Oct 7, 2025):

I mainly use it in WSL on Windows; VS Code lets me develop inside the Linux environment effortlessly. The screenshot above was taken there.

By the way, the situation is just as awful in PowerShell.

Image
@LePao1 commented on GitHub (Oct 7, 2025): I mainly use it in WSL on Windows; VS Code lets me develop inside the Linux environment effortlessly. The screenshot above was taken there. By the way, the situation is just as awful in PowerShell. <img width="1633" height="966" alt="Image" src="https://github.com/user-attachments/assets/331b96a1-c593-467f-b9f3-416cea1334b0" />
Author
Owner

@rekram1-node commented on GitHub (Oct 7, 2025):

Yuck, yeah sorry about that

@itsrainingmani what do you recommend for windows?

(mani knows state of windows stuff better than me so I am tagging)

@rekram1-node commented on GitHub (Oct 7, 2025): Yuck, yeah sorry about that @itsrainingmani what do you recommend for windows? (mani knows state of windows stuff better than me so I am tagging)
Author
Owner

@seerdi commented on GitHub (Oct 7, 2025):

I also experience the same issue as @LePao1 when using opencode in terminal in VSCode and PowerShell

@seerdi commented on GitHub (Oct 7, 2025): I also experience the same issue as @LePao1 when using opencode in terminal in VSCode and PowerShell
Author
Owner

@agladysh commented on GitHub (Oct 8, 2025):

Same issue in the stock macOS Terminal.app Version 2.14 (455.1)

@agladysh commented on GitHub (Oct 8, 2025): Same issue in the stock macOS Terminal.app Version 2.14 (455.1)
Author
Owner

@ikodbapc commented on GitHub (Oct 14, 2025):

I have another problem with pasting - when I paste something in opencode with "ctrl + shift + v" it's being pasted letter by letter, as if somebody is typing it very fast. If I paste something big it will write for a long time and I can't cancel the pasting or exit terminal with ctrl + c. But when I try pasting to terminal outside of opencode with "ctrl + shift + v", it pastes instantaneously, unlike in opencode.

@ikodbapc commented on GitHub (Oct 14, 2025): I have another problem with pasting - when I paste something in opencode with "ctrl + shift + v" it's being pasted letter by letter, as if somebody is typing it very fast. If I paste something big it will write for a long time and I can't cancel the pasting or exit terminal with ctrl + c. But when I try pasting to terminal outside of opencode with "ctrl + shift + v", it pastes instantaneously, unlike in opencode.
Author
Owner

@rekram1-node commented on GitHub (Oct 14, 2025):

@ikodbapc I think that's a performance issue in the crappy tui code, next major version of tui should have a lot of problems like this fixed sorry for delay :/

@rekram1-node commented on GitHub (Oct 14, 2025): @ikodbapc I think that's a performance issue in the crappy tui code, next major version of tui should have a lot of problems like this fixed sorry for delay :/
Author
Owner

@jcubic commented on GitHub (Oct 16, 2025):

Have the same issue with Xfce terminal that use VTE (similar to Shift+ENTER).

If you think that SHIFT+ENTER and this is the problem with VTE, feel free to report a bug. You may get (as I did) explanation and help if this is not a bug in VTE, but in OpenCode. But if this is VTE issue it may fix more terminals.

@jcubic commented on GitHub (Oct 16, 2025): Have the same issue with Xfce terminal that use VTE (similar to Shift+ENTER). If you think that SHIFT+ENTER and this is the problem with VTE, feel free to [report a bug](https://gitlab.gnome.org/GNOME/vte/-/issues). You may get (as I did) explanation and help if this is not a bug in VTE, but in OpenCode. But if this is VTE issue it may fix more terminals.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#1983