feat(code): add comment-to-agent in diff viewer#1416
Merged
jonathanlab merged 1 commit intomainfrom Apr 1, 2026
Merged
Conversation
Contributor
Author
This was referenced Apr 1, 2026
feaf427 to
88f4786
Compare
5a46d67 to
842f447
Compare
88f4786 to
1b9e514
Compare
1b9e514 to
7a801dd
Compare
842f447 to
387b165
Compare
7a801dd to
fd52b59
Compare
387b165 to
703e803
Compare
Contributor
Merge activity
|
fd52b59 to
28276fc
Compare
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.

Problem
there's not an easy way to give an agent a file reference from a diff
Changes
adds a comment-style button in the diff gutter that prompts for an input -- on submit, sends to the agent with a file ref
this diff is big mostly because i refactored
RevertableFileDiff.tsx->InteractiveFileDiff.tsxwhich is now a wrapper on some of the pierre diff components, and handles annotation logic (reverts, comments) internallyphcode-agent-followup.mp4 (uploaded via Graphite)
How did you test this?
manually