opencode icon indicating copy to clipboard operation
opencode copied to clipboard

Cannot scroll on opencode when using iterm

Open anugrahsinghal opened this issue 2 months ago • 13 comments

Description

When trying to scroll the opencode TUI on iterm, it scrolls the input box but not the output of the previous command

OpenCode version

1.0.203

Steps to reproduce

  1. Install iTerm2
  2. opencode
  3. !ls # to see basic output - should be long enough to overflow from view
  4. scroll

Screenshot and/or share link

https://github.com/user-attachments/assets/eea1ae7e-6401-4ef8-b30d-d5265fee28ca

Operating System

26.2

Terminal

iTerm2

anugrahsinghal avatar Dec 26 '25 16:12 anugrahsinghal

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

  • #3780: opentui: Rapid blinking in iTerm2 - This is another iTerm2-specific issue that was reported earlier

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

github-actions[bot] avatar Dec 26 '25 16:12 github-actions[bot]

I have the same issue.

yanjieee avatar Dec 29 '25 08:12 yanjieee

+1

ereid7 avatar Jan 05 '26 23:01 ereid7

What OS and iterm version? I cant replicate...

rekram1-node avatar Jan 06 '26 05:01 rekram1-node

What OS and iterm version? I cant replicate...

iTerm2 Build 3.6.5

yanjieee avatar Jan 06 '26 06:01 yanjieee

I have same problem on Build 3.6.6 :) Just for extra context, it works fine for me in the default macOS Terminal and in Ghostty.

dag-andersen avatar Jan 06 '26 07:01 dag-andersen

Image

Okay, I fixed it by enabling Enable Mouse Reporting ✅ Scrolling now works for me

dag-andersen avatar Jan 06 '26 08:01 dag-andersen

Image Okay, I fixed it by enabling `Enable Mouse Reporting` ✅ Scrolling now works for me

you are genius! 🎉

yanjieee avatar Jan 06 '26 10:01 yanjieee

Is there a keyboard shortcut for scrolling rather than relying on the mouse? ie vim bindings?

amanchoudhri avatar Jan 06 '26 17:01 amanchoudhri

@amanchoudhri see: https://opencode.ai/docs/keybinds/

rekram1-node avatar Jan 06 '26 18:01 rekram1-node

Image

Okay, I fixed it by enabling Enable Mouse Reporting ✅ Scrolling now works for me

This did not fix for me. Build 3.6.6

ereid7 avatar Jan 07 '26 14:01 ereid7

Image

lanlin avatar Jan 09 '26 06:01 lanlin

Hi, I’ve run into a similar issue. When running opencode inside iTerm2, I’m unable to use the two‑finger swipe gesture to switch between tabs.

Has anyone else experienced the same problem? Is there a known workaround or fix for this?

Thanks!

hezhexi2002 avatar Jan 10 '26 09:01 hezhexi2002

Image

This issue has been bothering me for a long time, and I was about to give up using opencode. Your method was very effective and saved me.

kaneflysky avatar Jan 10 '26 15:01 kaneflysky

Enable mouse reporting doesn't help. It's a transient issue and I expect people just got it working temporarily. I had it enabled and frequnetly getting the bug.

elv1n avatar Jan 16 '26 19:01 elv1n

This also happened to me in Warp.

I was able to fix it by opening the Command Palette (Cmd + P) and toggling “Toggle Mouse Reporting” until it was enabled.

murrugarraluis avatar Jan 19 '26 19:01 murrugarraluis