diff --git a/wiki/chat.md b/wiki/chat.md index 91159b1..35e0a9c 100644 --- a/wiki/chat.md +++ b/wiki/chat.md @@ -127,6 +127,7 @@ UI 选择模型 → conversationStore.currentModel = newModel | 日期 | 变更 | |------|------| +| 04-23 | 身份信号: detectAgentNameSuggestion 前端即时检测 + RightPanel 监听 Tauri 事件刷新名称 | | 04-22 | Wiki 重写: 5 节模板,增加集成契约和不变量 | | 04-21 | 上一轮更新 | | 04-17 | ChatStore 拆分为 5 Store (stream/conversation/message/chat/artifact) | diff --git a/wiki/log.md b/wiki/log.md index d3b57d0..b6bbb24 100644 --- a/wiki/log.md +++ b/wiki/log.md @@ -9,6 +9,13 @@ tags: [log, history] > Append-only 操作记录。格式: `## [日期] 类型 | 描述` +## [2026-04-23] fix | 身份信号提取与持久化 — 对话中起名跨会话记忆+面板刷新 +- **fix(zclaw-growth)**: ProfileSignals 增加 agent_name/user_name 字段 + 提取提示词扩展 + 解析器+回退逻辑 +- **fix(zclaw-runtime)**: 身份信号存入 VikingStorage (importance=8) +- **fix(src-tauri)**: post_conversation_hook 身份写回 soul.md + emit `zclaw:agent-identity-updated` Tauri 事件 +- **fix(desktop)**: 双通道更新 — 前端规则检测 `detectAgentNameSuggestion` 即时改名 + Rust 事件驱动 RightPanel 刷新 +- **验证**: cargo check 0 error/0 warning, tsc --noEmit 0 error + ## [2026-04-22] fix | agentStore stale client — getClient() 直接读 connectionStore - **fix(desktop)**: agentStore `_client` 模块缓存导致 Tauri 模式下持有旧 GatewayClient 引用 - **根因**: `initializeStores()` 被 `_storesInitialized` 守卫阻止二次注入,KernelClient 替换后 agentStore 仍用旧引用 diff --git a/wiki/memory.md b/wiki/memory.md index 3c8b7eb..78557fd 100644 --- a/wiki/memory.md +++ b/wiki/memory.md @@ -43,9 +43,10 @@ tags: [module, memory, fts5, growth] ``` [提取] 对话完成 → MemoryMiddleware.after_completion → MemoryExtractor.extract_combined() → LLM 单次调用 - → CombinedExtraction { memories, experiences, profile_signals } + → CombinedExtraction { memories, experiences, profile_signals (含 agent_name/user_name) } → VikingAdapter → SqliteStorage → memories.db (FTS5 索引) → UserProfileStore → data.db (结构化画像) + → [身份信号] identity/* → VikingStorage → post_conversation_hook → soul.md + Tauri event [检索] 新请求 → MemoryMiddleware.before_completion → MemoryRetriever.retrieve(agent_id, user_input) @@ -132,6 +133,7 @@ tags: [module, memory, fts5, growth] | 日期 | 变更 | 关联 | |------|------|------| +| 2026-04-23 | 身份信号提取: ProfileSignals+agent_name/user_name + VikingStorage identity 存储 + soul.md 写回 | commit 08812e5+e64a3ea | | 2026-04-22 | 跨会话记忆断裂修复: profile_store 连接 + 双数据库统一 + 诊断日志 | commit adf0251 | | 2026-04-22 | Wiki 5-section 重构: 363→~190 行,详细逻辑归档 | wiki/ | | 2026-04-21 | Embedding 接通 + 自学习自动化 A线+B线 (SemanticScorer + EvolutionMiddleware) | 934 tests PASS |