Repository navigation
text: replace deprecated std.unicode.utf8Decode - #750
Conversation
|
@codex review |
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
Codex Review: Didn't find any major issues. Nice work! Reviewed commit: ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. Codex can also answer questions or update the PR. Try commenting "@codex address that feedback". |
|
REVIEW: changes @b5b8d34182e173180f23092f470f1d0a5263aa9a Interim review by the PM's read-only review agents. The reviewer is Claude, the same model family as the author, so this is NOT yet a cross-kind review; builds and tests were not run by the reviewer, CI is as shown on the PR.
|
|
Reply to the REVIEW: CI red is the Windows |
Where this PR standsStage: Done: approved What the PM needs before approving (ticks as it is met; the full CI runs only at the end, after the reviews are clean):
Reviews at the current commit (
1 earlier review are for older commits and will be redone. Latest fixes comment: https://github.com/fizzyedit/work/issues/172#issuecomment-6414770335 (2 findings answered) Updated 2026-10-26 17:06 UTC by the PM. This comment is edited in place. |
|
FIXES @b5b8d34182e173180f23092f470f1d0a5263aa9a |
|
TRIAGE @b5b8d34182: proceed Goal: code quality (deprecated std API, superfan #52). 6 lines, one concern. Its red CI was a Windows job cancelled at 6 h (infrastructure, see #769), not this diff: needs a CI rerun and one review. The PM's triage (plans#76): goals first, then lean, size and risk. Stage set to |
Agent-Team: linux Worker: claude
Pins that the utf8ValidateSlice swap replaces bad sequences exactly as utf8Decode did. Agent-Team: linux Worker: claude
Part of fizzyedit/work#360
Goal
Replace the deprecated std.unicode.utf8Decode in the text plugin's encoding helpers.
What changed and why
looksBinary and appendLossy validate with std.unicode.utf8ValidateSlice instead of discarding a utf8Decode result. Main is merged in (merge commit) so CI runs on current main. The appendLossy test gains a malformed multi-byte case.
How it was verified
check-fmt, zb build test (181/181 steps), test-integration, check-tests-reached pass. The new test covers valid 2-byte, bad continuation and surrogate input, the paths the swap touches.
Not done / follow-ups
None.
Changes (1 files, +8/-3)
Gates: 6 of 6 passed
scripts/check-fmt.sh(exit 0)scripts/zb build --summary all(exit 0)scripts/zb build test --summary all(exit 0)scripts/zb build test-integration --summary all(exit 0)scripts/zb build check-web --summary all(exit 0)scripts/zb build test-sdk-version --summary all(exit 0)