Skip to content

[feature] allow images to be displayed in output view and copilot view #1355

Open
@sinedied

Description

@sinedied

When using the generateImage() function, if you have the model to create markdown links to display the images, it will be blocked and not displayed.

In the output view, I once got a security prompt asking me if I wanted to show the blocked content, but despite allowing it images are never displayed. I noticed the URLs gets prefixed by sandbox: which may be related.

The same occurs in the Copilot output, though I got it working by adding manually the image link to the output like this:

env.output.appendContent(`![](${image.filename})`

Using this method the images gets displayed in Copilot window, but still not in the output view. When using this, I don't get the sandbox: prefix.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions