Skip to content

feat(code-review): add bounded revision-bound remote diffs (#324) - #395

Closed
BunsDev wants to merge 8 commits into
mainfrom
cr5-integration
Closed

BunsDev wants to merge 8 commits into
mainfrom
cr5-integration

Conversation

@BunsDev

@BunsDev BunsDev commented Oct 23, 2026 •

Copy link
Copy Markdown
Contributor

Selecting Changes in the Code Review workspace now shows grouped remote diffs, a hierarchical filterable file tree, both line gutters and bounded context expansion at the selected base/head revision. Line anchors retain account/repository/PR/path/side/line identity and become explicitly outdated after a head change. Binary, omitted, oversized and truncated patches remain distinct, with loaded coverage separated from provider totals.

Remote content only uses code-review:read; it cannot reach local filesystem reads, Discard, checkout or patch application. Local Changes retains its existing text renderer and confirmed/cancelled Discard behavior. Retained pages/text, open bodies, parsed rows, syntax fragments and expanded context have independent bounds. Long or token-dense source falls back to exact plain text; excessive context is visibly omitted before mounting.

This branch integrates the pinned overview implementation from #393 (52375d4fcba130904ff0a34769bd2107b76f8322) and preserves current main plus the existing signed CR-5 input. The shared PrPane callbacks and both CSS slices are reconciled in the separately owned cr5-integration worktree; neither other session's branch was edited. This PR is stacked on cr4-overview (#393). It also retains recent main CF commits already delivered on main; the CR-5 implementation is isolated in 6ef2377 relative to its first parent. Retarget/reconcile with main after #393 lands. No merge, release or visibility-flag change is included.

Local validation on tree 48a611df21e1df34e7c9e6cfead45892739b72b7: full build passed; 2,039 tests passed with 16 skipped; desktop E2E 428 passed with seven skipped; site E2E 7/7. The source and test inputs remain identical to this tested tree. Hosted CI is queued for the published head; no hosted pass is claimed. Published signed head: 09da8297a78f87d0ef760161963ddd83fef69a59 (documentation-only final receipt). Signed implementation commit: 6ef23770f63c6bc2b04edea129ffb208f4e2400c (tree 03ae62b553d3fe7efb42f6c7ef021b68872390a1; only receipt documentation differs from the full-tested tree). The new populated split regression failed against standalone CR-5 and passed after integration. A fresh review's resource-bound finding was reproduced in real Electron at 800,117 nodes, then fixed with a file-wide syntax budget and shared context-text admission; both context negative controls fail when admission is bypassed and pass after restoration. An authenticated GET-only service smoke against #393 matched an actual patch line with exact-head remote contents and left the checkout unchanged; this is separate from the synthetic Electron evidence.

Original R4 image comparison remains unverified because the documented source image is unavailable. Synthetic R4-size and narrow captures were inspected; no human VoiceOver or production-performance acceptance is inferred. Viewed stays unavailable pending its existing product decision. Full criterion-level evidence, historical failures, product bounds and remaining gates are recorded in the evidence.

Refs #324; advances #319 and #327. Do not merge or release.

Superseded by merged #404 (merge commit e3527f4), which integrates this candidate with provenance and validation repairs. Closing this source PR does not close outstanding human, original-reference, provider, or write-authorization acceptance gates.

@vercel

vercel Bot commented Oct 23, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
modex Ready Ready Preview Oct 23, 2026 10:27pm UTC

Request Review

@github-code-quality

Copy link
Copy Markdown

Code coverage overview

Languages: TypeScript

TypeScript / code-coverage-agent

cr4-overview 203a350 cr5-integration 09da829 +/-
65% 64% -1%
View coverage of the 10 most impacted files.
File cr4-overview 203a350 cr5-integration 09da829 +/-
apps/desktop/sr...read-service.ts 98% 98% 0%
apps/desktop/sr...eview/github.ts 99% 99% 0%
apps/desktop/sr...w/PrChanges.tsx 0% 0% 0%
apps/desktop/sr.../PrOverview.tsx 0% 0% 0%
apps/desktop/sr...onents/Diff.tsx 0% 0% 0%
apps/desktop/sr.../code-review.ts 100% 100% 0%
apps/desktop/sr...w/file-pages.ts 0% 94% +94%
apps/desktop/sr...iew-overview.ts 0% 96% +96%
apps/desktop/sr...review/patch.ts 0% 98% +98%
apps/desktop/sr...te-highlight.ts 0% 100% +100%

ℹ️ Calculations represent line coverage. Results may change as calculations are updated.

This branch was successfully deployed

1 active deployment
Preview — 09da8297 Deployed Oct 23, 2026 by vercel[bot]
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