重构+修复: ARC-06 composables/ai 循环依赖破环 + B-34 多选审批 select_type 回归

- ARC-06: 提 aiShared.ts 下沉 nextMsgId+_msgCounter(叶子模块),useAiEvents/useAiStream/useAiSend/useAiWindow import 源改 aiShared,useAiStream 不再 import useAiEvents 环消除。watchdog 三函数留 useAiStream(持计时器状态非纯函数)。行为零变化。
- B-34(另一会话走查发现 P0): stores/project.ts:273 selectType→select_type(Tauri 2 IPC 不转 camelCase),对齐后端 workflow.rs:211。F-260615-01 多选审批回归修复——前端传 selectType 后端收 None 归一化 Single 致多选被拒。删错误注释。
批1 wwllb4ith(ARC-06)+主代理(B-34),vue-tsc 0 err
This commit is contained in:
2026-06-15 05:25:38 +08:00
parent c7386a12c5
commit 8720b9424d
6 changed files with 30 additions and 14 deletions

View File

@@ -5,11 +5,11 @@
//!
//! 耦合:
//! - detachPanel/resumeInDetached 调 useAiConversations.switchConversation
//! - resumeInDetached 调 useAiEvents.nextMsgId 占位 ai 气泡
//! - resumeInDetached 调 aiShared.nextMsgId 占位 ai 气泡
//! - reattachPanel/detachPanel 调 useAiPanel.persistUiState
import { state } from '../../stores/ai'
import { nextMsgId } from './useAiEvents'
import { nextMsgId } from './aiShared'
import { switchConversation } from './useAiConversations'
import { persistUiState } from './useAiPanel'