fix(agents): add file_not_found correlation status for missing transcripts - #538
Open
gokhanozdemir wants to merge 1 commit into
Open
fix(agents): add file_not_found correlation status for missing transcripts#538gokhanozdemir wants to merge 1 commit into
gokhanozdemir wants to merge 1 commit into
Conversation
gokhanozdemir
force-pushed
the
fix/523-transcript-correlation
branch
from
September 5, 2026 16:46
1bb4605 to
2991cec
Compare
…ripts Interactive Claude sessions don't persist transcripts at the reported path for PTY-driven sessions. The correlation logic now checks if the transcript file actually exists on disk before marking it as 'matched'. If the file doesn't exist, correlation status is set to 'file_not_found' instead, preventing metrics processing failures and providing better error handling for interactive sessions where transcript persistence is expected to be absent. Fixes codemie-ai#523
gokhanozdemir
force-pushed
the
fix/523-transcript-correlation
branch
from
September 5, 2026 16:52
2991cec to
6a7b7f6
Compare
gokhanozdemir
marked this pull request as ready for review
September 5, 2026 17:22
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Add file_not_found correlation status to handle cases where Claude Code doesn't persist transcripts for interactive PTY sessions.
Motivation
Interactive Claude sessions don't persist transcripts at the reported path for PTY-driven sessions. The correlation logic was marking them as "matched" even when the file didn't exist, causing metrics processing to fail with "0 records processed" errors and masking the actual issue.
Changes
src/agents/core/session/types.tsto add 'file_not_found' to CorrelationStatus typesrc/cli/commands/hook.tsto check file existence before marking correlation as "matched"src/providers/plugins/sso/session/SessionSyncer.tsto handle 'file_not_found' status gracefully by skipping sync instead of failingTesting
Breaking Changes
None
Related Issues
Fixes #523