Terminal in JetBrains IDE doesn’t work properly (can’t type or paste multiline commands) #2608

Open
opened 2026-02-16 17:36:27 -05:00 by yindo · 2 comments
Owner

Originally created by @icedigitaldev on GitHub (Nov 5, 2025).

Originally assigned to: @thdxr on GitHub.

Description

When using OpenCode inside the built-in terminal of JetBrains IDEs (such as WebStorm, PyCharm, or IntelliJ), typing and pasting do not work correctly.

The terminal often becomes unresponsive, preventing any text input.

When you paste multiple lines, each line executes immediately (as if pressing Enter after each one).

It’s impossible to edit or review commands before sending them.

In the Windows terminal, typing works fine, but there is no easy way to paste and edit long commands without line breaks triggering unintended execution.

It would be very helpful to have an editable mode (like an input buffer) that lets users write, edit, and then execute commands safely from within the IDE terminal.

OpenCode version

1.0.25

Steps to reproduce

  1. Open any JetBrains IDE.

  2. Open the integrated terminal.

  3. Start OpenCode or any related CLI command.

  4. Try typing or pasting multiple lines.

  5. Notice that input is unresponsive or that lines are executed automatically.

Screenshot and/or share link

No response

Operating System

No response

Terminal

No response

Originally created by @icedigitaldev on GitHub (Nov 5, 2025). Originally assigned to: @thdxr on GitHub. ### Description When using OpenCode inside the built-in terminal of JetBrains IDEs (such as WebStorm, PyCharm, or IntelliJ), typing and pasting do not work correctly. The terminal often becomes unresponsive, preventing any text input. When you paste multiple lines, each line executes immediately (as if pressing Enter after each one). It’s impossible to edit or review commands before sending them. In the Windows terminal, typing works fine, but there is no easy way to paste and edit long commands without line breaks triggering unintended execution. It would be very helpful to have an editable mode (like an input buffer) that lets users write, edit, and then execute commands safely from within the IDE terminal. ### OpenCode version 1.0.25 ### Steps to reproduce 1. Open any JetBrains IDE. 2. Open the integrated terminal. 3. Start OpenCode or any related CLI command. 4. Try typing or pasting multiple lines. 5. Notice that input is unresponsive or that lines are executed automatically. ### Screenshot and/or share link _No response_ ### Operating System _No response_ ### Terminal _No response_
yindo added the opentuibug labels 2026-02-16 17:36:27 -05:00
Author
Owner

@github-actions[bot] commented on GitHub (Nov 5, 2025):

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

  • #3371: No support for opencode inside JetBrains IDE terminals (closed but describes similar JetBrains terminal issues)
  • #408: TUI broken in JetBrains console (ongoing issue with JetBrains IDE terminal rendering and functionality)
  • #3397: Multi-line paste with Ctrl+Shift+V is pasted as single line (multiline paste issues in opentui)
  • #3927: Multi-line paste no longer treated as a single block (regression where multiline content splits into multiple inputs)
  • #3343: Cannot paste multiple lines in Windows Terminal and VSCode+Powershell (similar multiline paste problems)

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

@github-actions[bot] commented on GitHub (Nov 5, 2025): This issue might be a duplicate of existing issues. Please check: - #3371: No support for opencode inside JetBrains IDE terminals (closed but describes similar JetBrains terminal issues) - #408: TUI broken in JetBrains console (ongoing issue with JetBrains IDE terminal rendering and functionality) - #3397: Multi-line paste with Ctrl+Shift+V is pasted as single line (multiline paste issues in opentui) - #3927: Multi-line paste no longer treated as a single block (regression where multiline content splits into multiple inputs) - #3343: Cannot paste multiple lines in Windows Terminal and VSCode+Powershell (similar multiline paste problems) Feel free to ignore if none of these address your specific case.
Author
Owner

@Eisermann commented on GitHub (Jan 23, 2026):

I do not know if this is also related, but I have additional issue with JetBrains. in iterm2 when i click, it moves cursor to this place - so it requries "click" to "click". in jetbrains it is like every move is registered as click. so cursor changes position every time you move mouse (it's like you constantly click in terminal)

@Eisermann commented on GitHub (Jan 23, 2026): I do not know if this is also related, but I have additional issue with JetBrains. in iterm2 when i click, it moves cursor to this place - so it requries "click" to "click". in jetbrains it is like every move is registered as click. so cursor changes position every time you move mouse (it's like you constantly click in terminal)
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#2608