Codex history drops user prompts stored as `response_item/user` messages

Author: caiwdCreated Sep 22, 2026Updated Sep 28, 2026

Summary

Codex user prompts disappear from CloudCLI conversation history after reloading a session. Assistant and tool messages remain visible, but earlier user messages cannot be found by scrolling up.

I traced this locally. The Codex rollout file still contains the prompts, but CloudCLI’s history parser drops them.

Environment

  • CloudCLI: @cloudcli-ai/[email protected]
  • Codex CLI bundled with CloudCLI: codex-cli 0.153.4
  • OS: Ubuntu 25.10, Linux x86_64
  • Kernel: 6.17.0-41-generic
  • Node.js: v22.23.2
  • Browser: Google Chrome 153.0.8010.36
  • Upstream checked: siteboon/claudecodeui@6c51fca

Root Cause

Codex 0.153.4 writes visible user prompts like this:

json
{
  "type": "response_item",
  "payload": {
    "type": "message",
    "role": "user",
    "content": [
      {
        "type": "input_text",
        "text": "UNIQUE_TEST_PROMPT_12345"
      }
    ],
    "internal_chat_message_metadata_passthrough": {
      "content_item_kinds": ["user.text"]
    }
  }
}