feat: optimistic message rendering with send status indicators

- User messages appear instantly with 'sending' state (dimmed, clock icon)
- Transitions to 'sent' (checkmark) when server acknowledges
- Shows error state (alert icon, retry visible) if send fails
- Applied to both primary and secondary sessions
This commit is contained in:
Nicolas Varrot
2026-02-13 09:12:09 +00:00
parent 495dd0352f
commit b783ae181b
11 changed files with 96 additions and 44 deletions

View File

@@ -8,6 +8,8 @@ export interface ChatMessage {
runId?: string;
isSystemEvent?: boolean;
metadata?: Record<string, unknown>;
/** Optimistic send status for user messages */
sendStatus?: 'sending' | 'sent' | 'error';
}
export type MessageBlock =