Skip to content

fix(desktop): surface send failures on the user bubble (#3056)#3916

Merged
esengine merged 1 commit into
main-v2from
land/3056-send-failure-feedback
Jun 11, 2026
Merged

fix(desktop): surface send failures on the user bubble (#3056)#3916
esengine merged 1 commit into
main-v2from
land/3056-send-failure-feedback

Conversation

@esengine

Copy link
Copy Markdown
Owner

Supersedes #3056 by @luffy-thanks. The core of that PR — showing the submitted message immediately — landed independently via #3430/#3441, which is why the original branch no longer applies. This carries forward the part main-v2 was still missing: submit rejections were silently swallowed (.catch(() => {})), so a failed send looked delivered.

What lands here, adapted to the per-tab state model:

  • send_failed reducer action: marks the optimistic user bubble failed, appends a warning notice, stops the running indicator, and is a no-op once the backend has confirmed the turn.
  • Submit wiring dispatches send_failed to the right tab on bridge rejection.
  • Failed-bubble styling + en/zh copy.
  • Reducer coverage in the repo's tsx test convention (immediate display, no-duplicate confirmation, failure marking, late-failure no-op, unsend), wired into npm test.

Author credit for the original diagnosis and design carried as commit co-author. The vitest harness from the original PR was intentionally dropped — the frontend already has a tsx-based test runner.

Closes #3056

Submit rejections were swallowed, leaving an optimistic user bubble
that looked delivered while the backend never saw the turn. Mark the
bubble failed, append a warning notice, and stop the running
indicator when the bridge call rejects before the first backend
event; confirmed turns are unaffected.

Closes #3056

Co-authored-by: luffy <1292867089@qq.com>
@esengine esengine requested a review from SivanCola as a code owner June 11, 2026 02:56
@github-actions github-actions Bot added v2 Go rewrite (1.x) — main-v2 branch, active development desktop Wails desktop app (desktop/**) labels Jun 11, 2026
@esengine esengine merged commit f7769e4 into main-v2 Jun 11, 2026
14 checks passed
@esengine esengine deleted the land/3056-send-failure-feedback branch June 11, 2026 03:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

desktop Wails desktop app (desktop/**) 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