fix(core): retry on chat-block, view components not update as expected (#11553)

Close [BS-3026](https://linear.app/affine-design/issue/BS-3026)
This commit is contained in:
akumatus
2025-04-09 03:30:19 +00:00
parent be3024c0c1
commit 1e9561b46c

View File

@@ -334,6 +334,7 @@ export class AIChatBlockPeekView extends LitElement {
const last = messages[messages.length - 1];
if ('content' in last) {
last.content = '';
last.id = '';
last.createdAt = new Date().toISOString();
}
this.updateContext({ messages, status: 'loading', error: null });