Skip to content

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

Closed

Description

@LePao1

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

Activity

  1. github-actions commented on Oct 7, 2025

    @github-actions
    Contributor

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

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

  2. rekram1-node commented on Oct 7, 2025

    @rekram1-node
    Contributor

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

  3. LePao1 commented on Oct 7, 2025

    @LePao1
    Author

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

    I use OpenCode in the terminal within VS Code.

  4. rekram1-node commented on Oct 7, 2025

    @rekram1-node
    Contributor

    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

  5. LePao1 commented on Oct 7, 2025

    @LePao1
    Author

    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
  6. rekram1-node commented on Oct 7, 2025

    @rekram1-node
    Contributor

    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)

  7. seerdi commented on Oct 7, 2025

    @seerdi

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

  8. agladysh commented on Oct 8, 2025

    @agladysh

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

  9. ikodbapc commented on Oct 14, 2025

    @ikodbapc

    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.

  10. rekram1-node commented on Oct 14, 2025

    @rekram1-node
    Contributor

    @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 :/

  11. jcubic commented on Oct 16, 2025

    @jcubic

    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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions