fix: 发布 1.1.17,修复 settings 重复补丁与工作区免责跳过

Co-authored-by: Cursor <cursoragent@cursor.com>

#42 不再叠写 legacyApplyPath,避免 dsh-settings 崩溃;#1/#2 兼容 WORKSPACE 与 AGENT 常量;加强反软拒与 rules 段。
This commit is contained in:
叫我小杨同学andCursor committed 2026-09-24 20:38:37 +08:00
1 parent 97c8824dff
commit ec6ef45286
6 files changed
+191 -45

No files matched your search

+6
View File
@@ -181,6 +181,12 @@ export function registerPromptSections(ctx, config, _injectFile) {
},
});
ctx.systemPrompt.section({
name: "dsh-purge:rules",
order: GLOBAL_PROMPT_ORDER + 10,
text: () => (injectAllowedNow(config) ? core.ALLOW_EXEC_CORE : ""),
});
const postPrompt = typeof config.postPrompt === "string" ? config.postPrompt.trim() : "";
if (!postPrompt) return;
if (!Number.isFinite(config.postPromptOrder) || config.postPromptOrder <= GLOBAL_PROMPT_ORDER) {