feat: Add ANSI Color/Formatting Support for (Jupyter Lab) STDOUT/STDERR Console Outputs #5557

Open
opened 2025-11-11 16:24:27 -06:00 by GiteaMirror · 0 comments
Owner

Originally created by @eSoCGN on GitHub (Jun 16, 2025).

Check Existing Issues

  • I have searched the existing issues and discussions.

Problem Description

Hi open-webui team!

First off, I want to say a huge thank you and big THANK YOU for your amazing work on this project. OpenWebUI has become my daily Swiss army knife, the pace of development and the quality of features are truly remarkable not to say IMPRESSIVE.

I would love to see support for interpreting and rendering ANSI color codes and formatting in the STDOUT/STDERR console outputs, similar to how code blocks are already beautifully colorized in the chat interface. In my case the "Code Interpreter" is connected with a separete "Jupyter Lab" Server, which works flawless.

Background:
Currently, when using the "Code Interpreter" (especially with Jupyter or local terminals), outputs from commands (e.g. "!pip install") or other CLI outputs often include raw ANSI escape sequences. This results in cluttered and hard-to-read outputs in the chat bubbles, whereas code blocks are rendered with proper syntax highlighting and colors.

Image

Desired Solution you'd like

Possible Implementation Ideas:

  • Parse and render ANSI escape sequences in STDOUT/STDERR outputs, just as is done in the code blocks.
  • Optionally, provide a toggle to enable/disable ANSI rendering for users who prefer plain text.

Alternatives Considered

Why this matters:

  • Many CLI tools use ANSI colors for progress bars, errors, warnings, and other important messages.
  • Properly rendered outputs would greatly improve readability and user experience, especially for those running code that produces colored logs or formatted terminal output.
  • Since code blocks already support colorization, extending this capability to STDOUT/STDERR would provide a consistent and visually appealing interface throughout OpenWebUI.

Additional Context

I’m really excited about the potential for this enhancement and would be thrilled to see it in a future release.
Thank you again for your dedication and for building such a fantastic open-source project!

Keep up the great work! 🚀

Kind regards,
Eric

Originally created by @eSoCGN on GitHub (Jun 16, 2025). ### Check Existing Issues - [x] I have searched the existing issues and discussions. ### Problem Description Hi open-webui team! First off, I want to say a huge thank you and big THANK YOU for your amazing work on this project. OpenWebUI has become my daily Swiss army knife, the pace of development and the quality of features are truly remarkable not to say IMPRESSIVE. I would love to see support for interpreting and rendering **ANSI color codes** and formatting in the **STDOUT/STDERR** console outputs, similar to how code blocks are already beautifully colorized in the chat interface. In my case the "Code Interpreter" is connected with a separete "Jupyter Lab" Server, which works flawless. **Background:** Currently, when using the "Code Interpreter" (especially with Jupyter or local terminals), outputs from commands (e.g. "!pip install") or other CLI outputs often include raw ANSI escape sequences. This results in cluttered and hard-to-read outputs in the chat bubbles, whereas code blocks are rendered with proper syntax highlighting and colors. ![Image](https://github.com/user-attachments/assets/3ca112a0-9b0f-40b5-b4f9-a539bcb431bd) ### Desired Solution you'd like **Possible Implementation Ideas:** - Parse and render ANSI escape sequences in STDOUT/STDERR outputs, just as is done in the code blocks. - Optionally, provide a toggle to enable/disable ANSI rendering for users who prefer plain text. ### Alternatives Considered **Why this matters:** - Many CLI tools use ANSI colors for progress bars, errors, warnings, and other important messages. - Properly rendered outputs would greatly improve readability and user experience, especially for those running code that produces colored logs or formatted terminal output. - Since code blocks already support colorization, extending this capability to STDOUT/STDERR would provide a consistent and visually appealing interface throughout OpenWebUI. ### Additional Context I’m really excited about the potential for this enhancement and would be thrilled to see it in a future release. Thank you again for your dedication and for building such a fantastic open-source project! Keep up the great work! 🚀 Kind regards, Eric
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/open-webui#5557