v0.16.8: Agent Loop P0-P3 修复 + 死代码清理 + 版本号升级
- P0: executeToolWithTimeout 重写为 Promise.race,实现真正超时中断 - P1 #2: R8 紧急压缩限制最多 2 次,防止溢出→压缩→重试无限循环 - P1 #3: 新增 snapshotSafetyState/restoreSafetyState,Sub-Agent 在隔离环境中运行 - P1 #4: persistLoopContext 中止时持久化 TERMINATED 状态 - P1 #5: Completion Gate 失败时注入纠正提示并重试(最多 1 次) - P2 #6: executeSingleTool 重试逻辑兜底返回完善 - P2 #7: 压缩阈值提高(0.3→0.5, 0.8→0.85)+ compressedThisCycle 防同轮重复压缩 - P2 #8: 路径依赖检查优先于 ALWAYS_PARALLEL,防止读写同路径被错误并行 - P2 #9: R105 消息年龄追踪改为内容哈希 key(后被确认为死代码并清理) - P3 #11: ctx_tokens 统一语义为 prompt_eval_count - P3 #12: 自动记忆提取捕获 signal 引用,避免竞态 - P3 #13: verifyToolResult 返回警告字符串供 Completion Gate 使用 - 注入消毒增强:零宽字符移除、全角→半角、新增覆盖模式 - 死代码清理:R105 上下文年龄追踪系列函数(无任何调用点) - 版本号 0.16.7 → 0.16.8(package.json/lock, menu.ts, index.html, README.md)
This commit is contained in:
@@ -14,7 +14,7 @@
|
||||
</p>
|
||||
|
||||
<p align="center">
|
||||
<img src="https://img.shields.io/badge/version-v0.16.7-E8734A?style=flat-square" alt="version">
|
||||
<img src="https://img.shields.io/badge/version-v0.16.8-E8734A?style=flat-square" alt="version">
|
||||
<img src="https://img.shields.io/badge/electron-33+-47848F?style=flat-square&logo=electron" alt="electron">
|
||||
<img src="https://img.shields.io/badge/typescript-5.7+-3178C6?style=flat-square&logo=typescript" alt="typescript">
|
||||
<img src="https://img.shields.io/badge/license-MIT-green?style=flat-square" alt="license">
|
||||
@@ -253,7 +253,7 @@ npm start
|
||||
ELECTRON_MIRROR=https://npmmirror.com/mirrors/electron/ npm run dist
|
||||
```
|
||||
|
||||
产出:`release/Metona Ollama Setup v0.16.7.exe`
|
||||
产出:`release/Metona Ollama Setup v0.16.8.exe`
|
||||
|
||||
## 🛠️ 常用命令
|
||||
|
||||
@@ -501,7 +501,7 @@ npm start
|
||||
ELECTRON_MIRROR=https://npmmirror.com/mirrors/electron/ npm run dist
|
||||
```
|
||||
|
||||
Output: `release/Metona Ollama Setup v0.16.7.exe`
|
||||
Output: `release/Metona Ollama Setup v0.16.8.exe`
|
||||
|
||||
## 🛠️ Common Commands
|
||||
|
||||
|
||||
Reference in New Issue
Block a user