Describe the bug
On every run of copilot in a folder, the initial welcome prompt ("Describe a task to get started") and the "Confirm folder trust" UI are both shown twice, one after another.
Screenshot:
Affected version
GitHub Copilot CLI 0.0.402
Steps to reproduce the behavior
mkdir /tmp/copilot-test && cd /tmp/copilot-test
- Run
copilot
- Observe prompts appear twice
- Quit and run
copilot again
- Observe prompts appear twice again (reproduces on every launch)
Expected behavior
The welcome and folder trust prompts should only appear once per launch; the folder trust prompt should not repeat unless trust is required.
Additional context
- OS: macOS
- Copilot CLI version: 0.0.402
- Terminal: Terminal.app (also occurs on iTerm2)
- Reproduces consistently on every launch (1st, 2nd, 3rd, etc.)
- See screenshot for UI details