Cannot scroll on opencode when using iterm #3888

Open
opened 2026-02-16 17:41:49 -05:00 by yindo · 16 comments
Owner

Originally created by @anugrahsinghal on GitHub (Dec 26, 2025).

Originally assigned to: @kommander on GitHub.

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

Originally created by @anugrahsinghal on GitHub (Dec 26, 2025). Originally assigned to: @kommander on GitHub. ### 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
yindo added the opentuibug labels 2026-02-16 17:41:49 -05:00
Author
Owner

@github-actions[bot] commented on GitHub (Dec 26, 2025):

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] commented on GitHub (Dec 26, 2025): 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.
Author
Owner

@yanjieee commented on GitHub (Dec 29, 2025):

I have the same issue.

@yanjieee commented on GitHub (Dec 29, 2025): I have the same issue.
Author
Owner

@ereid7 commented on GitHub (Jan 5, 2026):

+1

@ereid7 commented on GitHub (Jan 5, 2026): +1
Author
Owner

@rekram1-node commented on GitHub (Jan 6, 2026):

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

@rekram1-node commented on GitHub (Jan 6, 2026): What OS and iterm version? I cant replicate...
Author
Owner

@yanjieee commented on GitHub (Jan 6, 2026):

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

iTerm2 Build 3.6.5

@yanjieee commented on GitHub (Jan 6, 2026): > What OS and iterm version? I cant replicate... iTerm2 Build 3.6.5
Author
Owner

@dag-andersen commented on GitHub (Jan 6, 2026):

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 commented on GitHub (Jan 6, 2026): 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.
Author
Owner

@dag-andersen commented on GitHub (Jan 6, 2026):

Image

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

@dag-andersen commented on GitHub (Jan 6, 2026): <img width="465" height="161" alt="Image" src="https://github.com/user-attachments/assets/a10e4e98-df4c-4305-b1e2-004731af3ba9" /> Okay, I fixed it by enabling `Enable Mouse Reporting` ✅ Scrolling now works for me
Author
Owner

@yanjieee commented on GitHub (Jan 6, 2026):

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

you are genius! 🎉

@yanjieee commented on GitHub (Jan 6, 2026): > <img alt="Image" width="465" height="161" src="https://private-user-images.githubusercontent.com/47752045/532284532-a10e4e98-df4c-4305-b1e2-004731af3ba9.png?jwt=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Njc2OTQ1MjUsIm5iZiI6MTc2NzY5NDIyNSwicGF0aCI6Ii80Nzc1MjA0NS81MzIyODQ1MzItYTEwZTRlOTgtZGY0Yy00MzA1LWIxZTItMDA0NzMxYWYzYmE5LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNjAxMDYlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjYwMTA2VDEwMTAyNVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTNkMTU2ZTZmNDRiN2Y2ZTdkMDdkMWE4ZjU1ZWY3MWYxNDVmYmRlNzYyZGUzNmE5MTFlN2VhYjc5ZWZkNWEyMjAmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.zbXMHJaBpf7n4klNCxOF06Gv7VUFSqyQpMitFh10gjc"> > Okay, I fixed it by enabling `Enable Mouse Reporting` ✅ Scrolling now works for me you are genius! 🎉
Author
Owner

@amanchoudhri commented on GitHub (Jan 6, 2026):

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

@amanchoudhri commented on GitHub (Jan 6, 2026): Is there a keyboard shortcut for scrolling rather than relying on the mouse? ie vim bindings?
Author
Owner

@rekram1-node commented on GitHub (Jan 6, 2026):

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

@rekram1-node commented on GitHub (Jan 6, 2026): @amanchoudhri see: https://opencode.ai/docs/keybinds/
Author
Owner

@ereid7 commented on GitHub (Jan 7, 2026):

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 commented on GitHub (Jan 7, 2026): > <img alt="Image" width="465" height="161" src="https://private-user-images.githubusercontent.com/47752045/532284532-a10e4e98-df4c-4305-b1e2-004731af3ba9.png?jwt=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Njc3OTc3MjgsIm5iZiI6MTc2Nzc5NzQyOCwicGF0aCI6Ii80Nzc1MjA0NS81MzIyODQ1MzItYTEwZTRlOTgtZGY0Yy00MzA1LWIxZTItMDA0NzMxYWYzYmE5LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNjAxMDclMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjYwMTA3VDE0NTAyOFomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTAyNDM0YWVjMDUyY2M4MWJhYjAxYzVkZWY5OThiOWYzYTE3NzUzZDIxYTk0ZGEzMTViMmFlZGY4NTYyODJjOGYmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.HwhEsACfuv13ZoP252cHq_4Ruke4MCEvxM4KqpzxozY"> > > Okay, I fixed it by enabling `Enable Mouse Reporting` ✅ Scrolling now works for me This did not fix for me. Build 3.6.6
Author
Owner

@lanlin commented on GitHub (Jan 9, 2026):

Image
@lanlin commented on GitHub (Jan 9, 2026): <img width="1012" height="684" alt="Image" src="https://github.com/user-attachments/assets/042d1058-ecd0-4869-91c7-e4b9b41b984b" />
Author
Owner

@hezhexi2002 commented on GitHub (Jan 10, 2026):

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 commented on GitHub (Jan 10, 2026): 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!
Author
Owner

@kaneflysky commented on GitHub (Jan 10, 2026):

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 commented on GitHub (Jan 10, 2026): > <img alt="Image" width="1012" height="684" src="https://private-user-images.githubusercontent.com/3468024/533760120-042d1058-ecd0-4869-91c7-e4b9b41b984b.png?jwt=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3NjgwNTk0OTEsIm5iZiI6MTc2ODA1OTE5MSwicGF0aCI6Ii8zNDY4MDI0LzUzMzc2MDEyMC0wNDJkMTA1OC1lY2QwLTQ4NjktOTFjNy1lNGI5YjQxYjk4NGIucG5nP1gtQW16LUFsZ29yaXRobT1BV1M0LUhNQUMtU0hBMjU2JlgtQW16LUNyZWRlbnRpYWw9QUtJQVZDT0RZTFNBNTNQUUs0WkElMkYyMDI2MDExMCUyRnVzLWVhc3QtMSUyRnMzJTJGYXdzNF9yZXF1ZXN0JlgtQW16LURhdGU9MjAyNjAxMTBUMTUzMzExWiZYLUFtei1FeHBpcmVzPTMwMCZYLUFtei1TaWduYXR1cmU9M2FkNzk3NmZmYjg2NDdmY2UxNmM3ZjA4NWFjNGUxMDNhY2FhNzM0NzA4OTcxMjRjNGYxMjk2ZDE2NjllYTNlZCZYLUFtei1TaWduZWRIZWFkZXJzPWhvc3QifQ.7d76ooDvi2z_VxpwFrgnMD4p6vG7xTTVN3YCZ3bW5kQ"> 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.
Author
Owner

@elv1n commented on GitHub (Jan 16, 2026):

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 commented on GitHub (Jan 16, 2026): 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.
Author
Owner

@murrugarraluis commented on GitHub (Jan 19, 2026):

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 commented on GitHub (Jan 19, 2026): 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.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#3888