Describe the bug
In some failure cases (seems to correlate with server-side rate limiting / request hang), Copilot CLI becomes unusable after attempting to cancel. The UI input remains responsive (you can type and see autocomplete), but pressing Enter stops doing anything — commands like /restart and /session info cannot be executed.
After pressing Esc, the UI shows "Cancelling" indefinitely. Esc no longer interrupts, and Enter will not submit commands.
Steps to reproduce (approx)
- Submit a prompt that triggers a backend request.
- Backend appears rate limited / hung; CLI shows no useful feedback for 5+ minutes.
- Press Esc to cancel.
- Observe: status shows "Cancelling" and never completes for a long time.
- Try
/restart + Enter or /session info + Enter.
- Observe: the text remains in the input line but Enter does not execute.
Eventually (8–10+ minutes later) it “releases” and starts working again, but until then there’s no way to recover.
Expected behavior
- Cancellation should complete quickly (or time out with a clear failure state).
- Even while a request is cancelling/hung, Enter should still work for local slash commands like
/restart, /session info, and ideally a “force cancel” action.
- If the CLI is rate-limited, show actionable feedback (retry-after / backoff) rather than appearing frozen.
Actual behavior
- Stuck in "Cancelling".
- Esc no longer works.
- Input is responsive for typing/autocomplete, but Enter does not execute
/restart or /session info.
- Cannot retrieve session info to safely force-quit and resume.
Environment
- OS: Windows
- Trigger: appears during/after suspected rate limit or hung server connection
Additional context / suggestions
This feels like an input state machine deadlock where cancellation disables submit/Enter processing globally. Local commands should remain functional regardless of backend request state.
Describe the bug
In some failure cases (seems to correlate with server-side rate limiting / request hang), Copilot CLI becomes unusable after attempting to cancel. The UI input remains responsive (you can type and see autocomplete), but pressing Enter stops doing anything — commands like
/restartand/session infocannot be executed.After pressing Esc, the UI shows "Cancelling" indefinitely. Esc no longer interrupts, and Enter will not submit commands.
Steps to reproduce (approx)
/restart+ Enter or/session info+ Enter.Eventually (8–10+ minutes later) it “releases” and starts working again, but until then there’s no way to recover.
Expected behavior
/restart,/session info, and ideally a “force cancel” action.Actual behavior
/restartor/session info.Environment
Additional context / suggestions
This feels like an input state machine deadlock where cancellation disables submit/Enter processing globally. Local commands should remain functional regardless of backend request state.