mirror of
https://github.com/openai/codex.git
synced 2026-10-19 16:17:49 +00:00
## What changed - Display the leading `/` in the prompt marker instead of the editable text, sharing prefix state with shell mode's `!`. - Preserve command prefixes and text element offsets across submission, queuing, history, and external editing. Keep prefixes literal in plain-text composers. - Track composer-owned slash command elements separately, omit them from exported draft elements, and refresh them when command availability changes. - Let backward deletion at the start of the text remove the prompt prefix while preserving selected-text deletion and Vim Replace recovery. ## Testing Add regression coverage for slash prompt cursor placement, prefix deletion, history search highlighting, dynamic command availability, and Vim Replace restoration, including Unicode text. Update rendering snapshots for the slash prompt marker. GitOrigin-RevId: 0da42da8e98bf7885f9b0ba2c8d5ad4f44d6847e