Skip to content

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

Closed as duplicate

Description

@EugenFreund

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

Activity

  1. added
    opentuiThis relates to changes in v1.0, now that opencode uses opentui
    on Nov 20, 2025
  2. rekram1-node commented on Nov 20, 2025

    @rekram1-node
    Contributor

    We are working on a fix

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingopentuiThis relates to changes in v1.0, now that opencode uses opentui

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions