Embed interactive playgrounds in the web thread - #675
Open
time-attack wants to merge 1 commit into
Open
Conversation
When someone asks to see or play with a mechanism, the agent can store a self-contained HTML miniapp and render it as a Play/Code card. Slack strips the marker so it stays a web surface, and scripts that do not parse never reach the store. Co-authored-by: Cursor <cursoragent@cursor.com>
Author
|
Live web-thread take: new chat, asked to explain integrals and drag the rectangles. The playground card paints in the thread; then the slider, left/mid/right sampling, and the chart are driven live. explain-integrals.mp4 |
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.
Summary
[[miniapp: url | title]]in the reply so the web UI renders a Play / Code card in the thread.Test plan
node --experimental-test-module-mocks --test test/miniapp.test.ts test/skill-conformance.test.ts test/pi-tools.test.ts test/route-auth-conformance.test.ts test/dev-cli-lib.test.tsnpm test -- test/miniapp.test.ts test/miniapp-proxy.test.tsinplugins/web-uinode --test test/router.test.tsinplugins/portal[[miniapp:…]])./m/:id/:keyand/m/:id/:key?view=sourcethrough portal and web-ui; iframe should load (noX-Frame-Options), source should be raw HTML.Made with Cursor
Need help on this PR? Tag
@codesmith-botwith what you need. Autofix is disabled.