github / github/copilot-cli

Leading underscores (e.g., _test) vanish in Copilot Chat bubbles and output due to Markdown parsing of unclosed emphasis

Open
#4,722 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

area:input-keyboard area:terminal-rendering
Dominant language
Shell
Stars
11.2k
Forks
1.9k
Avg merge
14h 16m
Merged PRs (30d)
6

Description

Describe the bug

When typing text that begins with an underscore (e.g., _test), the leading underscore is stripped out in the sent message bubble and Copilot's chat output. However, strings with middle underscores (e.g., test_test) or code written via Agent mode display correctly.

Affected version

• GitHub Copilot CLI version: 1.0.63 • model: Claude Haiku 4.5

Steps to reproduce the behavior

No response

Expected behavior

No response

Additional context

No response

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce the issue in GitHub Copilot CLI 1.0.63 by sending _test, then compare it with test_test and code entered through Agent mode. Trace the CLI's Markdown parsing or rendering path for sent bubbles and chat output. Done means leading underscores remain visible in both affected locations without breaking existing emphasis parsing.

Written by the indexing model from the issue text.

Assessment

Tech stack
markdown, shell
Domain
cli
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Active
Clarity
Mostly clear
Newbie friendliness
52/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.