fix(agents): keep structured prompt summaries UTF-16 safe#101311
Conversation
|
Codex review: needs maintainer review before merge. Reviewed July 7, 2026, 12:53 AM ET / 04:53 UTC. Summary PR surface: Source +1, Tests +44. Total +45 across 2 files. Reproducibility: yes. Source inspection shows 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. Next step before merge
Security Review detailsBest possible solution: Land the narrow helper-based fix after normal maintainer review and exact-head merge gates, keeping the current caps and prompt marker semantics unchanged. Do we have a high-confidence way to reproduce the issue? Yes. Source inspection shows current main uses raw Is this the best way to solve the issue? Yes. Reusing the existing AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against a596ca1795b6. Label changesLabel changes:
Label justifications:
Evidence reviewedPR surface: Source +1, Tests +44. Total +45 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
|
16a097f to
00ecba7
Compare
00ecba7 to
b35de52
Compare
|
Land-ready proof
Release-note context: this prevents emoji at structured prompt-summary limits from becoming malformed prompt content. The native normal-PR gate keeps root changelog edits release-owned. |
|
Merged via squash.
|
…01311) * fix(agents): keep structured prompt summaries UTF-16 safe * chore: align prompt summary branch with current main * fix(agents): keep structured summaries UTF-16 safe * chore: keep release notes in PR context * chore: keep release notes in PR context --------- Co-authored-by: Peter Steinberger <[email protected]> Co-authored-by: Peter Steinberger <[email protected]>
…01311) * fix(agents): keep structured prompt summaries UTF-16 safe * chore: align prompt summary branch with current main * fix(agents): keep structured summaries UTF-16 safe * chore: keep release notes in PR context * chore: keep release notes in PR context --------- Co-authored-by: Peter Steinberger <[email protected]> Co-authored-by: Peter Steinberger <[email protected]>
…01311) * fix(agents): keep structured prompt summaries UTF-16 safe * chore: align prompt summary branch with current main * fix(agents): keep structured summaries UTF-16 safe * chore: keep release notes in PR context * chore: keep release notes in PR context --------- Co-authored-by: Peter Steinberger <[email protected]> Co-authored-by: Peter Steinberger <[email protected]>
Summary
Linked context
Real behavior proof (required for external PRs)
Tests and validation
Risk checklist
Did user-visible behavior change? (
Yes/No)Yes. Malformed truncated text is now avoided while preserving existing caps and truncation markers.
Did config, environment, or migration behavior change? (
Yes/No)No.
Did security, auth, secrets, network, or tool execution behavior change? (
Yes/No)No.
What is the highest-risk area?
embedded agent prompt summary formatting.
How is that risk mitigated?
The patch is limited to the existing truncation boundary and is covered by focused regression proof above.
Current review state
What is the next action?
ClawSweeper re-review and maintainer review after this proof/body refresh.
What is still waiting on author, maintainer, CI, or external proof?
Nothing is waiting on the author after this proof update; waiting on CI/ClawSweeper/maintainer review.
Which bot or reviewer comments were addressed?
Addressed ClawSweeper's needs-proof feedback by using exact Real behavior proof field labels and adding copied terminal output from the current PR head.