Skip to content

feat(chat): optimistic message on send#763

Merged
spashii merged 1 commit into
mainfrom
sameer/agentic-optimistic-send
Jul 2, 2026
Merged

feat(chat): optimistic message on send#763
spashii merged 1 commit into
mainfrom
sameer/agentic-optimistic-send

Conversation

@spashii

@spashii spashii commented Jul 2, 2026

Copy link
Copy Markdown
Member

Host feedback: 'as soon as I hit enter, my message does not immediately show up is a bit worrying.'

The message now appears instantly (optimistic echo), and is replaced by the persisted one once it streams back (deduped by content), or cleared on submit error. Second slice of the chat redesign (#757).

Verified: tsc, biome (repo-level), vite build.

🤖 Generated with Claude Code

The message previously only appeared after the run persisted and streamed
it back, which read as a dropped message. Echo it optimistically the
moment they hit send, and drop the echo once the persisted user message
arrives (or on submit error).

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@spashii spashii merged commit 8c723e2 into main Jul 2, 2026
3 of 4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant