Commit graph

7 commits

Author SHA1 Message Date
Nate
a3e6b9b136 chore: format 2025-09-10 21:44:11 -07:00
Patrick Erichsen
1f5389f070 updates 2025-09-09 14:14:35 -07:00
Patrick Erichsen
ebded1fc67 Add autoformatting detection for edit tools
Implement autoformatting detection similar to Cline's approach to improve reliability of edit operations. When edit tools (multiEdit/editFile) are executed, the system now captures file content before and after save operations to detect editor autoformatting changes.

Key changes:
- Add `createPrettyPatch` utility using existing `myersDiff` function
- Capture pre/post save content in `processDiff.ts`
- Add `autoFormattingDiff` field to `ApplyState` protocol
- Include autoformatting diff in tool responses with guidance for language model
- Help prevent future edit failures due to undetected formatting changes

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-09-09 11:11:04 -07:00
Nate
ee3d421db7 use getInstance() only once 2025-06-30 21:28:36 -07:00
Nate
965e5d554e add editOutcome to schema, and track streamId per file 2025-06-30 18:02:07 -07:00
Nate
6d9f566c4c Add edit outcome tracking to record accept/reject decisions for AI-generated code changes 2025-06-30 16:11:05 -07:00
Dallin Romney
a1dc1f8aa2 change to reject diffs approach rather than cancel apply approach 2025-05-29 16:04:35 -07:00