opencode resets XFCE terminal Cursor Shape to Block #1733

Closed
opened 2026-02-16 17:32:22 -05:00 by yindo · 2 comments
Owner

Originally created by @eislambey on GitHub (Sep 16, 2025).

Originally assigned to: @adamdotdevin on GitHub.

When I use opencode in an XFCE Terminal, it changes my preferred cursor shape from a vertical bar (|) to a solid block. This change persists even after I close opencode.

Steps to Reproduce

  1. Open XFCE Terminal with the default cursor set to 'Bar' (|).
  2. Open and close opencode.
  3. Observe that the terminal cursor has changed to a 'Block' shape.

Expected Behavior

The terminal cursor shape should remain unchanged after closing opencode.

Environment

  • opencode Version: 0.9.5
  • Terminal Version: xfce4-terminal 1.1.5 (Xfce 4.20)
  • Cursor Shape (Before): Bar (|)
  • Cursor Shape (After): Block
  • Operating System: Arch Linux

Screenshots

Before opencode:
Image

After opencode:

Image
Originally created by @eislambey on GitHub (Sep 16, 2025). Originally assigned to: @adamdotdevin on GitHub. When I use `opencode` in an XFCE Terminal, it changes my preferred cursor shape from a vertical bar (`|`) to a solid block. This change persists even after I close `opencode`. **Steps to Reproduce** 1. Open XFCE Terminal with the default cursor set to 'Bar' (`|`). 2. Open and close `opencode`. 3. Observe that the terminal cursor has changed to a 'Block' shape. **Expected Behavior** The terminal cursor shape should remain unchanged after closing `opencode`. **Environment** - **opencode Version:** 0.9.5 - **Terminal Version:** xfce4-terminal 1.1.5 (Xfce 4.20) - **Cursor Shape (Before):** Bar (`|`) - **Cursor Shape (After):** Block - **Operating System:** Arch Linux **Screenshots** Before opencode: <img width="422" height="133" alt="Image" src="https://github.com/user-attachments/assets/bbd83322-743d-4592-a135-8e1383821098" /> After opencode: <img width="381" height="195" alt="Image" src="https://github.com/user-attachments/assets/a09865f3-f7e9-4d07-95b7-d9961eef08d0" />
yindo closed this issue 2026-02-16 17:32:22 -05:00
Author
Owner

@github-actions[bot] commented on GitHub (Sep 16, 2025):

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

  • #1905: Terminal cursor blinks in opencode even though it shouldn't - Similar issue where opencode changes terminal cursor behavior and doesn't properly restore it
  • #1455: Terminal state corruption after opencode exit - spurious sequences on Ctrl-* inputs - Related terminal state corruption issue where opencode doesn't properly restore terminal settings on exit
  • #535: Arrow keys print keycodes after closing opencode - Another terminal state restoration issue (closed but similar pattern)

All of these issues seem related to opencode not properly restoring terminal state/settings after exit. The root cause appears to be the same commit mentioned in issue #1930: https://github.com/sst/opencode/commit/b2f2c9ac37e05455c282bf4106a5288d3a1478b3

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

@github-actions[bot] commented on GitHub (Sep 16, 2025): This issue might be a duplicate of existing issues. Please check: - #1905: Terminal cursor blinks in opencode even though it shouldn't - Similar issue where opencode changes terminal cursor behavior and doesn't properly restore it - #1455: Terminal state corruption after opencode exit - spurious sequences on Ctrl-* inputs - Related terminal state corruption issue where opencode doesn't properly restore terminal settings on exit - #535: Arrow keys print keycodes after closing opencode - Another terminal state restoration issue (closed but similar pattern) All of these issues seem related to opencode not properly restoring terminal state/settings after exit. The root cause appears to be the same commit mentioned in issue #1930: https://github.com/sst/opencode/commit/b2f2c9ac37e05455c282bf4106a5288d3a1478b3 Feel free to ignore if none of these address your specific case.
Author
Owner

@eislambey commented on GitHub (Nov 5, 2025):

fixed with 1.0 i guess

@eislambey commented on GitHub (Nov 5, 2025): fixed with 1.0 i guess
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#1733