[Feature] Enhance non-image files display during agent runs #21554

Open
opened 2026-02-21 20:13:11 -05:00 by yindo · 1 comment
Owner

Originally created by @IthacaDream on GitHub (Jan 9, 2026).

Originally assigned to: @IthacaDream on GitHub.

Self Checks

  • I have read the Contributing Guide and Language Policy.
  • I have searched for existing issues search for existing issues, including closed ones.
  • I confirm that I am using English to submit this report, otherwise it will be closed.
  • Please do not modify this template :) and fill in all the required fields.

1. Is this request related to a challenge you're experiencing? Tell me about your story.

Issue:

Non-image files currently in the agent-chat process will not be rendered.

Image

Description:

  • During agent runs, the web UI currently only renders image-type message files.
  • When an intermediate tool produces a non-image file (e.g., a .pptx), the page does not display that file in the streaming output, so users cannot see or access the generated file.
  • This limits agent workflows that produce documents, presentations, or other useful artifacts.

2. Additional context or comments

No response

3. Can you help us with this feature?

  • I am interested in contributing to this feature.
Originally created by @IthacaDream on GitHub (Jan 9, 2026). Originally assigned to: @IthacaDream on GitHub. ### Self Checks - [x] I have read the [Contributing Guide](https://github.com/langgenius/dify/blob/main/CONTRIBUTING.md) and [Language Policy](https://github.com/langgenius/dify/issues/1542). - [x] I have searched for existing issues [search for existing issues](https://github.com/langgenius/dify/issues), including closed ones. - [x] I confirm that I am using English to submit this report, otherwise it will be closed. - [x] Please do not modify this template :) and fill in all the required fields. ### 1. Is this request related to a challenge you're experiencing? Tell me about your story. ### Issue: Non-image files currently in the agent-chat process will not be rendered. <img width="282" height="196" alt="Image" src="https://github.com/user-attachments/assets/2eed0cf9-a18d-437e-973d-6380511e4cac" /> ### Description: - During agent runs, the web UI currently only renders image-type message files. - When an intermediate tool produces a non-image file (e.g., a .pptx), the page does not display that file in the streaming output, so users cannot see or access the generated file. - This limits agent workflows that produce documents, presentations, or other useful artifacts. ### 2. Additional context or comments _No response_ ### 3. Can you help us with this feature? - [x] I am interested in contributing to this feature.
yindo added the 💪 enhancement label 2026-02-21 20:13:11 -05:00
Author
Owner

@vidushi-7 commented on GitHub (Jan 9, 2026):

Assign different supported file format/types to a supported_file_types_list

Let's pair up the JSON prompt with Jinja templates here

Supported Formats and Runs

{% for file in supported_file_types_list %}
File Type: {{ file }}
{% for run in agent_runs_list %}

  • Agent Task: {{ run }}
    {% endfor %}
    {% endfor %}
#complex_prompt_engineering
#beginner
@vidushi-7 commented on GitHub (Jan 9, 2026): ``` Assign different supported file format/types to a supported_file_types_list Let's pair up the JSON prompt with Jinja templates here ``` ### Supported Formats and Runs {% for file in supported_file_types_list %} File Type: {{ file }} {% for run in agent_runs_list %} - Agent Task: {{ run }} {% endfor %} {% endfor %} ``` #complex_prompt_engineering #beginner
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langgenius/dify#21554