Repository navigation
feat(mcp): a way on in a chat with no cards, a streamed or stopped call, a reply drawn from its result, a page that never speaks (#276) - #277
Merged
Conversation
…ll, a reply drawn from its result, a page that never speaks; the structured part only with an attachment, since a chat may show the model it alone (#276)
Contributor
There was a problem hiding this comment.
All reported issues were addressed across 6 files
Reply with feedback, questions, or to request a fix.
View guided diff | Turn on auto-fix | Re-trigger cubic
… in any browser; the README's sentence on the tab and the design file's Haiku runs said plainly (#276)
Contributor
There was a problem hiding this comment.
All reported issues were addressed across 3 files (changes from recent commits).
Reply with feedback, questions, or to request a fix.
View guided diff | Turn on auto-fix | Re-trigger cubic
…nParse for, by version (#276)
This was referenced Nov 25, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #276.
The server
io.modelcontextprotocol/ui, withtext/html;profile=mcp-app), and protocol 2026-07-28 carries them in each request, so the stateless server knows there: to a chat with cards, the card as before; to one without, h5p-author's route 4, the whole source in one JSON block and one line with the build page's plain address ("Paste your chat's JSON"). Never a link that carries the source. On the 2025 protocols, where a chat says its capabilities once, to a server with no session, the answer says the card and, for a chat that draws none, route 4 too.structuredContentin place of its text. In Claude Code 2.1.331, Haiku read{"files":0}fromh5p_playand nothing of the check, its outline or what to hand over, and said it could not confirm the card rendered. So the structured part now comes only with an attachment, which a card may be handed in that part alone, and it carries the text too (answer). Without an attachment there is none, and every chat shows the model the text._meta['h5p/source'], which a chat shows the card and not the model: a card drawn from the result alone, with no input, plays all the same. The server receives the source in the call already, and still keeps nothing.The card
tool-input-partial): "The chat is writing the activity…" / "It is built in your browser once it is written.", spinner. A part of the source is never played from. Each part starts the minute again.tool-cancelled): "The activity was not made" / "The chat stopped before it was written. Ask it again.", no spinner.data-themeattribute the card writes, with the system's scheme only where the chat gives none, in place oflight-dark(); andURL.canParsereplaced bynew URLin atry.Every state drawn in a stand-in chat at 760 px and 390 px, light and dark: no scrollbar in the card, no page error, the notes wrapped balanced and held to 46 characters a line.
Tested
app.test.ts: the answer to a 2025 client (the card and route 4), and as a chat on 2026-07-28 with cards, with none, and with cards of another kind; the structured part absent without an attachment and carrying the text with one; the source in_meta.card.test.ts: five new, the source streamed, a stopped call, a result with no input, nothing for 6 s, a page that never speaks.worker.test.ts: the Worker still answers word for word as the server on Node.--tools "", the two tools only), against this branch's server, three prompts (True/False, a three-question quiz, flash cards): 3 of 3 gave a JSON block that parses, of the right type, with the build page's plain address and "Paste your chat's JSON", no link with the source, and no word of a card. Before the structured-part change, the two runs that called the tool said they could not confirm the card rendered.cubic's review: three points, fixed in 29706e7 (the README's sentence on the tab, the design file's Haiku runs stated in it, the colours by the chat's theme in any browser); a fourth, the browsers named by version, in 234a51b.
Only you can check, after the Worker is deployed
{"files":0}before, if Claude does as Claude Code does).Paired with missing-elements/missing-elements.github.io#117, the play page's own way on (no worker, storage refused, no secure context). Neither needs the other.
Not here: links inside an activity. The card opens only the site's own addresses (design/mcp.md), and opening any other is your decision.
Summary by cubic
Answers a chat that draws no card with the build page's way on, and covers the card's states before an activity comes or where it cannot start.
Server
{"files":0}) — and then carries the text too._meta['h5p/source'], so a reply drawn from the result alone, with no input, plays all the same; nothing of it is kept.Card
data-themeattribute in place oflight-dark(), andnew URLin atryin place ofURL.canParse.Tests cover the new server answers and five new card states; Haiku as a chat with no cards handed over valid JSON in 3 of 3 prompts. After the Worker is deployed, check ChatGPT (reply should not add the JSON block and build line) and Claude (should read what the activity holds back, not
{"files":0}), since only those chats can confirm it.Written for commit 234a51b. Summary will update on new commits.