github / github/copilot-cli

Copilot CLI interactive mode turns blank after submitting a prompt in Windows Terminal, while -p mode works

未關閉
#4,159 3 則留言 3 個 reaction 已指派 0 人 在 GitHub 檢視
area:platform-windows area:terminal-rendering
主要語言
Shell
星號
11.2k
分支
1.9k
平均合併
14 小時 16 分鐘
30 天內合併 PR
6

描述

### Describe the bug

### Summary

In interactive mode, GitHub Copilot CLI renders normally at first, but after I submit a prompt the UI goes blank and no further output is visible.

This happens even with very short prompts that should return only a single sentence.

Non-interactive prompt mode with -p works normally, so the issue appears to be specific to the interactive terminal UI.

### Environment

- GitHub Copilot CLI version: 1.0.71
- OS: Windows
- Terminal: Windows Terminal
- GitHub product version: latest

### Affected version

GitHub Copilot CLI 1.0.71.

### Steps to reproduce the behavior

1. Open Windows Terminal.
2. Start Copilot CLI: copilot
3. Enter any prompt, including a short prompt such as: Reply with one short sentence only.
4. Observe that Thinking appears briefly.
5. The terminal UI then goes blank.

### Expected behavior

After submitting a prompt in interactive mode, Copilot CLI should continue showing Thinking and then render the response in the terminal.

### What actually happened

- Copilot CLI starts and renders normally.
- I enter a prompt.
- It shows Thinking.
- Then the screen turns blank.
- After the blank screen appears, I do not see the response or UI content anymore.

This also happens with very short prompts, including prompts that should only produce a one-sentence response.

### Additional context

I tried the following and still saw the same blank-screen behavior in interactive mode:

- Pressed Ctrl + L
- Pressed ?
- Entered /help
- Tried very short prompts with minimal output
- Tried --screen-reader mode: copilot --screen-reader
--screen-reader mode shows the same issue.

What does work

Non-interactive mode works correctly:

copilot -p "Say hello"

This returns output normally.

貢獻指南

開啟貢獻指南

研究方向

先在 Windows Terminal 中使用簡短提示透過 `copilot` 重現問題,然後比較互動模式與 `copilot -p "Say hello"` 以及 `copilot --screen-reader`。當互動模式持續顯示 Thinking 並呈現回應,而不是變成空白,同時非互動模式仍能正常運作時,修正就完成了。

由索引模型根據 Issue 內容生成。

評估

技術堆疊
shell
領域
cli
Issue 類型
缺陷
難度
3/5
預估耗時
1-2 天
活躍度
冷清
描述清晰度
基本清楚
新手友好度
52/100

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。