You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Windows] Diff highlighting not working in CLI mode #4544
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
Open OpenCode in CLI mode on Windows using Windows Terminal
Make code changes or ask OpenCode to modify files
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)
Activity
rekram1-node commentedon Nov 20, 2025
We are working on a fix