Skip to content

Conversation

@nishantmonu51
Copy link
Collaborator

This is a prototype to show edit diff in AI responses. The UI code needs a deeper review as its claude gen.

Checklist:

  • Covered by tests
  • Ran it and it works as intended
  • Reviewed the diff before requesting a review
  • Checked for unhandled edge cases
  • Linked the issues it closes
  • Checked if the docs need to be updated. If so, create a separate Linear DOCS issue
  • Intend to cherry-pick into the release branch
  • I'm proud of this work!
add package.

Update package-lock.json
Copy link
Contributor

@ericpgreen2 ericpgreen2 left a comment

Choose a reason for hiding this comment

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

As discussed, we'll have to reconcile the message rendering code in this PR with the message rendering refactor in this PR, but I'm happy to merge this as-is and do that myself.

Though before merge, tagging @begelundmuller for the backend review.

Comment on lines +84 to +105
/**
* Data structure for write_file tool call arguments
*/
export interface WriteFileCallData {
path: string;
contents: string;
}

/**
* Data structure for write_file tool result
*/
export interface WriteFileResultData {
diff?: string;
is_new_file?: boolean;
resources?: Array<{
kind: string;
name: string;
reconcile_status: string;
reconcile_error: string;
}>;
parse_error?: string;
}
Copy link
Contributor

Choose a reason for hiding this comment

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

@begelundmuller can we define these types in a protobuf file & generate Typescript types for the frontend to use?

Copy link
Collaborator

Choose a reason for hiding this comment

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

Lets take that as a follow up.

@AdityaHegde AdityaHegde merged commit af3dba9 into main Dec 5, 2025
12 checks passed
@AdityaHegde AdityaHegde deleted the show-diff branch December 5, 2025 11:34
@AdityaHegde
Copy link
Collaborator

Merging for now to be available for tomorrow's demo.

AdityaHegde added a commit that referenced this pull request Dec 5, 2025
* Sample show file change diffs in the AI response

add package.

Update package-lock.json

* Touch-up CSS

* Fix CI

---------

Co-authored-by: Eric P Green <ericpgreen2@gmail.com>
Co-authored-by: Aditya Hegde <adityahegderocks@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

4 participants