feat(agent): replay imported Claude Code CLI transcripts#2876
Merged
Conversation
Contributor
Author
This stack of pull requests is managed by Graphite. Learn more about stacking. |
This was referenced Jun 23, 2026
|
React Doctor found no issues in the changed files. 🎉 Reviewed by React Doctor for commit |
Contributor
|
Reviews (1): Last reviewed commit: "feat(agent): replay imported Claude Code..." | Re-trigger Greptile |
Teach the Claude adapter to replay an imported CLI transcript into a fresh session: emit user prompts and top-level assistant text/thinking (no client history to dedupe against), recover typed slash-command invocations, and mark replayed user chunks so the load path can promote them into user bubbles. Also extracts encodeCwdToProjectKey from the JSONL path helper and adds the shared IMPORTED_USER_PROMPT_META_KEY marker plus the importedClaudeSession task-creation field. Part 1/3 of splitting #2873 (import Claude Code sessions). Generated-By: PostHog Code Task-Id: 6c93b6e8-27b6-45c8-8135-73a09076ea93
442269e to
153d55c
Compare
Contributor
|
Reviews (2): Last reviewed commit: "feat(agent): replay imported Claude Code..." | Re-trigger Greptile |
2 tasks
tatoalo
approved these changes
Jun 26, 2026
Contributor
Author
adboio
added a commit
that referenced
this pull request
Jun 26, 2026
## Problem #2876 enables replaying cli sessions; need a way to discover + import them <!-- Who is this for and what problem does it solve? --> <!-- Closes #ISSUE_ID --> ## Changes enables claude code cli session discovery + import still not user-accessible, UX will come in the next PR up <!-- What did you change and why? --> <!-- If there are frontend changes, include screenshots. --> ## How did you test this? manually (upstack) <!-- Describe what you tested -- manual steps, automated tests, or both. --> <!-- If you're an agent, only list tests you actually ran. --> ## Automatic notifications - [ ] Publish to changelog? - [ ] Alert Sales and Marketing teams?
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.

Problem
want to allow users to import claude code sessions, mostly for activation reasons
Changes
1/n - updates adapter to allow "replay" of a cli session transcript
no user-facing or user-reachable changes here for now
How did you test this?
manually (upstack)
Automatic notifications