[Windows] Diff highlighting not working in CLI mode #2998

Closed
opened 2026-02-16 17:38:11 -05:00 by yindo · 1 comment
Owner

Originally created by @EugenFreund on GitHub (Nov 20, 2025).

Description

Description

Diff highlighting is not working when using OpenCode CLI on Windows. Changes and diffs are displayed without color highlighting, making it difficult to review code modifications.

Environment

  • OpenCode version: 1.0.80
  • OS: Windows 11 (or specify your version)
  • Terminal: Windows Terminal 1.23.12811.0
  • ANSI Support: Enabled (VirtualTerminalLevel = 1)
  • Installation method: (npm/chocolatey/scoop - specify which one you used)

OpenCode version

1.0.80

Steps to reproduce

Steps to Reproduce

  1. Open OpenCode in CLI mode on Windows using Windows Terminal
  2. Make code changes or ask OpenCode to modify files
  3. Observe the diff output

Expected Behavior

Diffs should display with syntax highlighting and color coding (additions in green, deletions in red, etc.)

Actual Behavior

Diffs are displayed without color highlighting - plain text output only

Additional Context

  • Verified ANSI color support is enabled in Windows registry (VirtualTerminalLevel = 1)
  • Using modern terminal emulator (Windows Terminal)
  • OpenCode cache has been cleared (%USERPROFILE%.cache\opencode)
  • Issue persists across different color schemes

Screenshot and/or share link

Image

Operating System

Windows 11

Terminal

Windows Terminal 1.23.12811.0

Originally created by @EugenFreund on GitHub (Nov 20, 2025). ### Description ### Description Diff highlighting is not working when using OpenCode CLI on Windows. Changes and diffs are displayed without color highlighting, making it difficult to review code modifications. ### Environment - **OpenCode version**: 1.0.80 - **OS**: Windows 11 (or specify your version) - **Terminal**: Windows Terminal 1.23.12811.0 - **ANSI Support**: Enabled (VirtualTerminalLevel = 1) - **Installation method**: (npm/chocolatey/scoop - specify which one you used) ### OpenCode version 1.0.80 ### Steps to reproduce ### Steps to Reproduce 1. Open OpenCode in CLI mode on Windows using Windows Terminal 2. Make code changes or ask OpenCode to modify files 3. Observe the diff output ### Expected Behavior Diffs should display with syntax highlighting and color coding (additions in green, deletions in red, etc.) ### Actual Behavior Diffs are displayed without color highlighting - plain text output only ### Additional Context - Verified ANSI color support is enabled in Windows registry (VirtualTerminalLevel = 1) - Using modern terminal emulator (Windows Terminal) - OpenCode cache has been cleared (%USERPROFILE%\.cache\opencode) - Issue persists across different color schemes ### Screenshot and/or share link <img width="1338" height="298" alt="Image" src="https://github.com/user-attachments/assets/f33f7b53-b385-41b9-9283-7fc372334a4a" /> ### Operating System Windows 11 ### Terminal Windows Terminal 1.23.12811.0
yindo added the opentuibug labels 2026-02-16 17:38:11 -05:00
yindo closed this issue 2026-02-16 17:38:11 -05:00
Author
Owner

@rekram1-node commented on GitHub (Nov 20, 2025):

We are working on a fix

@rekram1-node commented on GitHub (Nov 20, 2025): We are working on a fix
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#2998