完善客户端模块与工作区能力
This commit is contained in:
@@ -159,7 +159,11 @@ describe('local AI design workspace', () => {
|
||||
expect(workspace).toMatchObject({
|
||||
workspaceId: 'workspace-legacy',
|
||||
conversationCount: 1,
|
||||
conversations: [{ title: '历史会话', turnRevision: 2 }],
|
||||
conversations: [{
|
||||
title: '历史会话',
|
||||
turnRevision: 2,
|
||||
latestMessagePreview: '保留这条历史消息',
|
||||
}],
|
||||
});
|
||||
await expect(service.getConversation(
|
||||
'workspace-legacy',
|
||||
@@ -191,6 +195,7 @@ describe('local AI design workspace', () => {
|
||||
const quote = discussed.messages.at(-1)?.generationQuote;
|
||||
|
||||
expect(discussed.phase).toBe('awaiting_confirmation');
|
||||
expect(discussed.latestMessagePreview).toContain('方向已整理为图像方案');
|
||||
expect(quote).toMatchObject({ status: 'active', medium: 'image' });
|
||||
await expect(service.listTasks(created.workspaceId)).resolves.toEqual([]);
|
||||
|
||||
@@ -202,6 +207,7 @@ describe('local AI design workspace', () => {
|
||||
quoteId: quote!.quoteId,
|
||||
});
|
||||
expect(confirmed.turnRevision).toBe(2);
|
||||
expect(confirmed.latestMessagePreview).toContain('图片任务已创建');
|
||||
|
||||
const queued = await service.listTasks(created.workspaceId);
|
||||
const running = await service.listTasks(created.workspaceId);
|
||||
|
||||
Reference in New Issue
Block a user