You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Fix dead UTF-8 validation check and PR failure losing commit info
Bug 1: Replace no-op Buffer.from try/catch with real unpaired surrogate
detection. Buffer.from(string, utf-8) never throws for JS strings, making
the previous check dead code. The new regex detects lone surrogates which
are valid in JS strings but not valid UTF-8.
Bug 2: Wrap PR creation in its own try/catch so a PR failure (network,
permissions, rate limit) does not lose the successful commit metadata.
Previously commitResult was scoped inside try and inaccessible from catch,
causing the error response to report Write failed with no commit info.
0 commit comments