Large paste placeholder sent literally after $ skill selection (Tab)

Open 💬 0 comments Opened Feb 2, 2026 by obviyus

What version of Codex is running?

codex-cli 0.93.0

What subscription do you have?

Pro

Which model were you using?

gpt-5.2-codex high

What platform is your computer?

Darwin 25.2.0 arm64 arm

What terminal emulator and version are you using (if applicable)?

Warp

What issue are you seeing?

Large paste inserts [Pasted Content N chars] placeholder in composer. After selecting a skill mention via $ + Tab, submission sends literal placeholder string instead of expanded content.

Note: cause likely insert_selected_mention clears text elements, so expand_pending_pastes no-ops.

What steps can reproduce the bug?

  1. Paste >1000 chars into input (e.g. 2000 x).
  2. Type $ and select a skill with Tab.
  3. Submit.

What is the expected behavior?

Expected
Full pasted content sent (placeholder expands).

Actual
Literal [Pasted Content N chars] sent.

Additional information

Suspected cause
In codex-rs/tui/src/bottom_pane/chat_composer.rs insert_selected_mention uses set_text_clearing_elements, dropping element ranges. expand_pending_pastes requires elements; returns early, so placeholder never expands.

View original on GitHub ↗