Skip to content

feat(code): add comment-to-agent in diff viewer#1416

Merged
jonathanlab merged 1 commit intomainfrom
03-31-feat_code_add_comment-to-agent_in_diff_viewer
Apr 1, 2026
Merged

feat(code): add comment-to-agent in diff viewer#1416
jonathanlab merged 1 commit intomainfrom
03-31-feat_code_add_comment-to-agent_in_diff_viewer

Conversation

@adboio
Copy link
Copy Markdown
Contributor

@adboio adboio commented Apr 1, 2026

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.tsx which is now a wrapper on some of the pierre diff components, and handles annotation logic (reverts, comments) internally

phcode-agent-followup.mp4 (uploaded via Graphite)

How did you test this?

manually

@adboio adboio force-pushed the 03-31-feat_code_add_comment-to-agent_in_diff_viewer branch from feaf427 to 88f4786 Compare April 1, 2026 05:26
@adboio adboio requested a review from a team April 1, 2026 05:28
@adboio adboio marked this pull request as ready for review April 1, 2026 05:28
@adboio adboio force-pushed the 03-31-fix_code_fix_timestamp_hover branch from 5a46d67 to 842f447 Compare April 1, 2026 07:12
@adboio adboio force-pushed the 03-31-feat_code_add_comment-to-agent_in_diff_viewer branch from 88f4786 to 1b9e514 Compare April 1, 2026 07:13
Copy link
Copy Markdown
Contributor

@jonathanlab jonathanlab left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

love it

@jonathanlab jonathanlab force-pushed the 03-31-feat_code_add_comment-to-agent_in_diff_viewer branch from 1b9e514 to 7a801dd Compare April 1, 2026 10:28
@jonathanlab jonathanlab force-pushed the 03-31-fix_code_fix_timestamp_hover branch from 842f447 to 387b165 Compare April 1, 2026 10:28
@jonathanlab jonathanlab force-pushed the 03-31-feat_code_add_comment-to-agent_in_diff_viewer branch from 7a801dd to fd52b59 Compare April 1, 2026 10:36
@jonathanlab jonathanlab force-pushed the 03-31-fix_code_fix_timestamp_hover branch from 387b165 to 703e803 Compare April 1, 2026 10:36
Copy link
Copy Markdown
Contributor

jonathanlab commented Apr 1, 2026

Merge activity

  • Apr 1, 10:51 AM UTC: A user started a stack merge that includes this pull request via Graphite.
  • Apr 1, 11:44 AM UTC: Graphite rebased this pull request as part of a merge.
  • Apr 1, 11:53 AM UTC: @jonathanlab merged this pull request with Graphite.

@jonathanlab jonathanlab changed the base branch from 03-31-fix_code_fix_timestamp_hover to graphite-base/1416 April 1, 2026 11:35
@jonathanlab jonathanlab changed the base branch from graphite-base/1416 to main April 1, 2026 11:43
@jonathanlab jonathanlab force-pushed the 03-31-feat_code_add_comment-to-agent_in_diff_viewer branch from fd52b59 to 28276fc Compare April 1, 2026 11:44
@jonathanlab jonathanlab merged commit 3325bf5 into main Apr 1, 2026
16 checks passed
@jonathanlab jonathanlab deleted the 03-31-feat_code_add_comment-to-agent_in_diff_viewer branch April 1, 2026 11:53
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.

2 participants