Render inline artifact cards from response.artifact_created#218
Open
torrmal wants to merge 2 commits into
Open
Render inline artifact cards from response.artifact_created#218torrmal wants to merge 2 commits into
torrmal wants to merge 2 commits into
Conversation
Replace the HTML-only publish_or_preview card path with a single deterministic source: response.artifact_created events the harness emits at turn end for every artifact type. The reducer pushes the same badge='Artifact' step it used before (so all downstream rendering is unchanged), deduped by slug/path so a replay can't double a card. Retire the awaitingArtifactPayload two-event marker logic. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Add an 'Export ▾' menu to document artifact cards (markdown/HTML/text sources) that calls POST /artifacts/export and, on desktop, opens the converted file. Closes on outside click; shows inline status. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Contributor
Author
|
Added the Export ▾ menu on document artifact cards (PDF / Word / HTML) → calls |
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.
What
Render inline artifact cards in chat from a single deterministic source:
response.artifact_createdevents the harness emits at turn end for every artifact type (HTML, dataset, document, image, …).Previously cards came only from the HTML-only
publish_or_previewtwo-event marker. This:response.artifact_createdcase toresponseStreamAdapterthat pushes the samebadge:'Artifact'step the old path produced (so all downstream rendering —StepArtifacts,ArtifactCard— is unchanged), deduped by slug/path so a replay can't double a card;publish_or_preview/awaitingArtifactPayloadmarker logic.Pairs with the cowork-server PR that emits the events (both Anton and Hermes harnesses). Older messages created before the backend index simply render no card — acceptable by design.
🤖 Generated with Claude Code