feat(coding): add conversation archive and first-message titles

This commit is contained in:
2026-09-20 12:43:51 +08:00
parent d61226532a
commit fd0293fe3d
22 changed files with 698 additions and 69 deletions

View File

@@ -555,6 +555,7 @@ export function createCodingComposition(
await agentServer.stop();
},
async shutdown() {
conversations.dispose();
gameResourceDelivery.dispose();
previewDataSession?.dispose();
if (typeof options.browser.configurePreviewDataSession === 'function') {

View File

@@ -89,7 +89,8 @@ export async function handleCodingConversationRoutes(
res,
event.type,
event,
`${event.conversationId}:${event.workerGeneration}:${event.toSeq}`,
event.type === 'conversation.metadata-changed' ? undefined
: `${event.conversationId}:${event.workerGeneration}:${event.type === 'snapshot' ? event.seq : event.toSeq}`,
)) break;
}
} finally {

View File

@@ -10,6 +10,7 @@ const FIXED_CODING_ERROR_MESSAGES: Readonly<Record<string, string>> = {
CODING_AGENT_NOT_FOUND: '当前伙伴不可用,请重新选择。',
CODING_AGENT_ID_IMMUTABLE: '已有伙伴标识不能修改。',
CODING_CONVERSATION_NOT_FOUND: '指定的对话不存在。',
CODING_CONVERSATION_ARCHIVED: '请先恢复已归档的对话,再继续操作。',
CODING_CONVERSATION_REQUEST_INVALID: '对话请求无效,请检查输入。',
CODING_FILE_NOT_FOUND: '指定的项目文件不存在。',
CODING_FILE_REQUEST_INVALID: '文件请求无效,请检查输入。',