55 type AcceptanceDecidedPayload ,
66 type PendingUserQuestionSnapshot ,
77} from '@/api/protocol'
8- import { type VerificationRunRecord } from '@/stores/useRuntimeInsightStore'
98import { resetEventBridgeCursors } from '@/utils/eventBridge'
109
1110/** 聊天消息 */
@@ -14,7 +13,7 @@ export interface ChatMessage {
1413 /** 消息角色:user / assistant / tool */
1514 role : 'user' | 'assistant' | 'tool'
1615 /** 消息类型:text / thinking / tool_call / code / welcome / system / verification / acceptance */
17- type : 'text' | 'thinking' | 'tool_call' | 'code' | 'welcome' | 'system' | 'verification' | ' acceptance'
16+ type : 'text' | 'thinking' | 'tool_call' | 'code' | 'welcome' | 'system' | 'acceptance'
1817 /** 文本内容 */
1918 content : string
2019 /** 工具调用信息 */
@@ -23,8 +22,6 @@ export interface ChatMessage {
2322 toolArgs ?: string
2423 toolResult ?: string
2524 toolStatus ?: 'running' | 'done' | 'error'
26- /** Verification 摘要数据(仅 type === 'verification' 使用) */
27- verificationData ?: VerificationRunRecord
2825 /** Acceptance 决策数据(仅 type === 'acceptance' 使用) */
2926 acceptanceData ?: AcceptanceDecidedPayload
3027 /** Thinking 数据(仅 type === 'thinking' 使用) */
@@ -93,7 +90,6 @@ interface ChatState {
9390 /** 将所有运行中的工具条目标记为指定状态,用于终止事件兜底收敛 UI。 */
9491 finalizeRunningToolCalls : ( status : 'done' | 'error' ) => void
9592 /** 更新一条 verification 消息的 data(verification 进行中持续更新同一条消息) */
96- updateVerificationMessage : ( messageId : string , data : VerificationRunRecord ) => void
9793 setGenerating : ( v : boolean ) => void
9894 startCompacting : ( mode ?: string , message ?: string ) => void
9995 finishCompacting : ( ) => void
@@ -314,15 +310,6 @@ export const useChatStore = create<ChatState>((set) => ({
314310 ) ,
315311 } ) ) ,
316312
317- updateVerificationMessage : ( messageId , data ) =>
318- set ( ( s ) => ( {
319- messages : s . messages . map ( ( m ) =>
320- m . id === messageId && m . type === 'verification'
321- ? { ...m , verificationData : data }
322- : m
323- ) ,
324- } ) ) ,
325-
326313 setGenerating : ( isGenerating ) => set ( { isGenerating } ) ,
327314 startCompacting : ( compactMode = 'manual' , compactMessage = 'Compacting context...' ) =>
328315 set ( {
0 commit comments