Skip to content

fix(sessions): advance Claude parse cursor for filtered transcripts + sanity-check follow-ups#241

Merged
ScriptedAlchemy merged 2 commits into
masterfrom
fix/merged-pr-sanity-followups
Jul 3, 2026
Merged

fix(sessions): advance Claude parse cursor for filtered transcripts + sanity-check follow-ups#241
ScriptedAlchemy merged 2 commits into
masterfrom
fix/merged-pr-sanity-followups

Conversation

@ScriptedAlchemy

Copy link
Copy Markdown
Owner

Follow-up from a subagent sanity sweep over today's seven merged PRs (#215, #216, #219, #230, #238, #239, #240).

Confirmed bug (from #239)

ClaudeSource::parse_new returned None whenever every row of a transcript was filtered out by the per-row cwd check that #239 introduced. ingest_one only persists the parse cursor on Some, so the cursor stayed pinned at 0 for every transcript belonging to a different project — and this source deliberately scans every ~/.claude/projects slug. Result: every sweep, in every project, re-read and re-ran per-line git discovery over the entire foreign transcript corpus, forever. Now the empty transcript is returned so the cursor advances; ingest_one's empty-messages branch persists it without upserting a session (the same contract cline/kiro use via empty_changed_transcript). Regression assertion added to claude_transcript_for_other_project_is_skipped.

Minor cleanups (from #215/#219 review)

  • Scrub /home/zack absolute paths from docs/HERMES-LOOPS-PARITY-AUDIT.md and elide the local analytics project id in docs/SKILL-ADOPTION-RESEARCH.md
  • Add a status note to SKILL-ADOPTION-RESEARCH.md: its P1 skill-catalog consolidation was implemented by Improve TraceDecay skill adoption steering #225 the day after the snapshot, so the skill names it lists are the pre-restructure catalog
  • code-health-auditor.md referenced the retired tracedecay:code-health-report skill; now points at tracedecay:code-health

Sanity-sweep verdicts (no action needed)

#216, #219, #230, #238, #240 all came back clean — details in session notes. #238's make-default mold setup was verified against the upstream action source and the mold 2.41.0 release assets (aarch64 included).

🤖 Generated with Claude Code

@changeset-bot

changeset-bot Bot commented Jul 3, 2026

Copy link
Copy Markdown

⚠️ No Changeset found

Latest commit: dfa213d

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.

ClaudeSource scans every ~/.claude/projects slug and filters rows by
recorded cwd, but parse_new returned None when every row was filtered
out, so the cursor never advanced for transcripts belonging to other
projects (or for appended non-message rows). Every sweep re-read and
re-git-probed the entire foreign corpus, O(total transcript bytes x
projects) instead of one pass. Returning the empty transcript lets
ingest_one persist the advanced cursor without upserting a session,
the same contract cline/kiro already use.

Also fixes issues surfaced while sanity-checking today's merged PRs:

- docs: scrub /home/zack absolute paths from the Hermes parity audit,
  elide the local analytics project id, and note that the skill-catalog
  consolidation recommended by SKILL-ADOPTION-RESEARCH.md was
  implemented by #225 (its skill names describe the old catalog)
- agents: point code-health-auditor at tracedecay:code-health (the
  code-health-report skill was retired in the restructure)

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@ScriptedAlchemy ScriptedAlchemy force-pushed the fix/merged-pr-sanity-followups branch from ce9fb37 to 46d1295 Compare July 3, 2026 04:40
@ScriptedAlchemy ScriptedAlchemy merged commit 180e29d into master Jul 3, 2026
14 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