feat: 发布 1.1.15

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
叫我小杨同学andCursor committed 2026-09-24 09:23:05 +08:00
1 parent d4a0bb572f
commit 111427b198
8 files changed
+59 -35

No files matched your search

+3 -2
View File
@@ -268,8 +268,9 @@ export function rewritePromptAssembly(assembled, fallbackInject = "", options =
const injectText = collectInjectText(purge, opts.fallbackInject);
// #29: 不要把上一条 system/message 全文钉回 sections。
// 「历史里已有完整注入就不再折一份」由 foldInjectIntoPersona 的 includes 幂等满足。
const folded = foldInjectIntoPersona(rest, injectText);
// 默认留下 dsh-purge 段。0.1.5 在 waterfall 之后若 complete:true,只认这段把注入抄进最终提示词;
// 提前折进 persona 再删掉本段,重启加载该逻辑后注入会丢。
const folded = opts.dropPurgeAfterFold ? foldInjectIntoPersona(rest, injectText) : rest;
const extras = opts.dropPurgeAfterFold
? purge.filter((section) => section.name !== "dsh-purge")
: purge;