* feat: add Mercury Apply endpoint support to Inception LLM
* refactor: begin to clean up the apply / streamDiff code
* fix: undo commenting out of instant apply
* fix: use underlyingProviderName
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>
Complete the dev data schema standardization by fixing remaining
references to modelTitle in the VS Code extension:
- VsCodeMessenger.ts: Update editInteraction logging to use modelName
- vertical/manager.ts: Update edit tracking to use modelName
- EditOutcomeTracker.ts: Update interface and logging to use modelName
- QuickEditQuickPick.ts: Fix misleading variable name for consistency
All dev data schemas now consistently use modelName instead of
modelTitle across the entire codebase.
🤖 Generated with [Claude Code](https://claude.ai/code)
Co-Authored-By: Claude <noreply@anthropic.com>
• Add editOutcome.jsonl logging for Agent Mode accept / rejects
• Capture original file content before applying changes to enable proper diff tracking
• Fix newline handling in IntelliJ and VS Code to prevent line count discrepancies, was causing lineChange count to be off by one
myersDiff inherits the jsdiff behavior for trailing \n, so would
consider "foo\n" => "foo" a changed single line, rather than a change
from "foo", "" to "foo" - this would result in a trailing blank line
in the highlighted region silently vanishing from the buffer.
Adding \n to the inputs so that lines are \n terminated rather than
separated fixes this.
To make myersDiff logically consistent, pass ignoreNewlineAtEof: true
to jsdiff. (This is actually not needed for this bug fix.)
There was code of unclear purpose that bailed out early when
totalDeletedContent == "" - but "" could either be
[].join("\n")
or:
[""].join("\n")
in the latter case, we *do* need to a deletion block. Since the
deletionBuffer.length == 0 case is otherwise handled, the code
is removed as unnecessary and harmful.