gabriel / musehub public
fix BREAKING mists dev #39 / 100
AI Agent gabriel · 1 day ago · Nov 15, 2026 · Diff

fix(mists): offer only the iframe embed — drop the script-tag and badge snippets (#319)

Owner decision 2026-11-15: the script and badge snippets pointed at /static/js/mist-embed.js and /static/badges/mist.svg, which the server does not serve. embed_snippets, the REST embed response, muse_mist_embed (MCP) and its tool description now offer the iframe (plus the embed URL over MCP) only. Docs: the 'Script tag and badge' section becomes 'Embed code'; the #319 known issue row goes; the strict xfail becomes a test that no snippet is offered for an unserved asset. MCP reference regenerated. (muse mist embed still fabricates fallbacks client-side; removed in Muse rc5.)

Co-Authored-By: Claude Opus 5.5 <[email protected]>

sha256:d2aba013f6e84cec4f9d3cfcbc7c90bfde5f12a0fa8cb75b74745741f1807b6c sha
+3 ~19 −5 symbols
sha256:1f0eea205fe8653881fcf23a9bdee835fb7793264e27a6af267eae3311116cdf snapshot
+3
symbols added
~19
symbols modified
−5
symbols removed
0
dead code introduced
Semantic Changes 27 symbols
~ musehub/models/mists.py .py 1 symbol modified
~ musehub/templates/musehub/pages/docs_muse_mists.html .html 1 symbol added, 1 symbol removed, 3 symbols modified
− h3: Script tag and badge section h3: Script tag and badge L472–472
+ h3: Embed code section h3: Embed code L471–471
~ tests/docs_contract/test_mists.py .py 1 symbol added, 2 symbols removed, 1 symbol modified
− _T_EMBED_ASSETS variable variable _T_EMBED_ASSETS L55–55
− test_embed_snippet_assets_exist function function test_embed_snippet_assets_exist L515–525
+ test_embed_offers_only_snippets_that_work function function test_embed_offers_only_snippets_that_work L513–522
~ tests/test_mist_routes.py .py 1 symbol added, 2 symbols removed, 1 symbol modified
− test_embed_badge_links_to_detail method async_method test_embed_badge_links_to_detail L137–145
− test_embed_returns_three_codes method async_method test_embed_returns_three_codes L115–125
+ test_embed_returns_the_iframe_only method async_method test_embed_returns_the_iframe_only L115–124

0 comments

No comments yet. Be the first to start the discussion.

To add a comment, use the Muse CLI: muse hub commit comment sha256:d2aba013f6e84cec4f9d3cfcbc7c90bfde5f12a0fa8cb75b74745741f1807b6c --body "your comment"