Skip to content

fix(sessions): deduplicate Claude reasoning text#384

Merged
ScriptedAlchemy merged 1 commit into
masterfrom
codex/claude-reasoning-dedup
Jul 9, 2026
Merged

fix(sessions): deduplicate Claude reasoning text#384
ScriptedAlchemy merged 1 commit into
masterfrom
codex/claude-reasoning-dedup

Conversation

@ScriptedAlchemy

Copy link
Copy Markdown
Owner

Root cause

#372 emitted canonical Claude kind=reasoning rows but kept the same plaintext thinking blocks in the searchable kind=message blob. That produced duplicate hits and retained the JSON search pollution the structured row was meant to remove.

Fix

Strip thinking and redacted_thinking blocks from the indexed assistant message row. Preserve visible text and tool-use blocks, keep plaintext thinking in the linked reasoning row, and leave the source transcript lossless on disk.

Tests

  • Claude parser unit tests: 8 passed
  • Claude transcript ingest: 17 passed
  • Structured backfill regression: passed
  • cargo fmt --all -- --check
  • git diff --check

Cargo verification used /fast/cargo-target/tracedecay-claude-reasoning-dedup.

@changeset-bot

changeset-bot Bot commented Jul 9, 2026

Copy link
Copy Markdown

⚠️ No Changeset found

Latest commit: 36274c1

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.
To continue using code reviews, add credits to your account and enable them for code reviews in your settings.

@ScriptedAlchemy ScriptedAlchemy merged commit cd5e598 into master Jul 9, 2026
9 of 15 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant