You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Bug] Unsloth Studio: ANSI escape codes render as literal text in the tool output pane #7962
Any command that emits colour or cursor control shows its escape codes as visible text instead of styled output. ls --color=always, grep --color, npm, cargo, pytest all do this by default when they think they have a TTY.
studio/frontend/src/components/assistant-ui/tool-fallback.tsx:327 puts the raw result straight into a <pre>:
<preclassName="aui-tool-fallback-result-content whitespace-pre-wrap">{typeofresult==="string" ? result : JSON.stringify(result,null,2)}</pre>
Nothing strips or interprets SGR sequences, so \x1b[32m reaches the DOM as text.
Fix is either strip ANSI before render, or parse SGR into spans if coloured output is wanted. Stripping is the smaller change and matches what the pane is for.
changed the title [-][Bug] Studio: ANSI escape codes render as literal text in the tool output pane[/-][+][Bug] Unsloth Studio: ANSI escape codes render as literal text in the tool output pane[/+]on Aug 6, 2026
Activity
Strip ANSI escape codes from Studio tool output panes
Add Playwright Studio stack smoke and screenshot fixtures for unsloth…
[-][Bug] Studio: ANSI escape codes render as literal text in the tool output pane[/-][+][Bug] Unsloth Studio: ANSI escape codes render as literal text in the tool output pane[/+]Strip ANSI escape codes from Studio tool output panes
Add Playwright Studio stack smoke and screenshot fixtures for unsloth…
[Fix] Unsloth Studio: Strip ANSI escape codes from Studio tool output…