Skip to content

[diffs] Edit Completion Handling - #1089

Draft
amadeus wants to merge 50 commits into
amadeus/external-edit-hardeningfrom
amadeus/edit-complete-handler
Draft

[diffs] Edit Completion Handling#1089
amadeus wants to merge 50 commits into
amadeus/external-edit-hardeningfrom
amadeus/edit-complete-handler

Conversation

@amadeus

@amadeus amadeus commented Aug 20, 2026

Copy link
Copy Markdown
Member

Adds edit completion handlers to components so a dev can accept or reject the edits easily.

Also reworks how line annotations are managed during an edit session, making them far less brittle.

@vercel

vercel Bot commented Aug 20, 2026

Copy link
Copy Markdown

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

Project Deployment Actions Updated (UTC)
pierre-diffshub Ready Ready Preview Aug 21, 2026 2:15am
pierre-docs-diffs Ready Ready Preview Aug 21, 2026 2:15am
pierre-docs-trees Ready Ready Preview Aug 21, 2026 2:15am
pierrejs-diff-demo Ready Ready Preview Aug 21, 2026 2:15am

Request Review

* upgrade to bun 1.4.0

* dedupe
amadeus added 25 commits August 20, 2026 19:13
Realized as we were working through this, that annotations need to also
be sesssion own.  This had a huge benefit of actually simplifying a lot
of the APIs around managing how annotations are moved during an edit
session, and should tie in nicely at the end when we manage the
commit/revert API for `onEditComplete`.
There was a nasty bug with server rendered code where adjusting url
params would re-load the page and force new content to flush whatever
edits you were making...
Also ensure it understands the various types of teardowns
Simplified accept/reject into returned string literals. This is much
simpler and more ergo, and helps prevent users cloning and doing dumb shit
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