feat: add import-session command for manual Claude Code session import#324
Open
fahd04 wants to merge 1 commit intoentireio:mainfrom
Open
feat: add import-session command for manual Claude Code session import#324fahd04 wants to merge 1 commit intoentireio:mainfrom
fahd04 wants to merge 1 commit intoentireio:mainfrom
Conversation
Implements entireio#287. Allows importing Claude Code JSONL transcripts into Entire checkpoints, useful for: - Recovering sessions that weren't checkpointed (e.g., due to bugs) - Adopting Entire in repos with existing sessions Usage: entire import-session path/to/session.jsonl [path2.jsonl ...] entire import-session session.jsonl --commit <hash> Metadata is written to entire/checkpoints/v1. The command prints instructions for adding the Entire-Checkpoint trailer to link the commit to the checkpoint. When targeting a past commit, warns about history rewrite and force push.
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
Adds
entire import-sessioncommand to manually import Claude Code session transcripts into Entire checkpoints.Motivation
Closes #287
Two main use cases:
Changes
entire import-session <path> [paths...] [--commit <hash>]entire/checkpoints/v1via existingWriteCommittedAPIEntire-Checkpointtrailer; warns about history rewrite when targeting past commitsTesting
TestImportSession_ImportToHEAD,TestImportSession_MultipleSessions,TestImportSession_RequiresEnabledenabled: truein settings so commands run as expected