• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

lsm / neokai / 26667979831 / 15
82%
dev: 82%

Build:
DEFAULT BRANCH: dev
Ran 29 May 2026 11:49PM UTC
Files 331
Run time 13s
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

29 May 2026 11:46PM UTC coverage: 23.53% (-0.002%) from 23.532%
26667979831.15

push

github

web-flow
fix(web): prevent stale onInput from restoring draft after send (#2045)

* fix(web): prevent stale onInput from restoring draft after send

Race between clearDraft() and browser onInput in uncontrolled textarea.
When handleSubmit cleared the signal, useLayoutEffect hadn't flushed yet,
so a stale onInput reading textarea.value could call setContent and
restore the old content — leaving a single character in the composer.

Fix:
- submittingRef guard in handleContentChange drops onInput during submit
- Direct textarea.value = '' clear in handleSubmit, bypassing batch flush

Closes #502

* fix(web): wrap submit in try/finally to reset submittingRef on throw

submittingRef.current = false was placed after await onSend(...).
If onSend rejected, the ref stayed true forever, making the textarea
permanently unresponsive.

Fix: move the reset into a finally block so it always runs regardless
of success, failure, or exception.

Also adds a test verifying the textarea remains functional after onSend
throws an error.

21537 of 91529 relevant lines covered (23.53%)

12.33 hits per line

Source Files on job daemon-online-rpc-4 - 26667979831.15
  • Tree
  • List 331
  • Changed 1
  • Source Changed 0
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 26667979831
  • f77b99f2 on github
  • Prev Job for on dev (#26664489697.17)
  • Next Job for on dev (#26668113987.10)
  • Delete
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc