Repository navigation
提示词:快捷追问的旧默认也换成新版;新增官方提示词文档 - #480
Merged
Merged
Conversation
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 总结要求已有规则:存着的值和某个旧版默认值一字不差时读成今天的默认值。快捷追问没加入这条规则,没改过的人升级后还是旧列表(比如「生成带时间轴的笔记」)。
现在快捷追问也走这条规则,按整个列表比,条目和顺序都一样才算没改过。旧列表取自各发版标签:v1.1.x 的 3 条、v1.2–v1.4 的 6 条、v2.0–v3.6.1 的 4 条。网页的列表从 v3.7.0 出现后没变过,旧列表为空。多一条、少一条、换顺序都算改过,保持不变。
改过提示词的人仍然用不上新默认,所以新增 docs/OFFICIAL_PROMPTS.md 列出视频和网页两套默认值供复制,README「更多」里加了链接。自检要求这份文档和 settings.js 逐字一致。
验证:
node scripts/selftest.mjs50 项全过。在临时的无头 Chrome 里加载扩展,往 storage.sync 写入 v3.6 的旧列表:main 上 get-settings 和设置页文本框都是旧列表,这个分支上都是今天的默认;旧列表加一条自己的,两边都保持不变。