新增: 跨端用户消息同步
This commit is contained in:
@@ -373,6 +373,11 @@ export type AiChatEvent = ({
|
||||
type: 'AiCompleted'; total_tokens: number; prompt_tokens: number; completion_tokens: number; incomplete?: boolean
|
||||
} | {
|
||||
type: 'AiError'; error: string; error_type?: AiErrorType
|
||||
} | {
|
||||
// F-260622-02 跨端用户消息同步:远程(miniapp)发来的用户消息,后端 route_send_message
|
||||
// 放行后 publish_event 广播。桌面 useAiEvents 收到后补 user 气泡(桌面本地 sendMessage 是
|
||||
// 乐观渲染不发此事件)。handleEvent 去重防双气泡(末条已是同 content user 跳过)。
|
||||
type: 'AiUserMessage'; message: string
|
||||
} | {
|
||||
type: 'AiAgentRound'; round: number
|
||||
} | {
|
||||
|
||||
Reference in New Issue
Block a user