refactor: 重写 useChat 为组合根,消除上帝 Hook

将 1290 行的 useChat 重写为 360 行组合根:handleServerMessage 从 462 行降为 80 行纯路由分发(Tier1 调度器→Tier2 子智能体→Tier3 主视图),消除组合根层 5 个跨域 ref 同步 effect。UseChatReturn 接口零变更,App.tsx 无需改动。对抗式审查修复 1 个 Critical 项(todo_write 自动刷新的 topic_id 检查)。
This commit is contained in:
oudecheng 2026-07-08 11:28:51 +08:00
parent f3e3ebf55f
commit 7c578af0bc

File diff suppressed because it is too large Load Diff