Describe the bug
Powershell7 - ANSI escape characters appearing whenever I use keyboard shortcuts or mouse to switch windows and use mouse to focus a window.
- Win + Tab adds
[0
- Clicking on the window adds
[I
Impact: Need to clear input buffer before entering commands - especially slash commands.
Only seems to be happening on copilot-cli, none of my other TUI apps in the same Powershell window have this issue.
Affected version
Using Copilot version: 0.0.375 0.0.375 Commit: fe4913f
Steps to reproduce the behavior
- Open powershell7 windows
- Launch
copilot cli
- Tab to different window - see ANSI chars
- Click the
copilot cli window - see ANSI chars
Expected behavior
Switching between windows shouldn't add any characters here
Additional context
Attaching ps .json file for reference
settings.json