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

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

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

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%)

54 of 58 new or added lines in 5 files covered. (93.1%)

7498 of 10653 relevant lines covered (70.38%)

118.54 hits per line

Uncovered Changes

Lines Coverage ∆ File
4
85.42
7.98% renderer/src/features/chat/hooks/use-chat-streaming.ts
Jobs
ID Job ID Ran Files Coverage
1 25811957726.1 13 May 2026 04:25PM UTC 514
70.38
GitHub Action Run
Source Files on build 25811957726
  • 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 Repo
  • Github Actions Build #25811957726
  • Pull Request #2246
  • PR Base - main (#25808404938)
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