Skip to content

fix(review): local branch reviews judge the true base; release 1.7.2 - #21

Merged
jack1590 merged 1 commit into
mainfrom
fix/local-review-true-base
Nov 6, 2026
Merged

jack1590 merged 1 commit into
mainfrom
fix/local-review-true-base

Conversation

@jack1590

@jack1590 jack1590 commented Nov 6, 2026

Copy link
Copy Markdown
Owner

A local branch review (review_start with path) could judge a different diff from the PR, because it read the base from the user's own refs. On fox-player-roku, base: develop diffed 118 files instead of 28 on one PR and 42 instead of 9 on another, and a run with no base used main.

What changes

  • True base: the base is fetched from GitHub into the review's own copy. The user's repo is not changed. If the fetch fails, the local ref is used and baseNotes says so.
  • Default base: the open PR's base, then origin/HEAD. A base that differs from the PR's gets a note.
  • Naming a base:
    • origin-https/develop means develop on that remote when it is this repo.
    • A ref on another repo's remote is used as it is.
    • A branch such as jack/wip stays a branch even if a remote is named jack.
  • Stored reviews: another base, or a run that used a stale copy of its base, starts clean. Reviews saved by earlier versions start clean once.
  • PR context: a branch with an open PR also gets the description, discussion, and CI when the commit is pushed. The device step stays PR-only.
  • review_get: adds reviewBody and ci, and for local reviews baseNotes and pullRequest.

PR-mode reviews change only by the new review_get fields.

Testing

  • verify-review and verify-review-mcp cover stale refs, foreign remotes, slash-named branches, PR bases, invalid PR bases and stale-review reuse. npm run typecheck passes.
  • prepareLocalCheckout ran against the real fox-player-roku clone, whose origin/* refs are stale. It gave 28 and 9 files, matching GitHub, for each way of naming the base, and the clone's refs did not change.

Not tested: executeLocal end to end in the running app, so the PR lookup and context loading have only been read and type-checked.

Bumps the app to 1.7.2.

A path review read the base from the user's refs, so a stale origin/develop
or a default of main reviewed the wrong diff. The base is now fetched from
GitHub into the review's own copy, and defaults to the open PR's base. Another
base starts clean, and a branch with an open PR gets its description, discussion
and CI. review_get also returns reviewBody and ci.
@jack1590
jack1590 merged commit f9745f7 into main Nov 6, 2026
5 checks passed
@jack1590
jack1590 deleted the fix/local-review-true-base branch November 6, 2026 14:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant