Diff generation and application #25

Open
opened 2026-04-07 20:24:29 +00:00 by austin · 0 comments
Owner

Implement diff creation and file modification.

  • Given the original code and the selected candidate, produce a unified diff
  • Present the diff to the user for approval
  • On approval, apply the change to the file on disk
  • Support reject (discard the change) and retry (go back to GENERATE)
  • Track applied changes in the session state for undo support

Keep this simple — unified diff format, apply with standard patching logic. No need for a custom diff algorithm.

Implement diff creation and file modification. - Given the original code and the selected candidate, produce a unified diff - Present the diff to the user for approval - On approval, apply the change to the file on disk - Support reject (discard the change) and retry (go back to GENERATE) - Track applied changes in the session state for undo support Keep this simple — unified diff format, apply with standard patching logic. No need for a custom diff algorithm.
Sign in to join this conversation.
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
austin/localcode#25
No description provided.