mirror of
https://github.com/getcompanion-ai/co-mono.git
synced 2026-04-16 12:03:23 +00:00
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:
parent
634899aba0
commit
dc5a0b582d
2 changed files with 8 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -503,6 +503,10 @@
|
|||
display: block;
|
||||
}
|
||||
|
||||
.ansi-line {
|
||||
white-space: pre-wrap;
|
||||
}
|
||||
|
||||
.tool-images {
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue