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

stacklok / toolhive-studio / 25811957726 / 1
70%
main: 71%

Build:
Build:
LAST BUILD BRANCH: fix/registry-sort-aggregated-servers-1956
DEFAULT BRANCH: main
Ran 13 May 2026 04:25PM UTC
Files 514
Run time 23s
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

13 May 2026 04:21PM UTC coverage: 70.384% (+0.3%) from 70.125%
25811957726.1

Pull #2246

github

samuv
fix(playground): prevent queue auto-flush into wrong thread on switch

Cross-thread leak from #2246 review: when the user queued a message in
thread A and switched to thread B before A's stream finished, the
auto-flush effect could fire A's queued payload into B's `useChat`
instance. The thread-clear `useEffect` ran on the same render as the
auto-flush — both see the stale `queuedMessage`, and the prev-status
ref still held A's `'streaming'` so the streaming→ready transition
falsely matched.

Replace the thread-clear effect with the React-recommended in-render
adjustment pattern (https://react.dev/learn/you-might-not-need-an-
effect#adjusting-some-state-when-a-prop-changes). The queue is reset
synchronously during the render where `currentThreadId` changes, so
the auto-flush effect that runs after commit sees `null` and skips.
Also reset the prev-status ref in the same block so the transition
detector doesn't false-trigger on the cross-thread status reset.

Regression test mounts in thread A streaming + queued, switches to B
with status='ready', and asserts `sendMessage` is never called.
Pull Request #2246: feat(playground): queue messages while a response is streaming

5021 of 7731 branches covered (64.95%)

7498 of 10653 relevant lines covered (70.38%)

118.54 hits per line

Source Files on job 25811957726.1
  • Tree
  • List 514
  • Changed 3
  • Source Changed 3
  • Coverage Changed 3
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Build 25811957726
  • 2e6de607 on github
  • Prev Job for on feat/playground-queue-while-streaming (#25808404938.1)
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