v0.12.5: Plan 自动追踪 + 待办完成确认 + 搜索/上下文质量加固

Fix:
- Plan Mode 自动追踪 — 工具执行成功后自动匹配步骤标记完成,不再依赖模型调用 plan_track
- 待办全部完成时注入正面确认信号,防止模型遗忘已完成的写入操作
- plan_track 提示词简化 — 移除冗余催促文本,进度自动更新
- 搜索自动抓取硬上限 MAX_AUTO_FETCH=8 + 相关性过滤
- 工作空间路径安全豁免 — 修复 AppData 黑名单自相矛盾
- 浏览器回退 LRU 缓存 — 同 URL 10min 内不重复渲染
- Plan Mode 任务描述固化到系统提示词 — 压缩后不丢失
- ephemeral 清理高负载时跳过 — Plan 进度在压缩时仍可见
- SearXNG 抓取条数输入框 min=1 max=8
This commit is contained in:
thzxx
2026-06-23 21:15:17 +08:00
parent d3c3bacb8d
commit 44cb5037ec
7 changed files with 88 additions and 12 deletions
+2 -1
View File
@@ -1041,7 +1041,8 @@ export function formatPlanStatus(): string {
return `${icon} 步骤${s.index}: ${s.label}`;
});
const pct = t.total > 0 ? Math.round(t.done / t.total * 100) : 0;
return `[Plan Mode 执行进度: ${t.done}/${t.total} (${pct}%)]\n${lines.join('\n')}\n\n完成每一步后请调用 plan_track(action='mark_done', step_index=N) 标记已完成。`;
const hint = t.done >= t.total ? '✅ 全部步骤已完成,请给出最终回答。' : '';
return `[Plan Mode 执行进度: ${t.done}/${t.total} (${pct}%)]\n${lines.join('\n')}${hint ? '\n\n' + hint : ''}`;
}
export function formatToolName(name: string): string {