feat(claude): parse v2.1 system subtypes - #59
Merged
Conversation
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
Follow-up to the v2.1 log-format audit (#57). Handles three
systemrecord subtypes that were silently dropped (they fell through the_ =>skip arm), surfacing them as timelineNotificationevents.away_summary→Notification(info): the summary shown when returning to a session that ran in the background / as a remote agent."Away summary: {content}".api_error→Notification(warn):"API error (retry {attempt}/{max})"when retry metadata is present, else the rawcontent.informational→Notification(info): generic info message.Changes
claude/schema.rs: addretry_in_ms/retry_attempt/max_retriestoSystemRecord(forapi_error).claude/parser.rs: three new match arms + 3 unit tests.Consistent with how existing system subtypes (
compact_boundary,stop_hook_summary,turn_duration) already map toNotification. No snapshot changes.Notes
New metadata record types (
ai-title,custom-title,last-prompt,agent-name,mode,permission-mode,attachment) are session-level metadata rather than timeline events; they'll be handled separately (session-metadata plumbing vs. timeline) per the roadmap in #57.🤖 Generated with Claude Code