mirror of
https://github.com/openai/codex.git
synced 2026-10-31 19:28:49 +00:00
## Why Deleting `Yes` from `Yes! I agree.` should leave an ordinary message, without entering shell mode or treating the remaining `!` as a shell command on submission. ## What changed - Activate shell mode when an edit inserts a leading `!`, rather than when deletion exposes one. - Use the composer's shell-mode state to classify submissions and preserve that state when restoring the same draft. - Keep input with whitespace before `!` in normal text mode. ## Testing Add regression coverage for literal-bang submission and queueing, editing and rendering, Vim repeat and undo/redo, and cancelled history search. Update paste and startup-submission tests to distinguish literal bangs from shell commands. GitOrigin-RevId: 05002c3e07edb47e0882465ad91b39d317d2c663