anomalyco / anomalyco/opencode
改动AI写的代码后,后续AI会将其恢复
Open
@rekram1-node is already working on this.
Since Sep 12, 2026.
- Dominant language
- TypeScript
- Stars
- 209k
- Forks
- 27.5k
- PR merge metrics
- PR metrics pending
Description
Description
我给AI提了需求,它写了代码,我在检查代码的时候,顺手对一部分内容进行了微调,接着我再继续和AI提需求让它写其他部分,它完成后我检查代码,发现我之前手动微调的部分被它恢复到之前它写的样子了。也就是说我后来手动修改的部分完全消失了!这种情况经常出现,我问了deepseek,它说是opencode的bug, OpenCode 的“文件时间戳检查(FileTime)机制”存在缺陷,我使用的模型是官方的 deepseek v4.1 flash。如果是opencode的bug,希望能尽快修复,这个问题真的很令人困扰!
Plugins
No response
OpenCode version
1.18.30 Desktop
Steps to reproduce
No response
Screenshot and/or share link
No response
Operating System
Windows10
Terminal
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.
Assessment
This issue has not been assessed yet.