Skip to content

Unknown Anthropic block types silently dropped, undercounting context #11

Description

@royalpinto007

Problem

redacted_thinking and mcp_tool_use blocks return None from block_to_message and vanish from token totals, undercounting context.

Where

src/ctxlens/parsers/util.py via claude_code.py (unknown blocks dropped silently).

Acceptance

Add a failing test first parsing a transcript with a redacted_thinking block, expecting it retained (e.g. as thinking/user text). 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