Skip to content

feat(app): add git diff references to chat#218

Open
ipanasenko wants to merge 4 commits intogetpaseo:mainfrom
ipanasenko:git-diff-add-to-chat
Open

feat(app): add git diff references to chat#218
ipanasenko wants to merge 4 commits intogetpaseo:mainfrom
ipanasenko:git-diff-add-to-chat

Conversation

@ipanasenko
Copy link
Copy Markdown
Contributor

@ipanasenko ipanasenko commented Apr 7, 2026

Adds new buttons in diff view to add files and ranges references to the last active chat.
Inspired by the same feature in Warp

  • Clicking on a paperclip near file name adds file name
  • Clicking inside diff adds file name with a range
  • When chat is not in focus - swithes to the latest active tab with chat, or creates a new chat tab
  • Works in both unified and split view
  • Works on mobile (checked using Chrome device emulator)
image

image image

Summary

  • add file and hunk references from the Changes diff into the active chat composer or a new draft chat
  • support unified and split diff reference targeting with shared reference-building utilities and tests
  • refactor diff rendering and composer insertion helpers, including follow-up hover/scroll performance fixes for the paperclip gutter

This PR is not small, sorry about that.
I tried to make it smaller, but it was better to move some things around to reduce code duplication and improve organisation.

Hope this will be useful 🤞

# Conflicts:
#	packages/app/src/components/git-diff-pane.tsx
@ipanasenko ipanasenko marked this pull request as ready for review April 7, 2026 20:22
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