From 17a7a3660818d7d6333dc2481992560578f28d1d Mon Sep 17 00:00:00 2001 From: iven Date: Thu, 23 Apr 2026 00:07:52 +0800 Subject: [PATCH] =?UTF-8?q?docs(wiki):=20=E8=BF=BD=E5=8A=A0=20agentStore?= =?UTF-8?q?=20stale=20client=20=E4=BF=AE=E5=A4=8D=E6=97=A5=E5=BF=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- wiki/log.md | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/wiki/log.md b/wiki/log.md index ae3e824..d3b57d0 100644 --- a/wiki/log.md +++ b/wiki/log.md @@ -9,6 +9,11 @@ tags: [log, history] > Append-only 操作记录。格式: `## [日期] 类型 | 描述` +## [2026-04-22] fix | agentStore stale client — getClient() 直接读 connectionStore +- **fix(desktop)**: agentStore `_client` 模块缓存导致 Tauri 模式下持有旧 GatewayClient 引用 +- **根因**: `initializeStores()` 被 `_storesInitialized` 守卫阻止二次注入,KernelClient 替换后 agentStore 仍用旧引用 +- **修复**: `getClient()` 改为直接读 `connectionStore.getState().client`,去掉本地缓存 + ## [2026-04-22] fix | Agent tab 数据不同步 — role映射+userProfile双通道+称呼方式 - **fix(desktop)**: updateClone role→description 字段映射修复 (kernel-agent.ts:176) - **fix(desktop)**: listClones 新增 agent_get + identity_get_file 双通道获取 userName/userRole