[bug] AI edit太倾向于修改全篇

Open
#1,328 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
30/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Active
Domain
ai, frontend

Research direction

The report leaves open whether the AI edit tool rewrites the whole note or the diff renderer shows unchanged text as changed, so start by reproducing with a long note and a small AI edit, then check the logs to see what the edit tool actually wrote. Once that is known, the fix is either in the diff rendering or in how the edit tool builds its changes. Done means a small edit to part of a note shows only the changed lines in the diff view.

Written by the indexing model from the issue text.

Description

bug
详细描述这个 Bug

使用AI辅助编辑时,即便编辑的内容只是笔记的一部分,在差异diff渲染器中都表现为全篇渲染 实际上前文没有变化
图示:渲染器的删除部分从头开始
Image

图示:渲染器的新增从头到尾,实际上只有下图的内容有实际变化
Image

由于没有通过log判断是渲染器问题还是AI实际操作了edit改了全文,需要进一步排查,也需要进一步排查edit tool的设定
附:尝试向AI发送提示词限制其不要编辑全文,无果
AI大模型提供商使用内置NoteGen AI(免费)

NoteGen 版本

0.39.2

操作系统

macOS

报错日志

No response

Dominant language
TypeScript
Stars
12.9k
Forks
975
Avg merge
20h 27m
Merged PRs (30d)
1

Getting set up

This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from codexu/note-gen

All issues in codexu/note-gen

Similar issues

More TypeScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.