The best way to control Claude Code, Codex and more from any computer or phone
Mirrored from https://github.com/Camo67/t3code.git
Synced Nov 21, 12:15 UTC
fix(web): notebook error previews no longer show terminal color codes (#31929)
Co-authored-by: Geezy <igor.licko@gloryck.com> Co-authored-by: Julius Marminge <julius0216@outlook.com>
TheGuyWithHAT committed
Nov 15, 2026 at 05:06 UTC
dde53b11f3141e8cf9995d23234d00b04421f655
2 files changed
+2
-2
apps/web/src/components/files/FilePreviewPanel.test.ts
+1
-1
@@ -358,7 +358,7 @@ Third}`;
358
output_type: "error",
359
traceback: [
360
"\u001b[31mTraceback (most recent call last):\n\u001b[0m",
361
- "\u001b[32mCell In[3], line 1\n----> 1 fail()\n\u001b[0m\u001b[39m",
361
+ "\u001b[38:2::255:0:0mCell In[3], line 1\n----> 1 fail()\n\u001b[0m\u001b[39m",
362
"\u001b[31mValueError: preview proof\u001b[0m",
363
"final entry",
364
],
packages/shared/src/terminalOutput.ts
+1
-1
@@ -960,7 +960,7 @@ export function terminalOutputSpans(
960
return spans;
961
}
962
963
-const SGR_PATTERN = new RegExp(`${ESC}\\[[0-9;]*m`, "gu");
963
+const SGR_PATTERN = new RegExp(`${ESC}\\[[0-9;:]*m`, "gu");
964
965
export function terminalOutputPlainText(text: string): string {
966
return text.replace(SGR_PATTERN, "");