Chat: a sent message rises in from the composer

The just-sent (or queued) message slides up 20px, fades and grows from
0.96 over 280ms on an emphasized decelerate curve. Only a send marks it:
history, scroll restore, other devices, replies and the server copy
replacing the local one appear in place. Row keys follow the operation
id so the server copy keeps the row. Reduced motion shows it at once.
The capture fixture now accepts chat_prompt.
This commit is contained in:
2026-11-03 15:59:34 +00:00
parent 5f51bbf53b
commit 6e8c9b1a9e
7 changed files with 419 additions and 8 deletions
+4
View File
@@ -228,6 +228,10 @@ JsonMap? perfChatReply(JsonMap request) {
return perfChatNewSessionReply(request, _chatRow);
case 'chat_subscribe':
return {'id': id, 'type': 'chat_subscribed'};
case 'chat_prompt':
// Accepted, as the server does; no reply follows, so a capture can
// watch the sent message itself.
return {'id': id, 'type': 'chat_prompt', 'chat_queued': false};
case 'chat_shells':
return {'id': id, 'type': 'chat_shells', 'chat_shells': const []};
case 'chat_messages':