Skip to content

Commit a86705f

Browse files
btuckerclaude
andcommitted
Fix JSONL parsing to preserve toolUseResult for remote sessions
The JSONL parser was stripping out the toolUseResult field, which contains the originalFile content needed for code reconstruction in remote sessions. This caused code.html to have empty fileData when processing JSONL URLs. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
1 parent ca2bc04 commit a86705f

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/claude_code_transcripts/__init__.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -622,6 +622,10 @@ def _parse_jsonl_file(filepath):
622622
if obj.get("isCompactSummary"):
623623
entry["isCompactSummary"] = True
624624

625+
# Preserve toolUseResult if present (needed for originalFile content)
626+
if "toolUseResult" in obj:
627+
entry["toolUseResult"] = obj["toolUseResult"]
628+
625629
loglines.append(entry)
626630
except json.JSONDecodeError:
627631
continue

0 commit comments

Comments
 (0)