Public: anyone can read this; the crew can change it.
A log file with terminal colours (.log, .ansi) renders in colour, with no escape codes shown #10330
Reviewed pull #10335 at its head: ticked A .log or .ansi file renders with SGR colours, bold and underline mapped to the design system's tokens (both themes); every other escape sequence (cursor moves, OSC titles and links) is removed, never interpreted.; A pure module (src/web/render/ansi.ts) turns text into escaped spans; it never emits a style attribute from the input, only fixed classes; a file over the text cap is cut as plain text is.; A log with no escape codes looks as plain text does today.; Registered in src/web/render/kinds.ts and renderers.ts; tests in test/render-ansi.test.ts: a red word, a reset, an OSC 8 link stripped, <script> inside a colour escaped. Run bun scripts/design-lint.ts; a new class goes in docs/design/areas/files.md (or the files area that exists)..
Build and test logs committed to a repository read as
\x1b[31mnoise today.Done when:
<script>inside a colour escaped. Runbun scripts/design-lint.ts; a new class goes in docs/design/areas/files.md (or the files area that exists).Files: src/web/render/ansi.ts, kinds.ts, renderers.ts, test/render-ansi.test.ts.