From cf223fc08b3839bce92e6713bbc6dff4b71f60a0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=BB=9D=E5=B0=98?= <237809796@qq.com> Date: Sun, 28 Jun 2026 00:25:37 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D:=20.trash=20WARN=20=E9=99=8D?= =?UTF-8?q?=E7=BA=A7=20+=20ToolCard=20=E5=88=86=E7=BB=84=E6=A0=87=E9=A2=98?= =?UTF-8?q?=E5=A2=9E=E5=BC=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - .trash 跨盘迁移从 WARN 降为 DEBUG(预期行为,非异常) - ToolCard 分组标题增加文件路径摘要(取前3个文件名), 收起态也能看到影响了哪些文件 --- docs/todo.md | 8 ++++++++ src-tauri/src/state.rs | 5 +++-- src/components/ToolCardList.vue | 21 +++++++++++++++++++++ 3 files changed, 32 insertions(+), 2 deletions(-) diff --git a/docs/todo.md b/docs/todo.md index 58ccec2..6954264 100644 --- a/docs/todo.md +++ b/docs/todo.md @@ -7,6 +7,14 @@ > **2026-06-18 归档**: 已完成 `[x]` 与历史分析段已迁至 [07-项目管理/todo归档/2026-06-18.md](./07-项目管理/todo归档/2026-06-18.md)。 > **2026-06-27 归档**: 已完成 `[x]`/`✅` 项已迁至 [07-项目管理/todo归档/2026-06-27.md](./07-项目管理/todo归档/2026-06-27.md)。 +### 💡 2026-06-27 对话上下文透明化 + +> 用户看不到 AI 接收到的上下文信息(目标钉扎/enrichment/system_prompt),导致行为不可理解。 + +- [ ] **L1 目标可见**: 对话顶部显示当前 pinned_goals 列表,用户可查看/清理 +- [ ] **L2 Enrichment 可见**: @[项目] 发送前展开 enrichment 摘要 +- [ ] **L3 完整上下文**: 可展开面板查看 system_prompt / augmentations + --- ## 🎯 统一规划(2026-06-26 全景) diff --git a/src-tauri/src/state.rs b/src-tauri/src/state.rs index d725fd5..c0773cb 100644 --- a/src-tauri/src/state.rs +++ b/src-tauri/src/state.rs @@ -748,8 +748,9 @@ impl AppState { let new_trash = data_dir.join(".trash"); if old_trash.exists() && !new_trash.exists() { if let Err(e) = std::fs::rename(&old_trash, &new_trash) { - tracing::warn!( - "迁移 .trash 失败(从 {:?} 到 {:?}): {} (原目录保留,新目录将自动创建)", + // 跨盘 rename 失败(E:→C:),静默跳过,新目录自动创建 + tracing::debug!( + "迁移 .trash 跨盘失败(从 {:?} 到 {:?}): {} (原目录保留,新目录将自动创建)", old_trash, new_trash, e, ); } diff --git a/src/components/ToolCardList.vue b/src/components/ToolCardList.vue index eff3710..4878c5c 100644 --- a/src/components/ToolCardList.vue +++ b/src/components/ToolCardList.vue @@ -19,6 +19,7 @@ {{ groupDisplayName(group) }} {{ group.calls.length }} + {{ groupFileSummary(group) }} ▸