Skip to content

fix: show sent desktop messages immediately#3056

Open
YoungDan-hero wants to merge 1 commit into
esengine:main-v2from
YoungDan-hero:dev-1
Open

fix: show sent desktop messages immediately#3056
YoungDan-hero wants to merge 1 commit into
esengine:main-v2from
YoungDan-hero:dev-1

Conversation

@YoungDan-hero
Copy link
Copy Markdown
Contributor

Desktop chat waited for the backend's first real event before adding the user's submitted message to the transcript. This made short prompts look delayed whenever the bridge, provider, or model had startup latency.

Show the submitted message right away with a pending state so the UI responds immediately. Confirm that message when the first backend event arrives, remove it if the user cancels before confirmation, and mark it failed only when submission fails before the backend has accepted the turn.

Add reducer coverage for immediate display, confirmation without duplicates, cancel-before-confirmation, early submit failure, and late submit rejection.

Desktop chat waited for the backend's first real event before adding the user's submitted message to the transcript. This made short prompts look delayed whenever the bridge, provider, or model had startup latency.

Show the submitted message right away with a pending state so the UI responds immediately. Confirm that message when the first backend event arrives, remove it if the user cancels before confirmation, and mark it failed only when submission fails before the backend has accepted the turn.

Add reducer coverage for immediate display, confirmation without duplicates, cancel-before-confirmation, early submit failure, and late submit rejection.

Co-authored-by: Cursor <cursoragent@cursor.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

v2 Go rewrite (1.x) — main-v2 branch, active development

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant