fix: keep generation progress out of chat history
This commit is contained in:
@@ -103,3 +103,31 @@ test('big fish workspace hides keyword fill before two turns', () => {
|
||||
|
||||
expect(screen.queryByRole('button', { name: '补充剩余设定' })).toBeNull();
|
||||
});
|
||||
|
||||
test('big fish workspace does not render progress action messages as chat bubbles', () => {
|
||||
render(
|
||||
<BigFishAgentWorkspace
|
||||
session={{
|
||||
...baseSession,
|
||||
messages: [
|
||||
...baseSession.messages,
|
||||
{
|
||||
id: 'message-action-result-1',
|
||||
role: 'assistant',
|
||||
kind: 'action_result',
|
||||
text: '本级主图已正式生成,可在结果页继续预览。',
|
||||
createdAt: '2026-04-24T10:01:00.000Z',
|
||||
},
|
||||
],
|
||||
}}
|
||||
onBack={() => {}}
|
||||
onSubmitMessage={() => {}}
|
||||
onExecuteAction={() => {}}
|
||||
/>,
|
||||
);
|
||||
|
||||
expect(screen.getByText('爽点和生态已经清楚,继续补剩余关键词。')).toBeTruthy();
|
||||
expect(
|
||||
screen.queryByText('本级主图已正式生成,可在结果页继续预览。'),
|
||||
).toBeNull();
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user