feat(replay): add guided pull request reconstruction - #162
Open
fcoury-oai wants to merge 67 commits into
Open
Conversation
…nges feat(replay): group meaningful source-backed changes
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.
Why
A pull-request diff shows the finished change, but not how its author built it. PR Replay lets reviewers absorb a real change by reconstructing its original hunks, step by step, inside an explicitly approved scratch workspace. The original PR branch remains untouched.
What changed
docs/PR_REPLAY.md.Review comments and fix proposals are deliberately local only in this milestone. Replay does not create a GitHub pending review, publish comments, submit an approval, edit the original PR branch, start an agent, stage, commit, or push. Portable save/load, explicitly approved GitHub reviews, and agent-assisted author updates will be separate follow-up milestones.
How to Test
cargo run -p red, pressSpace R g, and choose Safe in-memory demo. Confirm the dedicated Replay pane opens beside an editable source buffer without creating files, branches, or network requests.h/lto navigate changes andj/kto scroll. Confirm original line numbers, language-aware syntax, added/removed diff colors, meaningful change descriptions, clipped long lines, and the pinned action bar remain readable.i, manually reconstruct the displayed diff, and validate withSpace R v. On another step, pressaand thenu; confirm exact one-step application and undo without an interrupting confirmation.Ctrl-w wandCtrl-w H/J/K/Lto move focus and reposition the pane. Resize withCtrl-w >/<orCtrl-w +/-, and drag the divider; confirm focus cues, layout, and syntax highlighting remain correct.[/]to navigate multi-file changes.cfor an inline comment,sfor a summary, andrfor the local outbox. Verify draft editing and confirmed deletion; verifyFis available only for the authenticated original PR author. Confirm no GitHub pending review or published comment is created.cargo run -p red -- --resume; confirm the original verified worktree, selected change, notes, drafts, and progress return. When several reviews exist, confirm the review picker identifies and reopens the chosen review without creating a replacement scratch branch.cargo test -p red --lib replayandcargo clippy --all-targets --all-features -- -D warnings. The complete all-feature workspace suite has also been verified.