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

stacklok / toolhive-studio / 25735617285 / 1
70%
main: 70%

Build:
DEFAULT BRANCH: main
Ran 12 May 2026 12:56PM UTC
Files 508
Run time 24s
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

12 May 2026 12:51PM UTC coverage: 68.619% (+0.08%) from 68.535%
25735617285.1

push

github

web-flow
fix(playground): avoid renderer freeze on large MCP tool results (#2226)

* fix(playground): render large MCP tool results as raw text to avoid renderer freeze

Tool results above 50k chars now render in a <pre> with an opt-in
'Render as markdown' button instead of going through Streamdown.
JSON-shaped payloads bypass the markdown engine entirely and pretty-print.
Streamdown plugins are hoisted to module scope and the mermaid plugin is
dropped on this surface (scans every fenced block, no realistic tool
output uses it).

* test(playground): cover large/JSON/raw paths in tool-output rendering

Adds coverage for the JSON-detection path, the >50k raw fallback,
its 'Render as markdown' opt-in, the 500k truncation notice, and the
Copy button on both raw and JSON blocks.

* fix(playground): gate tool-output JSON parse on size/streaming, toast clipboard errors

Address review feedback on the large-tool-results PR:

- `tryFormatAsJson` now bails on streaming (partial JSON would fail-parse
  on every chunk → O(n²) over the stream) and on payloads above
  `RAW_RENDER_THRESHOLD` (the parse + stringify is itself a freeze risk
  for the multi-MB GitHub-MCP shapes this PR was written for; the raw
  `<pre>` branch already handles these correctly).
- The Copy button now awaits `navigator.clipboard.writeText` in a
  `try/catch` and surfaces a sonner toast on success/failure, instead of
  letting the rejection escape as an unhandled promise.

Tests cover the streaming-bypass, the oversized-JSON-bypass, and the
clipboard-failure-toast paths.

4821 of 7589 branches covered (63.53%)

7205 of 10500 relevant lines covered (68.62%)

119.01 hits per line

Source Files on job 25735617285.1
  • Tree
  • List 508
  • Changed 1
  • Source Changed 1
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Build 25735617285
  • 3e4c318d on github
  • Prev Job for on main (#25735385898.1)
  • Next Job for on main (#25735659659.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