Skip to content

Thinking/reasoning text is unreadable on dark backgrounds (hardcoded dim color) #3866

Closed

Description

@ayackel

Describe the bug

The "Thinking…" reasoning text displayed during model inference is nearly invisible on dark terminal backgrounds. The text appears to use a hardcoded dark gray foreground that has insufficient contrast against dark backgrounds.

This started with a recent update (noticed on 1.0.64).

Environment

  • OS: Windows 11 + WSL2
  • Terminal: Windows Terminal (dark color scheme)
  • Multiplexer: tmux
  • Copilot CLI version: 1.0.64
  • Model: Claude Opus 4.6 (extended thinking enabled)

Steps to reproduce

  1. Use a dark terminal color scheme (default Windows Terminal dark, or similar)
  2. Run copilot in tmux
  3. Ask a question that triggers extended thinking/reasoning
  4. Observe the "Thinking…" block text is nearly invisible

Expected behavior

Thinking/reasoning text should have sufficient contrast on both dark and light backgrounds. Ideally it would:

  • Use a semantic ANSI color (e.g., brightBlack / color 8) rather than a hardcoded RGB
  • Or respect the terminal's dim attribute rendering
  • Or be configurable via a theme/config setting

Workaround

Bumping brightBlack in the Windows Terminal color scheme to #808080 or lighter partially helps, but this affects all dim text globally.

Related issues

Activity

  1. added
    area:theming-accessibilityVisual themes, colors, dark/light mode, contrast, screen readers, i18n/RTL
    on Jun 19, 2026
  2. added theissue type on Jun 19, 2026
  3. X1aomu commented on Jun 23, 2026

    @X1aomu

    Debugging

    I did some deep diving with strace and found out that this issue is highly relevant to OSC 4.

    Here is my test matrix:

    ✅ Working properly:

    • Arch Linux + Kitty + tmux (3.6b)
    • WSL + Windows Terminal (without tmux)

    ❌ Reproduces the issue (Bad):

    • WSL + Windows Terminal + tmux (3.5a) — Completely no OSC 4 forwarding.
    • WSL + Windows Terminal + tmux (3.6a/3.6b) — OSC 4 is forwarded, but the sequence is broken. The OSC 4 response is out of order and incomplete.
    • WSL + Alacritty + tmux (3.6a/3.6b) — (Not fully analyzed yet. I included this as a control group to rule out Windows Terminal specific issues).

    Conclusion:
    Based on these tests, the problem seems to be related to how tmux interacts with certain components in WSL/Windows (possibly ConPTY). At this moment, it's hard to say definitively whether the root cause lies within tmux or Windows.

    Unfortunately, I don't have the time to do further debugging on this right now, but I hope these findings help point in the right direction!


    Additional Note & Suggestion for Copilot CLI

    My suggestion for the copilot-cli would be to avoid relying strictly on OSC 4. Simply querying the default foreground/background color is usually enough to infer whether the terminal is using a light or dark theme, which would allow the CLI to apply an appropriate color scheme.

    For comparison, both codex-cli and claude-code are able to render colors perfectly fine even when OSC 4 is unavailable. Their auto modes can successfully detect the terminal's light/dark mode and apply the correct configuration automatically. Falling back to a similar approach in copilot-cli would make it much more robust across different terminal environments.


    Current Workaround

    You can explicitly configure pane-colours in your tmux config. This prevents tmux from forwarding OSC 4 to the outer terminal and instead returns the values directly to the app. I've verified this works.

    Honestly, I‘m really not for this workaround, because it”s not KISS(repeating the palette from terminal to tmux). Just in any case you really want to make copilot-cli happy :)

    Here is the example tmux conf:

    setw -g pane-colours[0]  "#1e2124"
    setw -g pane-colours[1]  "#ff6e5e"
    setw -g pane-colours[2]  "#5eff6c"
    setw -g pane-colours[3]  "#ffbd5e"
    setw -g pane-colours[4]  "#5ea1ff"
    setw -g pane-colours[5]  "#bd5eff"
    setw -g pane-colours[6]  "#5ef1ff"
    setw -g pane-colours[7]  "#acacac"
    setw -g pane-colours[8]  "#7b8496"
    setw -g pane-colours[9]  "#ff5ea0"
    setw -g pane-colours[10] "#15ff00"
    setw -g pane-colours[11] "#f1ff5e"
    setw -g pane-colours[12] "#0095ff"
    setw -g pane-colours[13] "#ff5ef1"
    setw -g pane-colours[14] "#00ffea"
    setw -g pane-colours[15] "#ffffff"
    
  4. copilot-cli-bot commented on Oct 10, 2026

    @copilot-cli-bot

    This appears to be resolved as of GitHub Copilot CLI v1.0.95. Please update to that release or a newer stable version. We're closing this as completed. If it still happens, please comment with your version and reproduction steps.

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

    area:theming-accessibilityVisual themes, colors, dark/light mode, contrast, screen readers, i18n/RTL

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions