Skip to content

Add Copy as Markdown for AI documents#13082

Open
SkyNotSilent wants to merge 1 commit into
warpdotdev:masterfrom
SkyNotSilent:codex/fix-9214-copy-plan-markdown
Open

Add Copy as Markdown for AI documents#13082
SkyNotSilent wants to merge 1 commit into
warpdotdev:masterfrom
SkyNotSilent:codex/fix-9214-copy-plan-markdown

Conversation

@SkyNotSilent

Copy link
Copy Markdown

Description

Adds a Copy as Markdown action to the AI document overflow menu. The action reuses the same markdown_unescaped serializer used by Markdown export, writes the result to the clipboard, and shows a success toast.

Linked Issue

Closes #9214

  • The linked issue is labeled ready-to-spec or ready-to-implement.
  • Where appropriate, screenshots or a short video of the implementation are included below (especially for user-visible or UI changes).

Testing

  • ./script/format --check
  • ./script/check_no_inline_test_modules
  • cargo test -p warp test_plan_markdown_content_preserves_copyable_structure --lib
  • cargo run -p integration --bin integration -- test_copy_ai_document_as_markdown_from_overflow_menu
  • cargo clippy --workspace --exclude warp_completer --all-targets --tests -- -D warnings
  • cargo clippy -p warp_completer --all-targets --tests -- -D warnings
  • I have manually tested my changes locally with ./script/run

Screenshots / Videos

Real-display integration run showing the AI document overflow menu action and clipboard assertion:

Agent Mode

  • Warp Agent Mode - This PR was created via Warp's AI Agent Mode

CHANGELOG-IMPROVEMENT: Add a Copy as Markdown action to AI planning document menus.

@cla-bot cla-bot Bot added the cla-signed label Jun 26, 2026
@github-actions github-actions Bot added the external-contributor Indicates that a PR has been opened by someone outside the Warp team. label Jun 26, 2026
@SkyNotSilent

Copy link
Copy Markdown
Author

/oz-review

@oz-for-oss

oz-for-oss Bot commented Jun 26, 2026

Copy link
Copy Markdown
Contributor

@SkyNotSilent

I'm starting a first review of this pull request.

You can view the conversation on Warp.

I reviewed this pull request and requested human review from: @seemeroland.

Comment /oz-review on this pull request to retrigger a review (up to 3 times on the same pull request).

Powered by Oz

@oz-for-oss

oz-for-oss Bot commented Jun 26, 2026

Copy link
Copy Markdown
Contributor

@SkyNotSilent

I'm re-reviewing this pull request in response to a review request.

You can view the conversation on Warp.

I reviewed this pull request and requested human review from: @seemeroland.

Comment /oz-review on this pull request to retrigger a review (up to 3 times on the same pull request).

Powered by Oz

@oz-for-oss oz-for-oss Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Overview

Adds a Copy as Markdown action to the AI document overflow menu, reusing the existing unescaped markdown serializer and adding unit/integration coverage for the clipboard output.

Concerns

  • No blocking correctness, security, or spec-drift concerns found.

Verdict

Found: 0 critical, 0 important, 0 suggestions

Approve

Comment /oz-review on this pull request to retrigger a review (up to 3 times on the same pull request).

Powered by Oz

@oz-for-oss oz-for-oss Bot requested a review from seemeroland June 26, 2026 10:22

@oz-for-oss oz-for-oss Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Overview

Adds a Copy as Markdown action to the AI document overflow menu, reusing the existing Markdown serialization path and covering the behavior with unit and integration tests.

Concerns

  • Non-blocking: one user-facing toast string still says “Plan” while the new action is labeled for AI documents generally.

Verdict

Found: 0 critical, 0 important, 1 suggestions

Approve with nits

Comment /oz-review on this pull request to retrigger a review (up to 3 times on the same pull request).

Powered by Oz

Comment thread app/src/ai/ai_document_view.rs Outdated
ToastStack::handle(ctx).update(ctx, |toast_stack, ctx| {
toast_stack.add_ephemeral_toast(
DismissibleToast::success(
"Plan copied to clipboard as Markdown".to_string(),

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 [SUGGESTION] Keep the success toast aligned with the generic “AI document” menu action so non-plan documents do not read as plans.

Suggested change
"Plan copied to clipboard as Markdown".to_string(),
"AI document copied to clipboard as Markdown".to_string(),

@SkyNotSilent SkyNotSilent force-pushed the codex/fix-9214-copy-plan-markdown branch from 35cfb11 to d0fa75f Compare June 26, 2026 10:25
@SkyNotSilent

Copy link
Copy Markdown
Author

/oz-review

@oz-for-oss

oz-for-oss Bot commented Jun 26, 2026

Copy link
Copy Markdown
Contributor

@SkyNotSilent

I'm re-reviewing this pull request in response to a review request.

You can view the conversation on Warp.

I reviewed this pull request and requested human review from: @seemeroland.

Comment /oz-review on this pull request to retrigger a review (up to 3 times on the same pull request).

Powered by Oz

@oz-for-oss oz-for-oss Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Overview

This PR adds a Copy as Markdown action to the AI document overflow menu, reusing the same markdown_unescaped serialization path as Markdown export and showing a success toast after writing to the clipboard. It also adds focused model coverage for copyable Markdown structure and an integration test that exercises the overflow-menu clipboard flow.

Concerns

No blocking correctness, security, or spec-alignment concerns found. The PR includes visual evidence for the user-facing menu change.

Verdict

Found: 0 critical, 0 important, 0 suggestions

Approve

Comment /oz-review on this pull request to retrigger a review (up to 3 times on the same pull request).

Powered by Oz

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

Labels

cla-signed external-contributor Indicates that a PR has been opened by someone outside the Warp team.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add support for copying plan content as Markdown

1 participant