github / github/copilot-cli

Poor contrast and text selection UX in shell command timeline blocks (macOS dark mode)

未关闭
#2,359 1 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
area:theming-accessibility
主要语言
Shell
星标
11.2k
派生
1.9k
平均合并
14 小时 16 分钟
30 天内合并 PR
6

描述

## Summary

On macOS in dark mode, the contrast in shell command timeline blocks is insufficient, making it difficult to read code and select lines to copy.

## Description

When Copilot CLI displays executed shell commands in the timeline (e.g., inline Python or bash blocks), the text renders with very low contrast against the dark background. This is especially noticeable on MacBook displays in dark mode.

Additionally, there is no clear affordance for selecting or copying individual lines from these blocks — the `243 lines...` truncation indicator further makes it hard to know what content is available.

## Steps to Reproduce

1. Run any multi-line shell command in Copilot CLI (e.g., a Python script via `python3 -c`)
2. Observe the collapsed command block in the timeline
3. Try to read or select/copy lines from the block on a MacBook in macOS dark mode

## Expected Behavior

- Text in command timeline blocks should have sufficient contrast (WCAG AA minimum: 4.5:1) to be readable on all macOS display profiles, including dark mode
- Lines should be easily selectable or copyable, ideally with a click-to-copy or hover-to-reveal affordance
- Truncated output (e.g., `243 lines...`) should have a clear way to expand or copy the full content

## Actual Behavior

- Low-contrast gray text on dark background in shell blocks is hard to read
- No clear way to select/copy individual lines
- Output is truncated with no expand option visible in the UI

## Environment

- **OS:** macOS (dark mode)
- **Hardware:** MacBook
- **CLI version:** 1.0.13-1
- **Terminal:** Default macOS Terminal / iTerm2

## Suggested Fix

- Increase text brightness/contrast in timeline shell blocks for dark mode
- Add a hover-to-copy affordance per line, similar to GitHub's code block UI
- Provide an expand button on truncated output blocks

This is a usability issue that affects readability and workflow when reviewing what commands were run.

贡献指南

打开贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。