Skip to content

TUI composer sometimes auto-fills with codex(pid) MallocSt... text #11555

@0xWerz

Description

@0xWerz

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

image

Environment

  • macOS
  • Codex CLI TUI

Steps to reproduce

Runtime repro (intermittent)

  1. Start Codex CLI TUI.
  2. Keep using it for a while (normal interaction, tool runs, shell output, etc.).
  3. 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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    TUIIssues related to the terminal user interface: text input, menus and dialogs, and terminal displaybugSomething isn't working

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions