github / github/copilot-cli

CLI shows "ctrl+enter enqueue" but "ctrl+enter" adds a line break to the prompt and "ctrl+q" is the enqueue command

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

描述

### Describe the bug

https://github.com/user-attachments/assets/7df968c2-5537-4af6-96e2-bcf24f153dbe

The video shows me typing the first line, pressing ctrl + enter which enters a line break, then typing the second line, then pressing ctrl + q which enqueues the command.

### Affected version

GitHub Copilot CLI 1.0.61.

### Steps to reproduce the behavior

1. Run a command in Copilot CLI. While the command is running...
2. Type "first line" -- the instruction "ctrl+enter enqueue" should be shown
3. Press ctrl+enter -- a line break should be added to the prompt line
4. Press ctrl+q -- the prompt should be enqueued

### Expected behavior

Expected ctrl+enter to enqueue the second command

### Additional context

Windows 11 x86_64 powershell windows terminal

贡献指南

打开贡献指南

调研方向

首先,在命令运行时,分别在 Windows PowerShell 和 Windows Terminal 中复现 Copilot CLI 的提示行为。跟踪 CLI 提示对 Ctrl+Enter 和 Ctrl+Q 的键盘处理,然后验证显示的快捷键是否与实际将命令加入队列的按键一致,并确认换行仍按预期工作。

由索引模型根据 Issue 内容生成。

评估

技术栈
powershell, shell
领域
cli
Issue 类型
缺陷
难度
3/5
预计耗时
1-2 天
活跃度
活跃
描述清晰度
基本清楚
新手友好度
56/100

把新 issue 发到你的邮箱

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