优化: 清理无意义注释(走查编号前缀/过时历史标注/死代码注释)
This commit is contained in:
+5
-5
@@ -43,7 +43,7 @@ export const aiApi = {
|
||||
},
|
||||
|
||||
/**
|
||||
* 重新生成最后一条 AI 回复(UX-02)。
|
||||
* 重新生成最后一条 AI 回复。
|
||||
* 后端:占用 generating → 弹出末尾 AI 回复(保留触发它的 user 消息)→ 重跑 agentic loop。
|
||||
* 前端消费:与 sendMessage 一样需本地 push 空气泡占位 + 置 streaming(见 useAiSend.regenerate)。
|
||||
*/
|
||||
@@ -56,7 +56,7 @@ export const aiApi = {
|
||||
},
|
||||
|
||||
/**
|
||||
* 编辑最后一条 user 消息并重新生成(UX-09)。
|
||||
* 编辑最后一条 user 消息并重新生成。
|
||||
* 后端:占用 generating → 替换末条 user content → 其后消息标 truncated(软删)→ 重跑 agentic loop。
|
||||
* 前端消费:调 editMessage 前需移除被编辑消息之后的所有消息(视图截断)+ push 空气泡占位 + 置 streaming。
|
||||
* 中间 user 消息编辑被后端拒绝(只允许末条)。
|
||||
@@ -205,7 +205,7 @@ export const aiApi = {
|
||||
},
|
||||
|
||||
/**
|
||||
* 一次性测试连接(P0-1):用**表单当前值**测试,不写库。
|
||||
* 一次性测试连接用**表单当前值**测试,不写库。
|
||||
* - 新建态:传表单填的 providerType/baseUrl/apiKey,providerId=null。
|
||||
* - 编辑态(apiKey 留空=不改):传 providerId 让后端从 DB 沿用旧密钥;
|
||||
* apiKey 非空则直接用表单新值。
|
||||
@@ -329,13 +329,13 @@ export const aiApi = {
|
||||
return invoke('ai_conversation_archive', { conversationId, archived })
|
||||
},
|
||||
|
||||
/** 置顶/取消置顶对话(UX-17) */
|
||||
/** 置顶/取消置顶对话*/
|
||||
setPinnedConversation(conversationId: string, pinned: boolean): Promise<void> {
|
||||
return invoke('ai_conversation_set_pinned', { conversationId, pinned })
|
||||
},
|
||||
|
||||
/**
|
||||
/** 导出对话为指定格式(UX-18:对话导出;消费 batch46 ai_conversation_export IPC)。
|
||||
/** 导出对话为指定格式对话导出;消费 batch46 ai_conversation_export IPC)。
|
||||
* 后端返回导出内容 String(markdown/json/txt),前端落 Blob 下载或复制剪贴板。
|
||||
* @param format 'markdown' | 'json' | 'txt'
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user