fix(thread-chat): 恢复划选分叉首问引用并保留编辑引用 - #92
Merged
Merged
Conversation
移植 9cc61ea 的引用修复,适配 main 的 parts 命令和 thread-quote-v1 结构。
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
Important
This repository does not receive automatic reviews because it has fewer than 10 stars. ⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Team Run ID: Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
17 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
划选后先创建空 Thread、稍后再发送首问时,用户消息没有保存引用 part,导致气泡内的背景引用块缺失;纯文本编辑/重试也会丢失已有引用。
本 PR 单独移植 #84 中的引用修复 commit
9cc61eac421f93f1baff79a8fd0e33a4b1e2c79f,基于main@9277d919ed25ac24d7ac3c7735d7f78643a3bd56适配。main 已合入统一 cache,命令已改为 parts,带首问分叉也已生成 V1 Quote,因此没有直接套用旧补丁。改动:
验证通过:
验证限制:新增 e2e/thread-chat/fork-quote-db.test.mjs 使用当前 parts 契约,覆盖真实保存、读取、编辑和两条分叉入口;当前环境没有数据库连接,未执行。未进行浏览器或真实模型端到端验收。
范围:不包含 #84 的“AI 消息直接开启无引用分叉”入口及数据库约束修改;不改数据库结构、drizzle/、System Prompt 或 cache 逻辑;历史缺失引用的消息不自动回填。