Lite: carry over PR draft, reviewed files, and some UI state when renaming a branch - #15991
Draft
cbjeukendrup wants to merge 4 commits into
Draft
cbjeukendrup wants to merge 4 commits into
cbjeukendrup wants to merge 4 commits into
Conversation
The draft was moved after the rename's workspace update, by which point the PR form for the new branch name had already mounted, found no draft, and seeded its fields empty. Move it before the caches learn the new name. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
The selected Diff/Pull request tab, expanded remote legs, unfolded branches in the branches list and reviewed-file marks were all keyed by the branch's name or ref and left behind under the old one on rename. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
applyBranchRename carries the PR draft, reviewed files, Redux state and URL params over to a branch's new name. The stored moves now run as the new name's query, so a view mounting under the new name waits for the moved data and the caller no longer has to order the moves before the cache update. This prepares for applying renames detected outside Lite. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
The reconciler already detected a rename of the selected branch between workspace snapshots, but only remapped the URL. It now detects renames of every applied branch and applies them with applyBranchRename, so renames made with the CLI keep the PR draft, reviewed files, tab and fold state too. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
cbjeukendrup
force-pushed
the
lite-rename-keeps-branch-state
branch
from
September 22, 2026 12:16
cb15a7b to
c8887e8
Compare
cbjeukendrup
marked this pull request as draft
September 22, 2026 12:53
This branch has not been deployed
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.
And also try to do so when a branch is renamed outside the app.
See commit messages for details.