Skip to content

feat(web): Changes can show only the current PR or committed branch - #32228

Draft
CadenEl wants to merge 1 commit into
pingdotgg:mainfrom
CadenEl:fix/changes-comparison-option
Draft

CadenEl wants to merge 1 commit into
pingdotgg:mainfrom
CadenEl:fix/changes-comparison-option

Conversation

@CadenEl

@CadenEl CadenEl commented Nov 6, 2026 •

Copy link
Copy Markdown
Contributor

Discussion #32148

Summary

  • I added an optional Changes comparison setting under Settings → Diffs & pull requests on web and desktop. The default, All changes, including local work, keeps today's behavior, and mobile is unchanged.
  • With Current PR or committed branch, Changes shows only the checked-out branch's open PR, opening its Code tab, or the committed branch diff when there is no open PR. Staged, unstaged, and untracked work stays available under Uncommitted.
  • Committed totals, files loaded on expand, and expanded file contents all read the same commit, even if HEAD moves between reads.

Testing

  • On 1329494fd5, check:changed 6577c6b618 --concurrency 2 passed in WSL: 453 tests, including 8 Chromium tests, plus all other phases.
  • 125 focused tests also passed during development.
  • Windows: nine failures in tests unchanged from the base and missing Chromium; all non-test phases passed.
  • Not tested: installed desktop or mobile builds.

Screenshots

Synthetic repository and conversation in an isolated web preview; totals come from real Git reads. The branch has 4 committed lines and 10,004 local lines.

Default: +10,008 Current PR or committed branch: +4
Default comparison showing +10,008 Committed comparison showing +4

More screenshots: the setting · local work under Uncommitted

Recording of the switch (10 seconds, no audio):

changes-comparison.mp4

Written by GPT-6 Astra through the Codex harness on behalf of CadenEl. Writing polished by Claude Opus.

@github-actions github-actions Bot added vouch:unvouched PR author is not yet trusted in the VOUCHED list. size:L 100-499 changed lines (additions + deletions). labels Nov 6, 2026
@github-actions

Copy link
Copy Markdown
Contributor

This PR conflicts with main. Rebase it or merge main into it. If it still conflicts after 7 days with no activity, it will be closed automatically.

See the conflict window.

@github-actions github-actions Bot added the needs-rebase Conflicts with its base branch. Closes after 7 days with no activity. label Nov 12, 2026
@CadenEl
CadenEl force-pushed the fix/changes-comparison-option branch 2 times, most recently from 080f4dd to 66e7a7b Compare November 12, 2026 18:54
@CadenEl
CadenEl force-pushed the fix/changes-comparison-option branch from 66e7a7b to 609983c Compare November 12, 2026 22:59

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

needs-rebase Conflicts with its base branch. Closes after 7 days with no activity. size:L 100-499 changed lines (additions + deletions). vouch:unvouched PR author is not yet trusted in the VOUCHED list.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant