docs(wiki): 追加 agentStore stale client 修复日志
Some checks are pending
CI / Lint & TypeCheck (push) Waiting to run
CI / Unit Tests (push) Waiting to run
CI / Build Frontend (push) Waiting to run
CI / Rust Check (push) Waiting to run
CI / Security Scan (push) Waiting to run
CI / E2E Tests (push) Blocked by required conditions
Some checks are pending
CI / Lint & TypeCheck (push) Waiting to run
CI / Unit Tests (push) Waiting to run
CI / Build Frontend (push) Waiting to run
CI / Rust Check (push) Waiting to run
CI / Security Scan (push) Waiting to run
CI / E2E Tests (push) Blocked by required conditions
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user