Move JSON byte counting into codex-utils-string (#61465)

Export `serialized_json_bytes` from `codex-utils-string` and update core callers to use the shared helper. Preserve byte counting without retaining the serialized output.

GitOrigin-RevId: 9c75b05592d3171b9a0d54517f8f3a4281fde987
This commit is contained in:
Ruslan Nigmatullin
2026-11-14 05:00:21 +00:00
committed by copyberry
parent ecf54824c6
commit 336b19ab26
7 changed files with 26 additions and 27 deletions
@@ -39,7 +39,7 @@ use crate::tools::context::ToolOutput;
use crate::tools::context::ToolPayload;
use crate::tools::metadata_metrics;
use crate::tools::router::ToolCall;
use crate::utils::json::serialized_json_bytes;
use codex_utils_string::serialized_json_bytes;
mod seen_ids;