Skip to content

[Bug] Ctrl+G editor broken in v1.0.49 — every keypress requires pressing twice, Ctrl+X unresponsive in nano #3384

@markandrewkato

Description

@markandrewkato

Describe the bug

[Bug] Ctrl+G editor broken in v1.0.49 — keypresses require pressing twice

What happened

Since v1.0.49, the editor opened via Ctrl+G has a broken PTY:

  • Every keypress must be pressed twice to register
  • Ctrl+X is completely unresponsive in nano (can't exit)
  • After closing the editor, CLI shows Waiting for editor process to exit... and requires an extra keypress

Versions

  • v1.0.49 — broken
  • v1.0.48 — works fine (confirmed on separate machine)

Steps to reproduce

  1. Launch copilot
  2. Press Ctrl+G to open the editor
  3. Type any character — nothing appears until pressed twice

Investigation

Not caused by editor config — confirmed with EDITOR="vim -u NONE", same issue. ps shows the correct process spawning:

vim -u NONE /var/folders/.../COPILOT_PROMPT.md

Same broken behavior with nano. Editor works normally outside of Copilot CLI.

Environment

  • macOS Apple Silicon (arm64)
  • Copilot CLI 1.0.49
  • Editors tested: Vim 9.1, nano

Affected version

No response

Steps to reproduce the behavior

No response

Expected behavior

No response

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:input-keyboardKeyboard shortcuts, keybindings, copy/paste, clipboard, mouse, and text input

    Type

    No fields configured for Bug.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions