Disable Ctrl+C from clearing the input buffer in Codex CLI

Resolved 💬 1 comment Opened Oct 14, 2025 by ai-da-stas Closed Oct 16, 2025

What version of Codex is running?

v0.46.0

Which model were you using?

gpt-5

What platform is your computer?

Linux 6.14.0-33-generic x86_64 x86_64

What steps can reproduce the bug?

  1. Start typing a long prompt in codex-cli.
  2. Press Ctrl+C accidentally or when trying to copy text.
  3. Observe that the entire input buffer is cleared instantly.

What is the expected behavior?

Ctrl+C should not clear the input buffer. It should either do nothing or have configurable behavior.

What do you see instead?

The entire prompt text is erased without confirmation, leading to loss of unsaved input.

Additional information

  • This often happens when working on long prompts.
  • The key combination conflicts with common keyboard habits.
  • A confirmation prompt or disabling this shortcut would prevent data loss.

View original on GitHub ↗

This issue has 1 comment on GitHub. Read the full discussion on GitHub ↗