Skip to content

feat(DailyNote): unified diff format for fuzzy match failure reporting。新增日记update失败返回diff信息#310

Merged
lioensky merged 1 commit intolioensky:mainfrom
awei807-wei:feature/fuzzy-diff-unified-clean
Apr 30, 2026
Merged

feat(DailyNote): unified diff format for fuzzy match failure reporting。新增日记update失败返回diff信息#310
lioensky merged 1 commit intolioensky:mainfrom
awei807-wei:feature/fuzzy-diff-unified-clean

Conversation

@awei807-wei
Copy link
Copy Markdown
Contributor

  • Replace simple prefix/suffix diff with git-style unified diff using LCS algorithm
  • Add hunk-based context output (3-line context, merged nearby changes)
  • Add _filterFuzzyDiff helper in Plugin.js to keep fuzzyDiff responses clean
  • Add probe-based fuzzy matching with dehydration fallback
  • Add emergency fallback (anchor/keyword) for edge cases
  • Return only candidateFile + diff in fuzzyDiff (remove redundant bestMatchSegment)
  • Error response: result.fuzzyDiff, plugin_error, MaidName, timestamp only

- Replace simple prefix/suffix diff with git-style unified diff using LCS algorithm
- Add hunk-based context output (3-line context, merged nearby changes)
- Add _filterFuzzyDiff helper in Plugin.js to keep fuzzyDiff responses clean
- Add probe-based fuzzy matching with dehydration fallback
- Add emergency fallback (anchor/keyword) for edge cases
- Return only candidateFile + diff in fuzzyDiff (remove redundant bestMatchSegment)
- Error response: result.fuzzyDiff, plugin_error, MaidName, timestamp only
@lioensky lioensky merged commit ea0c1b8 into lioensky:main Apr 30, 2026
1 check failed
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