refactor: rename cc-session inject subcommand to inherit#5
Merged
Conversation
Keep `inject` working as a deprecated alias (prints a stderr notice) so existing scripts/transcripts keep working during the transition. Also teach the formatter's cc-session call collapsing to recognize `inherit` while still collapsing legacy `inject` transcripts. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01GypgpBVuZDFuxAWoqVxxeL
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
cc-session injecttocc-session inherit.injectkeeps working as a deprecated alias — it prints a one-line deprecation notice to stderr and forwards to the same handler — so existing scripts/skills usinginjectdon't break during the transition.cc-sessioncall-collapsing logic (parseCCSessionCommand/collapseCCSessionTools) to recognizeinheritas well, while still correctly collapsing legacy transcripts that recordedcc-session inject(kept saying "injected" for those, "inherited" for new ones).internal/injectpackage and its exported API (State,LoadState,SaveState,SplitPages,RenderFullOutput,WritePage), and thebenchmarkpackage'sInjectPages/CumulativeCostBWithInjectPages, were intentionally left unchanged — that's a separate future cleanup.inheritas the primary command, notinginjectstill works as legacy.Test plan
go build ./...,go vet ./...,go test ./...all passcc-session(no args) help listsinherit, notinjectcc-session inject <id>prints deprecation warning to stderr and behaves identically tocc-session inherit <id>injectand newinherittranscript collapsing🤖 Generated with Claude Code
https://claude.ai/code/session_01GypgpBVuZDFuxAWoqVxxeL