
Ahmed IbrahimandGitHub
952656356a
[codex] Warn clearly when code mode output is truncated (#28467)
## Summary
- make `formatted_truncate_text` prepend `Warning: truncated output
(original token count: N)` above the existing `Total output lines`
header
- update direct formatter, unified-exec, user-shell, and code-mode
expectations
- add core unit coverage that runs in Bazel without requiring the
skipped V8-backed code-mode integration suite
## Validation
- `cargo test -p codex-utils-output-truncation -- --nocapture` (17
passed)
- `cargo test -p codex-core --lib
truncated_text_output_starts_with_warning -- --nocapture`
- `cargo test -p codex-core --test all
clamps_model_requested_max_output_tokens_to_policy -- --nocapture` (2
passed)
- `cargo test -p codex-core --test all
unified_exec_formats_large_output_summary -- --nocapture`
- `cargo test -p codex-core --test all
user_shell_command_output_is_truncated_in_history -- --nocapture`
- Bazel CI exercises the shared formatter and downstream integration
expectations
2026-06-16 10:37:06 -07:00
..
2026-06-16 11:46:59 +02:00
2026-06-16 11:46:59 +02:00
2026-06-16 11:46:59 +02:00
2026-06-15 15:05:28 -07:00
2026-06-16 11:46:59 +02:00
2026-06-15 22:07:07 +00:00
2026-06-12 11:38:01 -07:00
2026-06-16 14:34:54 +02:00
2026-06-15 20:10:53 -07:00
2026-06-16 04:55:20 +00:00
2026-06-16 10:37:06 -07:00
2026-06-15 20:10:53 -07:00
2026-06-16 09:50:55 -07:00
2026-06-15 20:10:53 -07:00
2026-06-15 15:05:28 -07:00
2026-06-15 15:05:28 -07:00
2026-06-15 15:05:28 -07:00
2026-06-15 15:05:28 -07:00
2026-06-15 15:05:28 -07:00
2026-06-15 20:10:53 -07:00
2026-06-15 15:05:28 -07:00
2026-06-15 15:05:28 -07:00
2026-06-15 15:05:28 -07:00
2026-06-15 15:05:28 -07:00
2026-06-15 15:05:28 -07:00
2026-06-10 12:54:21 +02:00
2026-06-15 15:24:33 -07:00
2026-06-15 15:24:33 -07:00
2026-06-16 04:55:20 +00:00
2026-06-15 15:05:28 -07:00
2026-06-15 15:05:28 -07:00
2026-06-05 11:20:52 -07:00
2026-06-05 11:20:52 -07:00
2026-06-05 11:20:52 -07:00
2026-06-03 10:41:41 -07:00
2026-06-12 16:58:42 -07:00
2026-06-08 21:32:46 -07:00
2026-06-16 14:34:54 +02:00
2026-06-15 15:05:28 -07:00
2026-06-15 15:05:28 -07:00
2026-06-11 13:42:09 -07:00
2026-06-12 22:03:51 +00:00
2026-05-26 20:59:47 -07:00
2026-06-15 16:15:07 -07:00
2026-06-15 15:24:33 -07:00
2026-06-15 15:24:33 -07:00
2026-06-15 15:24:33 -07:00
2026-06-15 11:10:51 +02:00
2026-06-15 08:28:02 -07:00
2026-05-20 17:10:37 -07:00
2026-06-11 18:16:39 -07:00
2026-06-02 12:10:14 +02:00
2026-06-14 00:14:26 -07:00
2026-06-12 13:50:04 -07:00
2026-06-15 15:05:28 -07:00
2026-06-16 11:46:59 +02:00
2026-06-15 16:15:58 -07:00
2026-06-15 17:14:22 -07:00
2026-06-01 18:45:07 +00:00
2026-06-11 13:42:09 -07:00
2026-05-26 11:01:18 +02:00
2026-06-01 23:33:42 +00:00
2026-05-19 11:03:47 -07:00
2026-06-16 14:34:54 +02:00
2026-06-16 14:34:54 +02:00
2026-06-11 16:55:01 -07:00
2026-06-15 20:10:53 -07:00
2026-06-15 20:10:53 -07:00
2026-06-15 08:18:13 -07:00
2026-06-15 08:18:13 -07:00
2026-06-03 15:38:30 +02:00
2026-06-03 10:41:41 -07:00
2026-06-15 15:05:28 -07:00
2026-06-15 15:05:28 -07:00
2026-06-11 13:42:09 -07:00
2026-06-15 16:15:07 -07:00
2026-06-15 20:10:53 -07:00
2026-06-15 15:05:28 -07:00
2026-06-12 13:50:04 -07:00
2026-06-10 17:17:44 -07:00
2026-06-10 17:17:44 -07:00
2026-06-11 13:42:09 -07:00
2026-06-11 13:42:09 -07:00
2026-06-15 15:05:28 -07:00
2026-06-15 15:05:28 -07:00
2026-05-28 15:26:55 -07:00
2026-05-28 15:26:55 -07:00
2026-05-22 12:13:52 +02:00
2026-05-29 11:01:44 -07:00