mirror of
https://github.com/YuJunZhiXue/dsh-purge.git
synced 2026-11-28 10:00:22 +08:00
fix: 测试版同步系统提示词只注入一次,并写清 1.1.11 变更
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
1 parent
a9fc371898
commit
d2578b79c3
5 files changed
+60
-7
No files matched your search
+2
-1
@@ -223,7 +223,7 @@ function installIdentityOverride(ctx, config = {}) {
|
||||
if (typeof ctx.on !== "function") return;
|
||||
if (ctx.__dshPurgeAssembleHook) return;
|
||||
ctx.__dshPurgeAssembleHook = true;
|
||||
const hook = async (_assembly, _context, next) => {
|
||||
const hook = async (_assembly, context, next) => {
|
||||
const assembled = typeof next === "function" ? await next() : _assembly;
|
||||
const enabled = config.enabled !== false;
|
||||
const inject = enabled ? readInjectFallback() : "";
|
||||
@@ -231,6 +231,7 @@ function installIdentityOverride(ctx, config = {}) {
|
||||
fallbackInject: inject,
|
||||
dropMnemon: config.stripMnemon !== false,
|
||||
dropPurgeAfterFold: true,
|
||||
context,
|
||||
});
|
||||
};
|
||||
// 只挂一次:挂多次会让同一轮 assemble 折两遍,UI 也会显示两次注入。
|
||||
|
||||
Reference in new issue
Block a user