Skip to content

Ctrl-G editor (vim) drops ~50% of keystrokes in INSERT mode #3401

Description

@ccapon

Describe the bug

Symptoms:

  • Pressing Ctrl-G to edit prompt in $EDITOR (vim) opens the editor correctly
  • In INSERT mode, roughly every other keystroke is silently dropped (e.g. typing abcdefghi produces abdegi)

Affected version

OS: Linux (Ubuntu), lxterminal + tmux, TERM=xterm-256color
GitHub Copilot CLI 1.0.49

Steps to reproduce the behavior

See bug description

Expected behavior

The TUI should suspend its PTY hooks (or fully hand off the terminal) while the child editor process is running, then reclaim it on exit.

Additional context

WORKAROUND
Launch vim in a new tmux window (separate PTY):

$EDITOR wrapper (~/.local/bin/vim-copilot)

tmux new-window "/usr/bin/vim '$1'; tmux wait-for -S vim-done"
tmux wait-for vim-done

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

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

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions