thzxx closed issue MetonaTeam/metona-ai-desktop#32 2026-07-22 09:43:10 +08:00
[P1/高] MemoryManager store INSERT OR REPLACE 永远不 REPLACE,更新语义丢失
thzxx commented on issue MetonaTeam/metona-ai-desktop#32 2026-07-22 09:43:09 +08:00
[P1/高] MemoryManager store INSERT OR REPLACE 永远不 REPLACE,更新语义丢失

修复说明

文件: electron/harness/memory/manager.ts

修复: store 方法中 semantic 和 working 的 INSERT OR REPLACE,当 summary 未提供时改用 contentHash(content) 作为 key(而非新生成的…

thzxx closed issue MetonaTeam/metona-ai-desktop#31 2026-07-22 09:43:08 +08:00
[P1/高] estimateTokens 忽略 tool.parameters,token 估算严重偏低
thzxx commented on issue MetonaTeam/metona-ai-desktop#31 2026-07-22 09:43:08 +08:00
[P1/高] estimateTokens 忽略 tool.parameters,token 估算严重偏低

修复说明

文件: electron/harness/prompts/context-builder.ts

修复: estimateTokens 在工具定义循环中补充 tool.parameters(JSON Schema)的 token 估算。之前仅累加 name + description

thzxx closed issue MetonaTeam/metona-ai-desktop#30 2026-07-22 09:43:07 +08:00
[P1/高] compressMessages 用 user 角色注入摘要,导致语义混淆
thzxx closed issue MetonaTeam/metona-ai-desktop#29 2026-07-22 09:43:06 +08:00
[P1/高] Agent Engine waitForAbort 总是返回 true,无法检测实际 abort 完成状态
thzxx commented on issue MetonaTeam/metona-ai-desktop#30 2026-07-22 09:43:06 +08:00
[P1/高] compressMessages 用 user 角色注入摘要,导致语义混淆

修复说明

文件: electron/harness/agent-loop/engine.ts

修复: compressMessages 改用 assistant 角色注入摘要。

设计决策: 工单推荐的 system 角色会破坏现有 CE-1 修复——`buildOpenA…

thzxx commented on issue MetonaTeam/metona-ai-desktop#29 2026-07-22 09:43:05 +08:00
[P1/高] Agent Engine waitForAbort 总是返回 true,无法检测实际 abort 完成状态

修复说明

文件: electron/harness/agent-loop/engine.ts

修复: 原实现 Promise.race 永不抛错(currentRunPromise.catch(() => {}) 已吞异常),try/catch 形同虚设,总是返回 true。改用…

thzxx commented on issue MetonaTeam/metona-ai-desktop#28 2026-07-22 09:43:04 +08:00
[P1/高] Agnes Adapter 多模态索引映射在 system 消息存在时错位

修复说明

文件: electron/harness/adapters/agnes-ai.adapter.ts

结论: 工单描述的问题不存在(误报)。

当前代码不使用工单描述的 multimodalIndex 数组,而是使用 inline image_url

thzxx closed issue MetonaTeam/metona-ai-desktop#28 2026-07-22 09:43:04 +08:00
[P1/高] Agnes Adapter 多模态索引映射在 system 消息存在时错位
thzxx closed issue MetonaTeam/metona-ai-desktop#27 2026-07-22 09:43:03 +08:00
[P1/高] DeepSeek Adapter 静默丢弃 images 字段,多模态输入完全不可用
thzxx commented on issue MetonaTeam/metona-ai-desktop#27 2026-07-22 09:43:02 +08:00
[P1/高] DeepSeek Adapter 静默丢弃 images 字段,多模态输入完全不可用

修复说明

文件: electron/harness/adapters/shared/openai-format.ts

修复: buildOpenAICompatibleMessages 中为 user 消息添加 images 处理,构造 OpenAI 多模态 content 数组(text +…

thzxx closed issue MetonaTeam/metona-ai-desktop#26 2026-07-22 09:43:02 +08:00
[P1/高] openai-format tool 消息 content 可能被赋为 undefined,导致 API 400
thzxx commented on issue MetonaTeam/metona-ai-desktop#26 2026-07-22 09:43:01 +08:00
[P1/高] openai-format tool 消息 content 可能被赋为 undefined,导致 API 400

修复说明

文件: electron/harness/adapters/shared/openai-format.ts

修复: tool 消息 content 赋值后增加 if (msg.content === undefined) msg.content = '' 检查。`JSON.stringify(undefined)…

thzxx closed issue MetonaTeam/metona-ai-desktop#25 2026-07-22 09:43:00 +08:00
[P1/高] sse-stream flushToolCallBuffer 静默丢弃 JSON 解析失败的工具调用
thzxx commented on issue MetonaTeam/metona-ai-desktop#25 2026-07-22 09:42:59 +08:00
[P1/高] sse-stream flushToolCallBuffer 静默丢弃 JSON 解析失败的工具调用

修复说明

文件: electron/harness/adapters/shared/sse-stream.ts

修复: flushToolCallBuffer 的 catch 块不再静默丢弃,改为 log.warn 记录日志 + yield ERROR 事件(`MetonaErrorCode.PARSE…

thzxx closed issue MetonaTeam/metona-ai-desktop#24 2026-07-22 09:42:59 +08:00
[P1/高] BaseAdapter getFetchSignal 每次新建 timer 未清理,导致 timer 泄漏
thzxx commented on issue MetonaTeam/metona-ai-desktop#24 2026-07-22 09:42:58 +08:00
[P1/高] BaseAdapter getFetchSignal 每次新建 timer 未清理,导致 timer 泄漏

修复说明

文件: electron/harness/adapters/base-adapter.ts + 4 个 Adapter

修复: 新增 fetchWithTimeout 方法(setTimeout + finally clearTimeout),确保请求完成后立即清理 timer。修…

thzxx commented on issue MetonaTeam/metona-ai-desktop#23 2026-07-22 09:42:57 +08:00
[P1/高] BaseAdapter mapError 字符串匹配 401/429,会误匹配 URL 中的数字

修复说明

文件: electron/harness/adapters/base-adapter.ts

修复: mapError 优先读取 error.status(throwHttpError 已设置)判断 401/429,移除 msg.includes('401')/msg.includes('429')

thzxx closed issue MetonaTeam/metona-ai-desktop#23 2026-07-22 09:42:57 +08:00
[P1/高] BaseAdapter mapError 字符串匹配 401/429,会误匹配 URL 中的数字