Skip to content

Split oversized UTF-8 diff lines using byte boundaries - #1264

Merged
mergify[bot] merged 2 commits into
mainfrom
lean178/1196-linear-utf8-diff
Nov 26, 2026
Merged

mergify[bot] merged 2 commits into
mainfrom
lean178/1196-linear-utf8-diff

Conversation

@eowca

@eowca eowca commented Nov 26, 2026 •

Copy link
Copy Markdown
Contributor

The chunked review fallback now encodes each oversized line once and splits its bytes at UTF-8 character boundaries. Chunk sizes and ordinary file and line handling stay the same.

Closes #1196

Validation

Recorded for 47d499db73a1

  • uv run --group dev ruff check src tests: exit 0
  • uv run --group dev tach check: exit 0
  • uv run --python 3.14 python scripts/check_architecture_docs.py: exit 0
  • scripts/size_budget.sh: exit 0
  • uv run --group dev pytest -q: exit 0
  • The new 6,033-character mixed-width regression failed on the old code after it passed 3,124,178 characters through encoding. With the fix, it passes the five-times-input bound, every chunk fits, and concatenation reproduces the original diff.
  • Both splitter tests, Ruff, and the size budget on the branch base passed.

Open in [code]smith · Need help on this PR? Tag @codesmith-bot with what you need.

Review

  • primary, claude, 8420a17, approve

Architecture-Review: unchanged; oversized diff chunks still use the same budget and preserve review fallback behavior.
Co-Authored-By: Codex <noreply@openai.com>
@eowca
eowca marked this pull request as draft November 26, 2026 01:06

@loopzero-feder-positronics loopzero-feder-positronics Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

loopzero primary review by claude on 8420a1782db796bac738336e36275c07f41cc2df, 21.5s: approve (0 critical, 0 important, 0 suggestion)

Settings per native call (launch configuration and CLI claims, not backend attestation):

  • Call 1: requested model claude-opus-5-5 (effort medium); CLI-reported model claude-opus-5-5 (effort unknown); configured model claude-opus-5-5 (effort medium)

Native Claude output is retained in the restricted local review receipt.

@eowca
eowca marked this pull request as ready for review November 26, 2026 10:18
@eowca

eowca commented Nov 26, 2026

Copy link
Copy Markdown
Contributor Author

@Mergifyio queue

@mergify

mergify Bot commented Nov 26, 2026 •

Copy link
Copy Markdown

✅ Merged into main as 1e5711a at 10:24 UTC

5 min in the queue, 4 min of it CI.

So far

  • ✅ Entered the queue Thu 26 Nov, 10:20 · rule main · triggered by @eowca with the @mergifyio queue command
  • ✅ Passed · draft #1802
  • ✅ Merged 10:24 · 1e5711a · squash
3 merge conditions met
  • github-review-approved · required by GitHub repository ruleset rule main: PR only, Mergify queue, existing checks required
  • any of · required by GitHub repository ruleset rule main: PR only, Mergify queue, existing checks required:
    • check-success = checks
    • check-neutral = checks
    • check-skipped = checks
  • any of · required by GitHub repository ruleset rule main: PR only, Mergify queue, existing checks required:
    • check-success = Loop-zero Eligibility
    • check-neutral = Loop-zero Eligibility
    • check-skipped = Loop-zero Eligibility

Times in UTC · dashboard · how the merge queue works

@mergify mergify Bot added the queued label Nov 26, 2026
@eowca

eowca commented Nov 26, 2026

Copy link
Copy Markdown
Contributor Author

No description provided.

@mergify
mergify Bot merged commit 1e5711a into main Nov 26, 2026
13 checks passed
@mergify mergify Bot removed the queued label Nov 26, 2026
@eowca
eowca deleted the lean178/1196-linear-utf8-diff branch November 26, 2026 10:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Split long UTF-8 diff lines without repeatedly encoding almost the same prefix

1 participant