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

stacklok / toolhive-studio / 24678515615
66%
main: 71%

Build:
Build:
LAST BUILD BRANCH: fix/auto-2316
DEFAULT BRANCH: main
Ran 20 Apr 2026 04:42PM UTC
Jobs 1
Files 459
Run time 1min
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

20 Apr 2026 04:39PM UTC coverage: 65.968% (+0.1%) from 65.836%
24678515615

Pull #2048

github

samuv
perf(playground): debounce draft persistence to keep typing off the sync write path

useThreadDraft wrote to localStorage on every keypress. localStorage.setItem is synchronous and cheap for small strings, but becomes a cliff for long drafts or slow disks. This debounces writes by 200ms and flushes any pending value on unmount so the key={threadId} remount on thread switch preserves the trailing keystrokes.

- Coalesce rapid updates into a single write via a setTimeout-based debounce

- Flush the pending write from a useEffect cleanup, capturing threadId via the useCallback closure (stable within a mount thanks to key={threadId})

- Tests use fake timers to verify debounce, coalescing, empty-string clearing, and flush-on-unmount
Pull Request #2048: feat(playground): persist composer drafts per thread across route changes

3662 of 6050 branches covered (60.53%)

40 of 43 new or added lines in 4 files covered. (93.02%)

5792 of 8780 relevant lines covered (65.97%)

119.87 hits per line

Uncovered Changes

Lines Coverage ∆ File
1
0.0
0.0% renderer/src/features/chat/components/chat-input-prompt.tsx
1
88.51
0.0% renderer/src/features/chat/hooks/use-playground-threads.ts
1
97.06
renderer/src/features/chat/hooks/use-thread-draft.ts
Jobs
ID Job ID Ran Files Coverage
1 24678515615.1 20 Apr 2026 04:42PM UTC 459
65.97
GitHub Action Run
Source Files on build 24678515615
  • Tree
  • List 459
  • Changed 4
  • Source Changed 4
  • Coverage Changed 4
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • Github Actions Build #24678515615
  • Pull Request #2048
  • PR Base - main (#24661603277)
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