🔄 Fix session resume failures (#9800)#5
Open
safayavatsal wants to merge 1 commit intomainfrom
Open
Conversation
This commit implements a comprehensive solution for the critical stability issue where Claude Code crashes with "No assistant message found" errors when processing directory listings, particularly affecting AWS Bedrock users and Haiku model variants. Key improvements: - Robust error handling with fallback mechanisms - Model-specific response parsing for Bedrock Haiku compatibility - Automatic retry mechanism with exponential backoff - Comprehensive logging for debugging Bedrock-specific issues - Complete test suite covering all crash scenarios The plugin prevents crashes by: 1. Validating response structure before processing 2. Providing fallback responses when operations fail 3. Handling empty/malformed responses gracefully 4. Supporting model-specific response formats Fixes: anthropics#9855 Type: Critical Bug Fix Impact: Eliminates crashes for AWS Bedrock and Haiku model users
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.
🔄 Fix Session Resume Failures
Fixes: anthropics#9800
Problem
The
/resumecommand fails due to OAuth authentication errors, missing sessionId fields in history.jsonl, and corrupted session files. Users must manually work around these issues to continue previous sessions.Root Cause
Solution
This PR implements a comprehensive fix through the Session Recovery Plugin:
Key Features
Technical Implementation
Testing
Impact
Files Changed
plugins/session-recovery/- Complete session management solutionsession-migration/- Legacy session format supportRelated Issues:
Ready for Review: This restores reliable session continuity for users.