Repository navigation
Conversation
# Conflicts: # docs/ref-alignment-progress.md
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
目标与变更范围
把窗口级 KV 存储按本地 ref 的 revision 模型对齐,保证每个窗口共用一个状态源,并防止并发读写和事件通知乱序。保留 legacy UI 及其旧事件适配。
非目标:不迁移持久化格式,不移除旧消费者,不改网络、Service、TUN 或权限行为。
基线及 ref 对齐记录
6317cad35bfd94c4257bc3b0a172f331bc924853(已包含 PR feat(traffic): align Flow topology with ref Sankey #533)。03ab6e5824cb44e527bde7cca28b699e8bf3a766,工作区干净;本 PR 将 Chimera 的 ref gitlink 更新到该 SHA。backend/tauri/src/core/storage.rs的 revision、事件和 lag resync 模型,以及ipc.rs的读/写/删命令,对齐到 Chimera 同路径;reffrontend/query/src/provider/{kv-storage-state.ts,kv-storage-provider.tsx}和hooks/use-kv-storage.ts对齐到 Chimerafrontend/interface/src/provider/与同名 hook。getStorageItem返回形状及 legacy 消费端。没有复制 ref 的 HTTP SSE 服务端,因为 Chimera 没有对应事件总线。Agent 当前没有 KV hook 消费端。用户入口及业务调用链
Main Dashboard 和 legacy UI 共用 RootProvider 的 per-window 状态与
useKvStorage,经 Tauri IPC 进入同一 Rust Storage/Redb 实例;提交事件带单调 revision,消费者遇到广播 lag 时重读快照。Agent 当前没有 KV hook 使用入口。风险等级与回滚
实际验证(精确到当前 head)
当前 head:
944b24f21751c664bf50e645bbf754c8ca2909c3,基线为 master6317cad35bfd94c4257bc3b0a172f331bc924853。新增修复提交7f62f261251cbd42ef97354e44899c9417f4c1cb与基线同步提交均由 GitHub 标记为 verified。pnpm --filter chimera-ui test:dashboard-widget-configpnpm typecheck:chimera、E2E typecheck、pnpm lint:frontend-boundaries、受影响 TS Oxlint、Prettier、Tauri crate rustfmt、git diff --checkremoving_a_namespaced_value_also_removes_its_legacy_fallback1/1;ipc::tests16/16 通过pnpm typecheck:chimera、pnpm lint:clippy、rustfmt、Oxlint 和 Prettier 全通过7f62f261独立 Reviewer
独立复核已检查 ref 映射、事件适配、fallback allowlist、原子删除、内部键保护及测试注册;当前差异未发现 P0–P2 阻塞。已记录的限制:
clear_storage仍是既有的快照加逐键删除流程,并非并发原子清空。合并门禁
必需多平台 CI 与 Desktop E2E 必须针对当前 head
944b24f21751c664bf50e645bbf754c8ca2909c3通过后再合并;当前两组工作流仍 pending。