codex/codex-rs/utils
Abhinav aa88a0333c Preserve tool output truncation budgets across resume and fork (#44248)
## Why

Replaying tool outputs under a different model can expand or shrink the history shown to the model if truncation uses the new model's budget.

## What changed

Save the originating history truncation budget on function and custom tool outputs and reuse it during replay, preserving existing tool-specific overrides. Include the existing 20% serialization allowance once, before converting byte budgets to tokens.

Rename the metadata field to `history_truncation_token_limit` while retaining `fallback_token_limit_override` as its serialized name for compatibility.

## Testing

Add regression coverage for resume and fork with different model budgets, including custom tool outputs. Extend unit coverage for existing overrides and byte-budget conversion.

GitOrigin-RevId: a62c8fd3e43198e2252b150fba72f022939c1070
History 2026-09-09 17:55:00 +00:00
..
absolute-path Support execution-host context when resolving cloud config (#38086) 2026-08-11 23:31:26 +00:00
approval-presets tui: pass active permission profiles through app commands (#22891) 2026-05-15 22:42:35 +00:00
audio Reject empty audio payloads in data URLs (#44070) 2026-09-09 05:56:45 +00:00
cache Disable empty Cargo test targets (#21584) 2026-05-07 15:44:17 -07:00
cargo-bin build: run buildifier from just fmt (#28125) 2026-06-13 21:43:39 -07:00
cli Add managed worktrees to codex exec (#42652) 2026-09-04 01:56:38 +00:00
elapsed Disable empty Cargo test targets (#21584) 2026-05-07 15:44:17 -07:00
fuzzy-match Disable empty Cargo test targets (#21584) 2026-05-07 15:44:17 -07:00
git-discovery Bound Git root discovery for metadata enrichment (#42132) 2026-09-01 20:41:32 +00:00
home-dir Disable empty Cargo test targets (#21584) 2026-05-07 15:44:17 -07:00
image Centralize prompt image detail modes (#42624) 2026-09-03 22:22:48 +00:00
json-to-toml Disable empty Cargo test targets (#21584) 2026-05-07 15:44:17 -07:00
oss Route Ollama through the shared HTTP client (#36078) 2026-07-30 04:26:36 +00:00
output-truncation Preserve tool output truncation budgets across resume and fork (#44248) 2026-09-09 17:55:00 +00:00
path-uri Resolve permission requests in the executor context (#42146) 2026-09-01 22:08:08 +00:00
path-utils Preserve runtime workspace roots across thread resume (#43848) 2026-09-08 16:24:38 +00:00
plugins Harden unsandboxed patch filesystem access (#39659) 2026-08-20 08:10:08 +00:00
pty Add installed voice host lifecycle support (#41902) 2026-08-31 19:44:44 +00:00
readiness [codex] Remove async_trait from first-party code (#27475) 2026-06-11 18:16:39 -07:00
redacted-string Keep credentials out of app-server logs (#39993) 2026-08-21 19:04:32 +00:00
rustls-provider Use aws-lc-rs for rustls crypto provider (#27706) 2026-06-15 11:32:13 -07:00
sandbox-summary Remove unused Rust helpers (#34345) 2026-07-20 13:45:29 +00:00
sleep-inhibitor Keep feature tests focused on behavior (#33864) 2026-07-17 16:17:29 +00:00
stream-parser Disable empty Cargo test targets (#21584) 2026-05-07 15:44:17 -07:00
string Disable empty Cargo test targets (#21584) 2026-05-07 15:44:17 -07:00
template Disable empty Cargo test targets (#21584) 2026-05-07 15:44:17 -07:00