feat(thread-chat): 从 AI 回复直接开启无引用分叉聊天 - #84
Draft
hifizz wants to merge 2 commits into
Draft
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
Important Draft PR not reviewedDraft PRs are not automatically reviewed by default.
To automatically review draft PRs, update your CodeRabbit configuration: reviews:
auto_review:
drafts: trueThanks 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 |
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.
当前创建分支接口及数据库约束都强制要求选区锚点,用户必须先划选文本才能分叉。本改动允许从已完成的 AI 回复直接创建新 Thread。
改动行为:
验证:
发布前置条件:
此 PR 保持草稿。threads_root_or_fork_shape 必须允许两个引用字段同时为空。遵循 CLAUDE.md 的迁移规则,本功能分支仅修改 schema 源码,未生成或改动 drizzle/。需要先在 develop 集成任务中生成迁移、验证旧数据库升级并运行 pnpm test:thread-chat:gate1-db,再发布入口;当前分支不能直接作为可发布版本。
行为与交接说明见 docs/message-fork-without-quote.md。
基于 main @ ae4dded。
追加修复:恢复划选分叉首条用户消息的背景引用块。