From 0fd78ac3214c99397c36d0b8c4ca1e4c15f4c783 Mon Sep 17 00:00:00 2001 From: iven Date: Sat, 18 Apr 2026 23:57:03 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E5=85=A8=E9=9D=A2=E5=AE=A1=E8=AE=A1?= =?UTF-8?q?=E4=BF=AE=E5=A4=8D=20=E2=80=94=20P0=20=E5=8A=9F=E8=83=BD?= =?UTF-8?q?=E7=BC=BA=E9=99=B7=20+=20P1=20=E4=BB=A3=E7=A0=81=E8=B4=A8?= =?UTF-8?q?=E9=87=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit P0 功能修复: - stats: Admin V2 仪表盘 API 路径修正 (/stats/dashboard → /admin/dashboard) - mcp: 桌面端 MCP 插件增加 isTauriRuntime() 守卫,避免浏览器模式崩溃 - admin: 侧边栏高亮逻辑修复 (startsWith → 精确匹配+子路径) P1 代码质量: - 删除 workflowBuilderStore.ts 死代码 (456行,零引用) - sqlite.rs 3 处 SQL 静默失败改为 tracing::warn! 日志 - mcp_tool_adapter 2 处 unwrap 改为安全回退 - orchestration_execute 添加 @reserved 标注 - TRUTH.md 测试数字校准 (734→803),Store 数 26→25 --- admin-v2/src/layouts/AdminLayout.tsx | 2 +- admin-v2/src/services/stats.ts | 2 +- crates/zclaw-growth/src/storage/sqlite.rs | 21 +- .../zclaw-protocols/src/mcp_tool_adapter.rs | 4 +- .../src/kernel_commands/orchestration.rs | 1 + desktop/src/main.tsx | 10 +- desktop/src/store/workflowBuilderStore.ts | 456 ------------------ docs/TRUTH.md | 4 +- 8 files changed, 27 insertions(+), 473 deletions(-) delete mode 100644 desktop/src/store/workflowBuilderStore.ts diff --git a/admin-v2/src/layouts/AdminLayout.tsx b/admin-v2/src/layouts/AdminLayout.tsx index fc0df7b..7f0b43e 100644 --- a/admin-v2/src/layouts/AdminLayout.tsx +++ b/admin-v2/src/layouts/AdminLayout.tsx @@ -117,7 +117,7 @@ function Sidebar({ const isActive = item.path === '/' ? activePath === '/' - : activePath.startsWith(item.path) + : activePath === item.path || activePath.startsWith(item.path + '/') const btn = (