원클릭으로
claude-session-rescue
Fix broken Claude Code sessions by stripping base64 images from session JSONL files.
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
메뉴
Fix broken Claude Code sessions by stripping base64 images from session JSONL files.
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
SOC 직업 분류 기준
| name | claude-session-rescue |
| description | Fix broken Claude Code sessions by stripping base64 images from session JSONL files. |
Fix broken Claude Code sessions caused by the image dimension limit bug (anthropics/claude-code#13480).
When a long-running Claude Code session breaks after sleep/wake with image limit errors, this tool:
skill install https://github.com/ianbmacdonald/claude-session-rescue
This installs the skill from the repo, which contains:
SKILL.md - This file with instructionsscripts/session_rescue.py - The execution engineAfter installation, just ask Claude:
"Fix my broken session with ID 03d04fb2"
Or run the script directly:
# Dry run first
uv run --script scripts/session_rescue.py --session-id 03d04fb2 --dry-run
# Then fix it
uv run --script scripts/session_rescue.py --session-id 03d04fb2
# Fix most recent session
uv run --script scripts/session_rescue.py --latest
# Fix all sessions
uv run --script scripts/session_rescue.py --all
--session-id ID — Find by UUID prefix--session-name NAME — Find by custom title--latest — Most recently modified session--all — All sessions--project PATH — Scope to project directory--dry-run — Report without modifying--min-images N — Threshold (default: 1)--verbose — Detailed output.bak, .bak.1, .bak.2 filestool_result structuresSessions break when screenshots accumulate past the API's 2000px dimension limit. The failure is retroactive—images that worked during the session fail on replay after sleep/wake.
This tool removes the images while preserving the conversation text, freeing up context space.
MIT