fix(coding-agent): preserve indentation in ANSI-rendered HTML export

HTML div elements collapse whitespace by default, stripping leading
spaces from ANSI-rendered tool output (e.g. JSON code blocks).
Added white-space: pre-wrap to .ansi-line class.
This commit is contained in:
Aliou Diallo 2026-02-05 02:10:05 +01:00
parent 634899aba0
commit dc5a0b582d
2 changed files with 8 additions and 0 deletions

View file

@ -7,6 +7,10 @@
- API keys in `auth.json` now support shell command resolution (`!command`) and environment variable lookup, matching the behavior in `models.json`
- Added `minimal-mode.ts` example extension demonstrating how to override built-in tool rendering for a minimal display mode
### Fixed
- Fixed HTML export losing indentation in ANSI-rendered tool output (e.g. JSON code blocks in custom tool results)
## [0.51.6] - 2026-02-04
### New Features

View file

@ -503,6 +503,10 @@
display: block;
}
.ansi-line {
white-space: pre-wrap;
}
.tool-images {
}