Skip to content

CodexParser keeps zero-length messages instead of skipping them #9

Description

@royalpinto007

Problem

Parsing {"type": "message", "role": "user", "content": ""} produces an empty message, while the Claude/OpenAI parsers skip empties. Inconsistent and pollutes token totals.

Where

src/ctxlens/parsers/codex.py (no emptiness guard, unlike claude_code.py and openai_chat.py).

Acceptance

Add a failing test first parsing a Codex session with an empty-content message, expecting it skipped. Then fix.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions