fix: 0.2.0 system prompt修复 + patch89 + override状态机 + 提示词优化

- core.js: isKeepableUserOverride重排序, markOverrideCustomized不写hash(explicitSave), commitOverrideOnApply读盘, patch89 SYSTEM_FIELD_EXTRACT
- index.js: system_field_extracted状态字段(status/apply/override端点)
- default-prompt-inject.en.md: 优化英文版提示词
- default-prompt-inject.zh.md: 优化中文版提示词
- docs/修改文档.md: 完整修改文档+还原说明
- pi-ai anthropic-messages.js: system从顶层字段改为messages里role:system消息
This commit is contained in:
叫我小杨同学 committed 2026-10-13 16:36:15 +08:00
1 parent 6c1d638d1b
commit e1d8e59087
24 files changed
+3353 -1198

No files matched your search

+6 -2
View File
@@ -53,7 +53,7 @@ export function normalizeConfig(raw = {}) {
return {
autoRetry: src.autoRetry !== false && retryMax > 0,
retryMax,
autoContinue: src.autoContinue !== false && continueMax > 0,
autoContinue: src.autoContinue === true && continueMax > 0,
continueMax,
continueText: text || DEFAULT_CONTINUE_RETRY.continueText,
};
@@ -75,7 +75,11 @@ export function loadSettings(dshHome) {
}
export function mergeConfig(pluginCfg, saved) {
return normalizeConfig({ ...DEFAULT_CONTINUE_RETRY, ...pluginCfg, ...saved });
const merged = { ...DEFAULT_CONTINUE_RETRY, ...pluginCfg, ...saved };
if (pluginCfg?.autoContinue !== true && DEFAULT_CONTINUE_RETRY.autoContinue !== true) {
merged.autoContinue = false;
}
return normalizeConfig(merged);
}
export function lastTurnEnd(events) {