Copilot CLI interactive mode turns blank after submitting a prompt in Windows Terminal, while -p mode works
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
- Open Windows Terminal.
- Start Copilot CLI: copilot
- Enter any prompt, including a short prompt such as: Reply with one short sentence only.
- Observe that Thinking appears briefly.
- 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.
I'm having the same issue. If I run copilot --remote I can see that it's operating away in the background still. But in the terminal it shows a blank screen.
Ubuntu using zsh (Doesn't work with bash either).
I have the same issue. Running MacOS, only happen when I use iTerm2, if i use terminal it does not seem to happen. If I resize the iTerm window i see the text flicker and if i'm luck i can find a size where the text is visible
Update: root cause found (crash log + bundle analysis)
I captured the crash log on the affected machine, still reproducing on 1.0.75. The blank screen is an uncaught React error in the Ink renderer, thrown while rendering the quota status line. I have confirmed a workaround (see the last section), which also confirms the diagnosis.
Crash log
2026-07-28T23:54:10.258Z [ERROR] TerminalRenderer React uncaught error: TypeError: t.getTime is not a function
at aR (file:///C:/Users/<user>/.copilot/pkg/win32-x64/1.0.75/app.js:394:3687)
at Hgn (app.js:3334:4160)
at Ggn (app.js:3334:5153)
at app.js:4120:40553
at cE (app.js:2611:14350)
at Object.useMemo (app.js:2701:5463)
at process.env.NODE_ENV.Xs.useMemo (app.js:2480:12042)
at mgi (app.js:4120:40528)
at react-stack-bottom-frame (app.js:2701:12760)
at sE (app.js:2611:808)
Component stack:
at mgi (app.js:4119:6015)
at Mte (app.js:2924:2928)
at NJt (app.js:2959:9916)
at Ndn (app.js:3319:1196)
at Sxe (app.js:4136:30751)
Analysis (minified symbols from the shipped 1.0.75 bundle)
aR(t, e) is the quota "resets in X" formatter. Its first statement is:
function aR(t,e){ if(isNaN(t.getTime())) return; ... }
It assumes t is a real Date. It is called from:
Hgn(...)(quota status line / spinner text), on the branchif (a.remainingPercentage <= 0 && a.resetDate) { let l = aR(a.resetDate); ... }Ggn(...)(footer width calculation), on the equivalentexhaustedbranch,aR(u.resetDate)
So aR is reached only when the premium quota shows 0 percent remaining.
resetDate is a real Date on some code paths but a string on others:
owt(json)revives it correctly:s = new Date(o.resetDateIso)XY(t)builds it correctly fromquota_reset_atkgr(t)does not: it returns{ ...XY(t), resetDate: t.timestamp_utc }, passing the raw API string through- Quota snapshots delivered over the session event stream (
assistant.usageandmodel.call_failure, merged into React state by theptnhook viaupdateQuotaSnapshots) are JSON-serialized, soDatevalues arrive as ISO strings
The codebase already accounts for this elsewhere. The helper gLr defends explicitly:
let e = t instanceof Date ? t : new Date(t);
The aR call sites in Hgn and Ggn (and h(y.resetDate) in the ptn hook) have no such guard.
Why the symptoms look the way they do
- The blank screen appears exactly when the response starts rendering because
assistant.usagefires as streaming begins, pushes a snapshot whoseresetDateis a string into React state, the status line and footer re-render,aRthrows, and the Ink tree unmounts. -p(non-interactive) works because it does not render the Ink status line or footer.--screen-readerdoes not help because it renders the same quota components.- It reproduces on only one of my machines because that is the account/plan that is at 100 percent premium usage. Machines with quota remaining never take the branch.
- I have overage enabled, which is why requests still succeed and the agent processes the turn normally. Overage does not raise
remainingPercentageabove 0, so the exhausted branch still executes and the render still crashes.
Suggested fix
Coerce or guard at the aR boundary, matching what gLr already does:
function aR(t, e) {
let d = t instanceof Date ? t : new Date(t);
if (!d || isNaN(d.getTime())) return;
...
}
Ideally also fix the producer, so kgr returns resetDate: I$n(t.timestamp_utc) (or an equivalent Date), and revive Date fields when quota snapshots are deserialized from the session event stream. Typing resetDate as Date | string at that boundary would have caught this.
Given that this crashes the whole UI, it may also be worth adding an error boundary around the status/footer components so that a formatting failure degrades that one line instead of blanking the session.
Confirmed workaround, which also confirms the diagnosis
Both aR call sites are reachable only when the footer.showQuota setting is enabled:
- the footer width
useMemocallsGgn(...)only whensettings.footer?.showQuota ?? falseis true - the quota status line component
iTe, which callsHgn, is rendered inside the footer componentipnonly whenshowQuotaInFooteris true, which comes from the same setting
The default is false. I had it turned on explicitly on the affected machine, which is why only that one machine broke.
Disabling it fixes the blank screen completely. Either run /footer and toggle the quota item off, or merge this into ~/.copilot/settings.json (C:\Users\<user>\.copilot\settings.json on Windows) and restart:
{
"footer": { "showQuota": false }
}
Interactive mode then renders responses normally, with premium usage still at 100 percent and overage still enabled. That isolates the fault to the quota rendering path and rules out anything terminal-specific, which I think means the area:platform-windows label can probably be dropped.
Anyone who wants to keep the quota footer can instead get premium usage back below 100 percent (wait for the monthly reset or upgrade), or pin an older CLI version.