Describe the bug
I'm using copilot-cli in plan mode from inside a devcontainer, which has no desktop environment (mcr.microsoft.com/devcontainers/typescript-node:4-24-trixie)
Copilot offers to ctrl+y view/edit plan, which results in Error: spawn xdg-open ENOENT error.
Affected version
0.0.388 Commit: 89477e8
Steps to reproduce the behavior
- Start copilot inside a development container, e.g.
mcr.microsoft.com/devcontainers/typescript-node:4-24-trixie
- Switch to plan mode
- Do some planing
- Press
ctrl-y to view/edit plan
Expected behavior
The default editor is launched instead if xdg-open is not available, e.g. from EDITOR environment variable, and/or fallback to nano/vim if it's a Linux environment.
Additional context
No response