优化: 会话入口与对话交互打磨
- 完成卡点开子代理轨迹浮层,任务抽屉关联会话跳转 - 提及片段编辑差分三向判定,不再错位 - 长回复折叠完成瞬间锚定消息顶,视口不跳 - 空编辑/技能无匹配/回填覆盖草稿均有提示确认 - 队列编辑态切会话重置,刷新快捷键不再误触 - git 变更面板去重缓存,项目卡骨架与溢出重测
This commit is contained in:
@@ -368,4 +368,22 @@ export const aiApi = {
|
||||
updateConversationGoals(conversationId: string, goals: string[]): Promise<void> {
|
||||
return invoke('ai_update_conversation_goals', { conversationId, goals })
|
||||
},
|
||||
|
||||
/**
|
||||
* 只读窥视子代理轨迹(S3):后端复用 switch 读路径但**不切任何会话状态**。
|
||||
* 子会话(origin='sub_agent')不进侧栏、不可 switch,完成卡浮层经此拉轨迹;
|
||||
* 返回全量消息 JSON 字符串(不分页)。
|
||||
*/
|
||||
peekConversation(conversationId: string): Promise<{ title: string | null; messages: string }> {
|
||||
return invoke('ai_conversation_peek', { conversationId })
|
||||
},
|
||||
|
||||
/**
|
||||
* S4 TaskDrawer「关联会话」:按任务 id 反查发起过 create/update/advance_task 的会话。
|
||||
* 后端从 ai_tool_executions 审计表推导(result JSON 顶层 id 精确判等,非 LIKE),
|
||||
* 已过滤子代理会话(origin='sub_agent')并按最近命中倒序去重,v1 只列主会话。
|
||||
*/
|
||||
listTaskConversations(taskId: string): Promise<{ conversation_id: string; title: string | null; tool_name: string; requested_at: string }[]> {
|
||||
return invoke('list_task_conversations', { taskId })
|
||||
},
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user