fix: 全面修复内置工具问题 + 架构缺陷修复 (v0.14.8)
P0: replace_in_files glob重写, search_files正则修复, list_directory递归分页修复, git stash/tag参数修复, buildSearchResponse query字段修复; P1: compress命令注入修复, run_command输出限制, download_file UA+重试; P2: web_fetch extract_mode/mobile_ua生效, read_multiple_files默认值对齐, CONFIRM_TOOLS扩展, 工具图标/名称映射补全; P3: random死代码清理, IPC类型补全; 架构: 系统提示词重复渲染修复, 版本号动态注入, 上下文余量字段修复, 工具记录丢失修复
This commit is contained in:
@@ -31,6 +31,7 @@ import { initLogPanel, addLog } from './services/log-service.js';
|
||||
import { logInfo, logSuccess, logError, logDebug, logInit, logWarn } from './services/log-service.js';
|
||||
import { initSearxngModal, closeSearxngModal, loadSearxngConfig } from './components/searxng-modal.js';
|
||||
import { initHarnessHooks } from './services/hooks.js';
|
||||
import { setAppVersion } from './services/agent-metrics.js';
|
||||
import type { ChatSession } from './types.js';
|
||||
|
||||
// ─── v4.0 数据迁移:IndexedDB → SQLite ───
|
||||
@@ -355,6 +356,14 @@ async function init(): Promise<void> {
|
||||
// Agent Metrics 无需显式初始化(按需启动)
|
||||
// Context Indexer 在 Agent INIT 状态按需构建
|
||||
|
||||
// ── 注入应用版本号到 Agent Metrics ──
|
||||
const _bridge = window.metonaDesktop;
|
||||
if (_bridge?.info) {
|
||||
_bridge.info().then((info: { version?: string }) => {
|
||||
if (info?.version) setAppVersion(info.version);
|
||||
}).catch(() => {});
|
||||
}
|
||||
|
||||
logInit('所有组件已就绪(含 Harness)');
|
||||
|
||||
const savedModel = await db.getSetting('selectedModel', '');
|
||||
|
||||
Reference in New Issue
Block a user