fix(codex): keep app-inventory cache/runtime label truncation UTF-16 safe#101634
fix(codex): keep app-inventory cache/runtime label truncation UTF-16 safe#101634lsr911 wants to merge 1 commit into
Conversation
…safe Replace raw .slice(0, N) with truncateUtf16Safe in two Codex app-server paths: - app-inventory-cache: redacted error data strings @500 - run-attempt: dynamic tool runtime type label @80 Both truncate user/agent-generated text that may contain emoji or CJK characters.
|
Codex review: needs maintainer review before merge. Reviewed July 7, 2026, 8:23 AM ET / 12:23 UTC. Summary PR surface: Source +52. Total +52 across 2 files. Reproducibility: yes. from source and PR proof: current main uses raw 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:
Next step before merge
Security Review detailsBest possible solution: Land a narrow Codex app-server fix that keeps extension code on the existing Plugin SDK text helper and leaves broader truncation sweeps to separate focused PRs. Do we have a high-confidence way to reproduce the issue? Yes, from source and PR proof: current main uses raw Is this the best way to solve the issue? Yes: the existing AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against 2ba622ca3019. Label changesLabel changes:
Label justifications:
Evidence reviewedPR surface: Source +52. Total +52 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
|
|
Closed as superseded by #101685, landed in |
What Problem This Solves
Two Codex app-server call sites truncate text with raw
.slice(0, N):Both paths handle text from agent output that may contain emoji/CJK characters.
Why This Change Was Made
truncateUtf16Safefromopenclaw/plugin-sdk/text-utility-runtimeis the SDK-appropriate import for extension code.Evidence
Branch prerun (commit adadfa0)
Files Changed
extensions/codex/src/app-server/app-inventory-cache.ts.slice(0, 500)→truncateUtf16Safe+ importextensions/codex/src/app-server/run-attempt.ts.slice(0, 80)→truncateUtf16Safe+ import