Truncate input text in protocol debug output (#49415)

## What changed

Use `derive_more::Debug` for `ContentItem` and `UserInput` to limit debug formatting of `ContentItem::InputText` and `UserInput::Text` to a prefix of at most 512 bytes, ending at a UTF-8 character boundary. Append the full text length in bytes to each preview.

GitOrigin-RevId: ca711dde8f0e3ba7047103415dbc1836f6401e61
This commit is contained in:
Dmitriy Kovalenko
2026-09-30 00:51:15 +00:00
committed by copyberry
parent 16a7c0f0eb
commit d940fb21f3
4 changed files with 6 additions and 2 deletions
+1
View File
@@ -4268,6 +4268,7 @@ dependencies = [
"codex-utils-path-uri",
"codex-utils-redacted-string",
"codex-utils-string",
"derive_more 2.1.1",
"encoding_rs",
"gix-url",
"globset",