Skip to content

Terminal freezes after opening external editor via Copilot CLI (ctrl+y / ctrl+g) #1798

@lctech-sid

Description

@lctech-sid

Describe the bug

When I open an external editor in Copilot CLI with ctrl+y or ctrl+g, the original terminal window either freezes entirely, and cannot be interacted with whether I close the editor or try to exit. The only option is to restart the terminal.

Affected version

GitHub Copilot CLI 0.0.420.

Steps to reproduce the behavior

  1. Run copilot command in your terminal (e.g., copilot suggest)
  2. Press ctrl+y or ctrl+g to open the external editor
  3. Terminal window freezes
  4. Closing the editor does not restore terminal control.
  5. Repeatedly pressing esc or ctrl+C does not fix the issue
  6. The only resolution is to close and open a new terminal session

Expected behavior

Opening external editor should let me edit normally, and after closing, the Copilot CLI or the shell remains usable. The terminal should not freeze or disappear.

Additional context

Operating System: macOS 15.3.1 (24D70)
Terminal: iTerm2 v3.6.8
External editor: Zed 0.225.12

Closing the editor does not restore control. Terminal screen leaves Copilot CLI but remains unresponsive. Neither esc nor ctrl+C (pressed repeatedly) can exit.

Let me know if any extra logs are needed.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions