mirror of
https://github.com/openai/codex.git
synced 2026-10-20 17:38:45 +00:00
## Why `ansi_escape_line` logged the rendered contents of every line when given multiline input, allowing large payloads to inflate warning logs. ## What changed Replace line contents in the warning with structured `input_bytes` and `line_count` fields. Preserve the existing behavior of returning the styled first line. ## Testing Enable unit tests for `codex-ansi-escape` and add coverage with small and 128 KiB tails, asserting the exact warning fields and preservation of first-line styling. GitOrigin-RevId: 4be985b4442eaa12f7fdee8a583d6e9714c618d8
23 lines
444 B
TOML
23 lines
444 B
TOML
[package]
|
|
name = "codex-ansi-escape"
|
|
version.workspace = true
|
|
edition.workspace = true
|
|
license.workspace = true
|
|
|
|
[lib]
|
|
name = "codex_ansi_escape"
|
|
path = "src/lib.rs"
|
|
doctest = false
|
|
|
|
[lints]
|
|
workspace = true
|
|
|
|
[dependencies]
|
|
ansi-to-tui = { workspace = true }
|
|
ratatui = { workspace = true }
|
|
tracing = { workspace = true, features = ["log"] }
|
|
|
|
[dev-dependencies]
|
|
pretty_assertions = { workspace = true }
|
|
tracing-subscriber = { workspace = true }
|