opentiny / opentiny/tiny-editor

🐛 [Bug]: 精简内容之后再向AI提问,AI输出的内容还是上次的内容,并没有输出新问题的答案

Open
#304 0 comments 0 reactions 0 assignees View on GitHub

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

Open the contributing guide

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.

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.