opentui: Rapid blinking in iTerm2 #2505

Closed
opened 2026-02-16 17:36:01 -05:00 by yindo · 4 comments
Owner

Originally created by @Mishkun on GitHub (Nov 2, 2025).

Originally assigned to: @kommander on GitHub.

Description

after updating to 1.x I see annoying rapid blinking of cursor in iTerm2. Not reproducable in stock Terminal app

OpenCode version

v1.0.11

Steps to reproduce

  1. launch opencode
  2. blink blink blink

Screenshot and/or share link

https://github.com/user-attachments/assets/e880ef33-3690-4f05-8d0c-2317e0f8c978

Operating System

macos

Terminal

iTerm2

Originally created by @Mishkun on GitHub (Nov 2, 2025). Originally assigned to: @kommander on GitHub. ### Description after updating to 1.x I see annoying rapid blinking of cursor in iTerm2. Not reproducable in stock Terminal app ### OpenCode version v1.0.11 ### Steps to reproduce 1. launch opencode 2. blink blink blink ### Screenshot and/or share link https://github.com/user-attachments/assets/e880ef33-3690-4f05-8d0c-2317e0f8c978 ### Operating System macos ### Terminal iTerm2
yindo added the opentuibug labels 2026-02-16 17:36:01 -05:00
yindo closed this issue 2026-02-16 17:36:01 -05:00
Author
Owner

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

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

  • #1905: Both report unwanted cursor blinking behavior that started after OpenCode updates - #1905 mentions cursor blinking in Gnome Terminal since v0.4.27, while this issue reports rapid blinking in iTerm2 after updating to v1.x

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

@github-actions[bot] commented on GitHub (Nov 2, 2025): This issue might be a duplicate of existing issues. Please check: - #1905: Both report unwanted cursor blinking behavior that started after OpenCode updates - #1905 mentions cursor blinking in Gnome Terminal since v0.4.27, while this issue reports rapid blinking in iTerm2 after updating to v1.x Feel free to ignore if none of these address your specific case.
Author
Owner

@ravshansbox commented on GitHub (Nov 2, 2025):

Had the same issue

@ravshansbox commented on GitHub (Nov 2, 2025): Had the same issue
Author
Owner

@scottrbaxter commented on GitHub (Nov 2, 2025):

Same issue... 1.0.15 iTerm2 3.6.5, macOS Sequoia, M4 MBP.

Update: Was able to replicate this with two different install methods:

  • brew install opencode
  • npm install -g opencode-ai

Additionally, i used the official install script and for an unknown reason, this one does not contain the flickering cursor
VERSION=1.0.15 curl -fsSL https://opencode.ai/install | bash

Side note, I really wish there was a way to NOT have this script modify user zshrc without permission (or at least a way to disable it), as this gets messy in a user's dotfiles. Definitely should at least be a variable reference to disable modifying a user config without their consent.

Lastly, there's no obvious way to "uninstall" when using the official script. Looks like it should only really require removing the new $PATH reference in the user's profile as well as the ~/.opencode folder. I'll see if I can get a PR in to add some of these options, soon as i get a free moment.

Since i was able to reproduce the issue with 2/3 installs, I'm hoping this helps with determining the root cause of the cursor flickering/blinking.

@scottrbaxter commented on GitHub (Nov 2, 2025): Same issue... `1.0.15` iTerm2 `3.6.5`, macOS Sequoia, M4 MBP. Update: Was able to replicate this with two different install methods: - `brew install opencode` - `npm install -g opencode-ai` Additionally, i used the official install script and for an unknown reason, this one does not contain the flickering cursor `VERSION=1.0.15 curl -fsSL https://opencode.ai/install | bash` Side note, I really wish there was a way to NOT have this script modify user zshrc without permission (or at least a way to disable it), as this gets messy in a user's dotfiles. Definitely should at least be a variable reference to disable modifying a user config without their consent. Lastly, there's no obvious way to "uninstall" when using the official script. Looks like it should only really require removing the new `$PATH` reference in the user's profile as well as the `~/.opencode` folder. I'll see if I can get a PR in to add some of these options, soon as i get a free moment. Since i was able to reproduce the issue with 2/3 installs, I'm hoping this helps with determining the root cause of the cursor flickering/blinking.
Author
Owner

@istarkov commented on GitHub (Nov 9, 2025):

Fast fix is this setting

Image

in iterm 2 is fixing the issue

Image

Anyway I found how to fix in opentui, will do PR there

@istarkov commented on GitHub (Nov 9, 2025): Fast fix is this setting <img width="389" height="35" alt="Image" src="https://github.com/user-attachments/assets/1e8368b9-cd62-43c2-9e58-677a90c3f42d" /> in iterm 2 is fixing the issue <img width="1033" height="651" alt="Image" src="https://github.com/user-attachments/assets/4f3b1d2c-b0ba-4865-92f1-4c69ff7edbdc" /> Anyway I found how to fix in opentui, will do PR there
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#2505