Leading underscores (e.g., _test) vanish in Copilot Chat bubbles and output due to Markdown parsing of unclosed emphasis
Nobody has claimed this yet.
- 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
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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