Include the artifact deep link in the inline widget result - #1505
Merged
Conversation
Deploying with
|
| Status | Name | Latest Commit | Updated (UTC) |
|---|---|---|---|
| ❌ Deployment failed View logs |
executor-cloud | 62de5fb | Jul 30 2026, 05:34 PM |
Deploying with
|
| Status | Name | Latest Commit | Preview URL | Updated (UTC) |
|---|---|---|---|---|
| ✅ Deployment successful! View logs |
executor-marketing | 62de5fb | Commit Preview URL Branch Preview URL |
Jul 30 2026, 05:34 PM |
RhysSullivan
marked this pull request as ready for review
July 30, 2026 17:29
The inline result carried only code + artifactId; the deep link existed only on the no-apps fallback path. Clients can lose a rendered widget in ways the server never sees (a reopened transcript that skips the ui:// resource re-read shows raw JSON), and then the URL in the tool result is the model's only way to point the user back at the artifact. The text content mentions it too, so the model can relay it without parsing.
RhysSullivan
force-pushed
the
artifact-url-in-inline-result
branch
from
July 30, 2026 17:31
901b3b6 to
62de5fb
Compare
Merged
Contributor
Cloudflare previewTorn down — the PR is closed. |
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.
Why
The inline
create-artifact/show-artifactresult carried onlycode+artifactId; the web deep link existed only on the no-apps fallback path. But clients can lose a rendered widget in ways the server never sees — observed live: a reopened Claude Desktop transcript re-establishes the MCP session without ever re-readingui://executor/shell.html(noresources/readon the wire) and renders the stored structured content as raw JSON. When that happens the model has no way to point the user back at the artifact.What
deliverArtifactnow resolves the deep link up front and passes it into the inline result too:structuredContentgainsurlbesidecodeandartifactId(only when the host knows its web origin — stdio hosts with noartifactUrlare unchanged).The shell reads only
code/artifactIdfrom the payload, so the extra field is inert for rendering clients.Verification
artifactUrlis configured; existing inline test updated for the new field.packages/hosts/mcpsuite 170/170; typecheck, lint, format green.