Skip to content

[BUG] Agent chat code blocks are unreadable in Studio light mode #17673

@aisensiy

Description

@aisensiy

Description

In Studio's agent chat, code blocks in assistant replies are unreadable in light mode. The code block header and body are hardcoded to white text (text-white) on a transparent background, so in light mode they render as white text on the white page (white-on-white).

Steps to reproduce

  1. Open Studio and switch the theme to Light (Settings → Theme).
  2. Chat with an agent so it replies with a fenced code block (e.g. a mermaid or python block).
  3. The code is effectively invisible — white text on a white background.

Expected

Code blocks in the agent chat should stay readable in light mode and follow the active light/dark theme, like the rest of Studio.

Notes

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions