Cannot scroll on opencode when using iterm
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
- Install iTerm2
- opencode
- !ls # to see basic output - should be long enough to overflow from view
- scroll
Screenshot and/or share link
https://github.com/user-attachments/assets/eea1ae7e-6401-4ef8-b30d-d5265fee28ca
Operating System
26.2
Terminal
iTerm2
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.
I have the same issue.
+1
What OS and iterm version? I cant replicate...
What OS and iterm version? I cant replicate...
iTerm2 Build 3.6.5
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.
Okay, I fixed it by enabling Enable Mouse Reporting ✅ Scrolling now works for me
Okay, I fixed it by enabling `Enable Mouse Reporting` ✅ Scrolling now works for me
you are genius! 🎉
Is there a keyboard shortcut for scrolling rather than relying on the mouse? ie vim bindings?
@amanchoudhri see: https://opencode.ai/docs/keybinds/
![]()
Okay, I fixed it by enabling
Enable Mouse Reporting✅ Scrolling now works for me
This did not fix for me. Build 3.6.6
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!
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.
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.
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.
Okay, I fixed it by enabling `Enable Mouse Reporting` ✅ Scrolling now works for me