Summary
Codex CLI TUI input sometimes auto-fills with text like:
codex(11033) MallocSt...
I did not type or paste this. The PID part changes over time (e.g. codex(8582), codex(10358), codex(11033)).
Screenshot
Environment
Steps to reproduce
Runtime repro (intermittent)
- Start Codex CLI TUI.
- Keep using it for a while (normal interaction, tool runs, shell output, etc.).
- Eventually the composer may auto-fill with
codex(<pid>) MallocSt... text.
Expected behavior
Input should only contain user-typed or user-pasted text.
Actual behavior
Composer gets unexpected text that looks like allocator diagnostics.
Analysis / hypothesis
- The text appears to match macOS malloc stack-logging diagnostics.
- The changing PID supports that it is process-generated noise, not static input.
- In terminals without reliable bracketed paste signaling, fast char streams can be classified as paste bursts. This likely lets diagnostic text leak into composer input as if it were pasted text.
Potential fix direction
- Add a guard in paste-burst flush handling for this diagnostic shape.
- Avoid silent data loss: if uncertain, quarantine as placeholder-backed pending paste rather than dropping content outright.
I can help validate fixes quickly on macOS if needed.
Summary
Codex CLI TUI input sometimes auto-fills with text like:
codex(11033) MallocSt...I did not type or paste this. The PID part changes over time (e.g.
codex(8582),codex(10358),codex(11033)).Screenshot
Environment
Steps to reproduce
Runtime repro (intermittent)
codex(<pid>) MallocSt...text.Expected behavior
Input should only contain user-typed or user-pasted text.
Actual behavior
Composer gets unexpected text that looks like allocator diagnostics.
Analysis / hypothesis
Potential fix direction
I can help validate fixes quickly on macOS if needed.