Skip to content

fix: copy artifacts as enriched text (html + plain)#566

Open
cnewell0 wants to merge 1 commit into
mainfrom
fix/enriched-artifact-copy
Open

fix: copy artifacts as enriched text (html + plain)#566
cnewell0 wants to merge 1 commit into
mainfrom
fix/enriched-artifact-copy

Conversation

@cnewell0

Copy link
Copy Markdown
Collaborator

HTML and markdown artifacts now write both text/html and text/plain to the clipboard via ClipboardItem, so pasting into Docs/Outlook/Slack keeps formatting while terminals and plain-text fields still get clean source. Falls back to writeText when ClipboardItem isn't available or the rich write throws.

Description

Related Issues

Fixes #

Testing

  • Manual testing
  • Unit tests added/updated
  • E2E tests (if applicable)

Checklist

  • Read and followed CONTRIBUTING.md
  • Based on latest main branch
  • npm run lint passes
  • npm test passes
  • Unit test coverage maintained/improved
  • Updated README.md (if applicable)

Contributor License Agreement

HTML and markdown artifacts now write both text/html and text/plain to
the clipboard via ClipboardItem, so pasting into Docs/Outlook/Slack
keeps formatting while terminals and plain-text fields still get clean
source. Falls back to writeText when ClipboardItem isn't available or
the rich write throws.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@CLAassistant

Copy link
Copy Markdown

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.
You have signed the CLA already but the status is still pending? Let us recheck it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants