opentiny / opentiny/tiny-editor
🐛 [Bug]: 精简内容之后再向AI提问,AI输出的内容还是上次的内容,并没有输出新问题的答案
Open
Nobody has claimed this yet.
bug
- Dominant language
- TypeScript
- Stars
- 535
- Forks
- 71
- Avg merge
- 6h 50m
- Merged PRs (30d)
- 2
Description
Step to reproduce
复现步骤:
- 本地使用 Ollama 启动
deepseek-r1:8b大模型 - main 分支执行
pnpm dev启动项目,切换到 AI 的 demo - 点击工具栏的 AI 图标,输入“帮我介绍Vue”,此时AI的回复是正确的,点击插入内容
- 选中刚刚插入的内容,点击出现的AI悬浮框,点击精简内容,此时AI还是输出刚才的内容,并没有输出精简的内容
- 再次点击工具栏的 AI 图标,换一个问题,输入“帮我介绍React”,此时AI回答的内容还是上一次介绍 Vue 的内容
What is expected
期望第二次输入“帮我介绍React”,AI应该输出React介绍的内容,而不是上一次介绍Vue的内容。
What is actually happening
实际输出介绍Vue的内容。
What is your project name
本地复现
Any additional comments (optional)
No response
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start at the AI demo flow reached via pnpm dev, the toolbar AI icon, and the floating AI prompt; trace how the first prompt is retained across the refine and next-question actions. Done means refinement uses the selected content and a later React prompt returns React content rather than the earlier Vue response. No file or test path is provided, so locate the relevant entry point before adding coverage.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- ollama, typescript
- Domain
- ai, frontend
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 38/100