This repository was archived by the owner on Jan 30, 2026. It is now read-only.
Add after slash command to create changes after references#1
Draft
Add after slash command to create changes after references#1
Conversation
Implement `/jjagent:after` command that creates a new jj change after a specified reference and immediately tracks the session in it. Combines `jj new -A <ref>` functionality with session ID trailer insertion. - New `jjagent after <session-id> <ref>` subcommand - Creates change with session trailer in commit message - Automatically moves working copy to newly created change - Supports flexible references (change IDs, revsets, etc.) - Slash command file: `commands/after.md` - 4 comprehensive snapshot tests covering basic, revset, integration, and working copy movement scenarios - All tests pass with no clippy warnings Claude-session-id: 9855dabe-7f0d-4997-8d89-246a55e5cdf7
Owner
Author
|
note: this needs to use |
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 subscribe to this conversation on GitHub.
Already have an account?
Sign in.
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.
Implement
/jjagent:aftercommand that creates a new jj change after a specified reference and immediately tracks the session in it. Combinesjj new -A <ref>functionality with session ID trailer insertion.jjagent after <session-id> <ref>subcommandcommands/after.mdClaude-session-id: 9855dabe-7f0d-4997-8d89-246a55e5cdf7