opencode icon indicating copy to clipboard operation
opencode copied to clipboard

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

Open icedigitaldev opened this issue 2 months ago • 1 comments

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

icedigitaldev avatar Nov 05 '25 13:11 icedigitaldev

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] avatar Nov 05 '25 13:11 github-actions[bot]