openclaw/scripts/docs-i18n
clawsweeper[bot] 5ce413a2c7
fix(i18n): retain Codex error tails in logs (#93687)
Summary:
- This PR changes the docs i18n Codex command-output preview to keep a short head plus retained tail, and adds Go unit coverage for stdout and stderr tails.
- PR surface: Other +20. Total +20 across 2 files.
- Reproducibility: yes. Source inspection of current main and `v2026.6.6` shows long output is truncated to the prefix only, and the PR's focused tests model the stdout/stderr tail cases that lose final API details.

Automerge notes:
- No ClawSweeper repair was needed after automerge opt-in.

Validation:
- ClawSweeper review passed for head b510b598c6.
- Required merge gates passed before the squash merge.

Prepared head SHA: b510b598c6
Review: https://github.com/openclaw/openclaw/pull/93687#issuecomment-4720840859

Co-authored-by: clawsweeper <274271284+clawsweeper[bot]@users.noreply.github.com>
Co-authored-by: Mason Huang <8814856+hxy91819@users.noreply.github.com>
Approved-by: hxy91819
2026-06-16 16:14:12 +00:00
..
testdata/behavior
behavior_baseline_test.go
codex_command_unix.go
codex_command_windows.go
codex_command_windows_test.go
doc_chunked_raw.go
doc_mode.go fix(docs): finalize i18n postprocess before skip (#92668) 2026-06-13 13:17:03 +00:00
doc_mode_test.go
glossary.go
go.mod
go.sum
html_translate.go
localized_links.go
localized_links_test.go
main.go fix(docs): finalize i18n postprocess before skip (#92668) 2026-06-13 13:17:03 +00:00
main_test.go fix(docs): finalize i18n postprocess before skip (#92668) 2026-06-13 13:17:03 +00:00
markdown_segments.go
masking.go
order.go
placeholders.go
process.go fix(docs): finalize i18n postprocess before skip (#92668) 2026-06-13 13:17:03 +00:00
prompt.go
prompt_test.go
relocalize.go fix(docs): finalize i18n postprocess before skip (#92668) 2026-06-13 13:17:03 +00:00
relocalize_test.go fix(docs): finalize i18n postprocess before skip (#92668) 2026-06-13 13:17:03 +00:00
segment.go
tm.go
translator.go fix(i18n): retain Codex error tails in logs (#93687) 2026-06-16 16:14:12 +00:00
translator_test.go fix(i18n): retain Codex error tails in logs (#93687) 2026-06-16 16:14:12 +00:00
util.go
util_test.go