Skip to content

Preserve diff side in agent review prompts - #52

Merged
mblode merged 2 commits into
mainfrom
fix/review-comment-side
Sep 5, 2026
Merged

Preserve diff side in agent review prompts#52
mblode merged 2 commits into
mainfrom
fix/review-comment-side

Conversation

@mblode

@mblode mblode commented Sep 5, 2026

Copy link
Copy Markdown
Owner

Copied review prompts now retain the old/new side of each line comment, so an agent can distinguish two versions of the same file and line. Add a reproducible Codex review walkthrough, explain that copying clears saved comments, correct worktree storage guidance, and remove navigation entries for missing docs.

Adds a patch changeset for the CLI behaviour. All 63 CLI tests, workspace type checks, standalone build and packaging pass; the packaged viewer was verified switching a clean checkout from Touched to Committed. The focused comment/export tests pass (13 tests), and changeset status --since origin/main now reports diffhub as a patch bump. Full repository check still reports formatting in three untouched files; changed-file checks pass.

No publish or deployment.


Note

Low Risk
Low-risk prompt formatting and documentation; behavior is covered by export and UI copy tests with no auth or data-model changes.

Overview
Copied review prompts now label each line comment as old or new side, so agents can tell apart feedback on deleted vs added code at the same file and line. File-level comments still export as **path** only, without a line or side.

Documentation adds a Review agent-written code in cmux walkthrough, links it from the README, and updates the comments page to note that copy clears saved comments, that prompts include side context, and how worktree-specific comment storage works. Docs navigation is adjusted (review-with-codex, features; drops entries for missing pages). A patch changeset records the CLI export behavior.

Reviewed by Cursor Bugbot for commit 6c8a6f6. Bugbot is set up for automated code reviews on this repo. Configure here.

@vercel

vercel Bot commented Sep 5, 2026

Copy link
Copy Markdown

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

1 Skipped Deployment
Project Deployment Actions Updated
diffhub-web Ignored Ignored Preview Sep 5, 2026 1:55am UTC

Request Review

@mblode
mblode marked this pull request as ready for review September 5, 2026 03:27
@mblode
mblode merged commit afe7d53 into main Sep 5, 2026
3 checks passed
@cursor

cursor Bot commented Sep 5, 2026

Copy link
Copy Markdown
Contributor

Bugbot couldn't run - usage limit reached

Bugbot is counted against Cursor usage for this user or team, and this run hit a usage or spend limit.

A user or team admin can review and increase usage limits in the Cursor dashboard.

(requestId: serverGenReqId_220db5ba-cc70-4979-b689-77a22878cb8e)

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