Leading underscores (e.g., _test) vanish in Copilot Chat bubbles and output due to Markdown parsing of unclosed emphasis
未关闭
还没有人认领这个 Issue。
area:input-keyboard
area:terminal-rendering
- 主要语言
- Shell
- 星标
- 11.2k
- 派生
- 1.9k
- 平均合并
- 14 小时 16 分钟
- 30 天内合并 PR
- 6
描述
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
贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
调研方向
在 GitHub Copilot CLI 1.0.63 中发送 _test 以复现该问题,然后将其与 test_test 以及通过 Agent mode 输入的代码进行比较。跟踪 CLI 针对已发送气泡和聊天输出的 Markdown 解析或渲染路径。完成的标准是:受影响的两个位置中的前导下划线都保持可见,同时不破坏现有的强调解析。
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- markdown, shell
- 领域
- cli
- Issue 类型
- 缺陷
- 难度
- 3/5
- 预计耗时
- 1-2 天
- 活跃度
- 活跃
- 描述清晰度
- 基本清楚
- 新手友好度
- 52/100