Repository navigation
Conversation
|
Codex review: needs maintainer review before merge. Reviewed July 16, 2026, 1:37 PM ET / 17:37 UTC. Summary PR surface: Tests +15, Other +9. Total +24 across 2 files. Reproducibility: yes. at source level: retaining five bytes from Review metrics: none identified. Merge readiness Overall follows the weaker of proof and patch quality, so missing proof can cap an otherwise strong patch. Rank-up moves:
Risk before merge
Maintainer options:
Next step before merge
Security Review detailsBest possible solution: Land the shared UTF-8-safe tail decoder with both regression cases once the exact merge head is current and green. Do we have a high-confidence way to reproduce the issue? Yes at source level: retaining five bytes from Is this the best way to solve the issue? Yes; fixing the shared bounded-output owner is narrower and more maintainable than special-casing individual boundary checks while preserving the existing byte cap and truncation marker. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against b6e90cbed4c2. Label changesLabel changes:
Label justifications:
Evidence reviewedPR surface: Tests +15, Other +9. Total +24 across 2 files. View PR surface stats
What I checked:
Likely related people:
What the crustacean ranks mean
Shiny media proof means a screenshot, video, or linked artifact directly shows the changed behavior. Runtime, network, CSP, and security claims still need visible diagnostics. How this review workflow works
Review history (1 earlier review cycle)
|
Co-authored-by: qingminlong <[email protected]>
|
Merged via squash.
|
* fix(ci): keep boundary output tails UTF-8 safe * fix(ci): preserve split UTF-8 output tails Co-authored-by: qingminlong <[email protected]> --------- Co-authored-by: Peter Steinberger <[email protected]>
When formatter (oxfmt) error output on a generated TypeScript/JavaScript module exceeds the 16 KiB tail cap and the retained byte window starts inside a multibyte UTF-8 character, the diagnostic tail would begin with a replacement character (�). Add a decodeUtf8Tail helper that skips leading UTF-8 continuation bytes before decoding the byte suffix, matching the same pattern already addressed in scripts/run-additional-boundary-checks.mjs (openclaw#109167). Keep the existing 16 KiB cap and ASCII behavior unchanged.
When formatter (oxfmt) error output exceeds the 16 KiB tail cap and the retained byte window starts inside a multibyte UTF-8 character, the diagnostic tail would begin with a replacement character (�). Add a decodeUtf8Tail helper that skips leading UTF-8 continuation bytes before decoding the byte suffix, matching the existing pattern in scripts/run-additional-boundary-checks.mjs (openclaw#109167). Keep the existing 16 KiB cap and ASCII behavior unchanged.
* fix(scripts): keep format-docs output tails UTF-8 safe When formatter (oxfmt) error output exceeds the 16 KiB tail cap and the retained byte window starts inside a multibyte UTF-8 character, the diagnostic tail would begin with a replacement character (�). Add a decodeUtf8Tail helper that skips leading UTF-8 continuation bytes before decoding the byte suffix, matching the existing pattern in scripts/run-additional-boundary-checks.mjs (#109167). Keep the existing 16 KiB cap and ASCII behavior unchanged. * refactor(scripts): share UTF-8-safe output tails Co-authored-by: 陈志强0668000989 <[email protected]> * test(scripts): prove real formatter UTF-8 failures --------- Co-authored-by: Peter Steinberger <[email protected]>
* fix(scripts): keep format-docs output tails UTF-8 safe When formatter (oxfmt) error output exceeds the 16 KiB tail cap and the retained byte window starts inside a multibyte UTF-8 character, the diagnostic tail would begin with a replacement character (�). Add a decodeUtf8Tail helper that skips leading UTF-8 continuation bytes before decoding the byte suffix, matching the existing pattern in scripts/run-additional-boundary-checks.mjs (openclaw#109167). Keep the existing 16 KiB cap and ASCII behavior unchanged. * refactor(scripts): share UTF-8-safe output tails Co-authored-by: 陈志强0668000989 <[email protected]> * test(scripts): prove real formatter UTF-8 failures --------- Co-authored-by: Peter Steinberger <[email protected]>
* fix(ci): keep boundary output tails UTF-8 safe * fix(ci): preserve split UTF-8 output tails Co-authored-by: qingminlong <[email protected]> --------- Co-authored-by: Peter Steinberger <[email protected]>
What Problem This Solves
Fixes an issue where CI additional boundary-check diagnostics could render replacement characters when byte-bounded subprocess output starts inside a multibyte UTF-8 character.
Why This Change Was Made
The boundary-check output buffer now drops leading UTF-8 continuation bytes after byte-tail trimming and decodes the retained bytes with
StringDecoder. The change stays inside the additional boundary-check script output owner boundary and preserves the existing byte cap and truncation marker.User Impact
CI failure output remains readable for multibyte subprocess diagnostics while still keeping noisy boundary-check logs bounded.
Evidence
06758a37d19535321c39b86c81b831f57183b3baafter merge-refresh ontoupstream/main0903ebe4fa5f4643aaf83e3d59cc5518f80db448.node scripts/run-vitest.mjs test/scripts/run-additional-boundary-checks.test.ts -- -t "drops split UTF-8"passed, 1 file / 2 selected tests.node --input-type=module -e "import { createBoundedOutputBuffer } from './scripts/run-additional-boundary-checks.mjs'; ..."returned{"singleChunk":"[output truncated to last 5 bytes]\\nnew","bufferedOverflow":"[output truncated to last 5 bytes]\\nnew"}forold\u{1f600}new, without replacement characters.git diff --check upstream/main...HEADpassed; diff is limited toscripts/run-additional-boundary-checks.mjsandtest/scripts/run-additional-boundary-checks.test.ts.python .agents\skills\autoreview\scripts\autoreview --mode branch --base upstream/main --codex-bin C:\Users\86158\.codex\codex-pixel-autoreview.cmdpassed withautoreview clean: no accepted/actionable findings reported.gh search prs --repo openclaw/openclaw "run-additional-boundary-checks createBoundedOutputBuffer additional boundary UTF-8"returned only this PR.