Skip to content

Remove blocklist markdown images from preview flags#9993

Merged
zachlloyd merged 1 commit intomasterfrom
zach/enable-inline-images-mermaid-in-stable
May 3, 2026
Merged

Remove blocklist markdown images from preview flags#9993
zachlloyd merged 1 commit intomasterfrom
zach/enable-inline-images-mermaid-in-stable

Conversation

@zachlloyd
Copy link
Copy Markdown
Contributor

@zachlloyd zachlloyd commented May 3, 2026

Description

This removes FeatureFlag::BlocklistMarkdownImages from PREVIEW_FLAGS.

We accidentally promoted inline Markdown image rendering in the AI block list to Stable in the latest release because blocklist_markdown_images is already enabled in the default Cargo feature list. This PR aligns the runtime flag lists with that Stable enablement path so the feature is no longer treated as Preview-exclusive.

Mermaid rendering is also already enabled for Stable via the default markdown_mermaid Cargo feature. Together, these defaults allow Stable builds to render inline Markdown images and Mermaid diagrams in agent block output.

Linked Issue

N/A

Screenshots / Videos

N/A — flag-list cleanup only.

Testing

  • cargo fmt
  • cargo clippy --workspace --all-targets --all-features --tests -- -D warnings

Note: the first clippy attempt failed before Rust checks because command-signatures-v2 required Yarn 4 via Corepack while the shell had Yarn 1.22. I ran corepack enable and reran clippy successfully.

Agent Mode

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

Changelog Entries for Stable

CHANGELOG-IMPROVEMENT: Warp now renders inline local images and Mermaid diagrams in agent block output.

Co-Authored-By: Oz [email protected]

Agent artifacts:

The feature was already compiled into Stable via the default Cargo feature list, so keeping it in PREVIEW_FLAGS only makes it appear as Preview-exclusive in the changelog.

Co-Authored-By: Oz <[email protected]>
@cla-bot cla-bot Bot added the cla-signed label May 3, 2026
@oz-for-oss
Copy link
Copy Markdown
Contributor

oz-for-oss Bot commented May 3, 2026

@zachlloyd

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

I completed the review and no human review was requested for this pull request.

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

Powered by Oz

Copy link
Copy Markdown
Contributor

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

Choose a reason for hiding this comment

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

Overview

This PR removes FeatureFlag::BlocklistMarkdownImages from PREVIEW_FLAGS, aligning the preview-only flag list with the already-enabled default Cargo feature path for Stable builds.

Concerns

  • No blocking correctness, security, or spec-alignment concerns found in the changed hunk.

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

@zachlloyd zachlloyd requested a review from zachbai May 3, 2026 21:36
@zachlloyd zachlloyd merged commit 3ce4239 into master May 3, 2026
36 checks passed
@zachlloyd zachlloyd deleted the zach/enable-inline-images-mermaid-in-stable branch May 3, 2026 21:40
zerx-lab pushed a commit to zerx-lab/warp that referenced this pull request May 4, 2026
## Description
This removes `FeatureFlag::BlocklistMarkdownImages` from
`PREVIEW_FLAGS`.

We accidentally promoted inline Markdown image rendering in the AI block
list to Stable in the latest release because `blocklist_markdown_images`
is already enabled in the default Cargo feature list. This PR aligns the
runtime flag lists with that Stable enablement path so the feature is no
longer treated as Preview-exclusive.

Mermaid rendering is also already enabled for Stable via the default
`markdown_mermaid` Cargo feature. Together, these defaults allow Stable
builds to render inline Markdown images and Mermaid diagrams in agent
block output.

## Linked Issue
N/A

## Screenshots / Videos
N/A — flag-list cleanup only.

## Testing
- `cargo fmt`
- `cargo clippy --workspace --all-targets --all-features --tests -- -D
warnings`

Note: the first clippy attempt failed before Rust checks because
`command-signatures-v2` required Yarn 4 via Corepack while the shell had
Yarn 1.22. I ran `corepack enable` and reran clippy successfully.

## Agent Mode
- [x] Warp Agent Mode - This PR was created via Warp's AI Agent Mode

## Changelog Entries for Stable

CHANGELOG-IMPROVEMENT: Warp now renders inline local images and Mermaid
diagrams in agent block output.

Co-Authored-By: Oz <[email protected]>

Agent artifacts:
- Conversation:
https://staging.warp.dev/conversation/7967da60-8ae2-4747-9db4-3bb49f727a32

Co-authored-by: Oz <[email protected]>
@oz-for-oss
Copy link
Copy Markdown
Contributor

oz-for-oss Bot commented May 4, 2026

@Abhishek-Gawade-programmer

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

You can view the conversation on Warp.

I completed the review and no human review was requested for this pull request.

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
Copy link
Copy Markdown
Contributor

oz-for-oss Bot commented May 4, 2026

@Abhishek-Gawade-programmer

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

You can view the conversation on Warp.

I completed the review and no human review was requested for this pull request.

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

Powered by Oz

Copy link
Copy Markdown
Contributor

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

Choose a reason for hiding this comment

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

Overview

This PR removes FeatureFlag::BlocklistMarkdownImages from PREVIEW_FLAGS, which aligns the Preview runtime list with the existing default Cargo feature enablement for stable builds.

Concerns

  • No blocking correctness or security concerns found in the changed hunk.

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

Copy link
Copy Markdown
Contributor

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

Choose a reason for hiding this comment

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

Overview

This PR removes FeatureFlag::BlocklistMarkdownImages from PREVIEW_FLAGS so the preview changelog and channel-specific feature list no longer treat inline block-list Markdown image rendering as Preview-exclusive. The compiled default feature still maps to the runtime BlocklistMarkdownImages flag through enabled_features(), so Stable builds keep the behavior described in the PR.

Concerns

  • No blocking correctness or security concerns found in the changed hunk.

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants