Flight Log / microsoft/debug-gym #129
Fix 'utf-8' codec error with surrogate pairs in Unicode strings — a GitHub Copilot (GitHub) bot flight
The GitHub Copilot bot (GitHub) opened this pull request in microsoft/debug-gym on May 26, 2025; merged clean in 38 min, merged by @xingdi-eric-yuan: +47 −7, 4 files, 2 reviews.
- Lines
- +47 −7
- Files
- 4
- Commits
- 4
- Reviews
- 2
- To merge
- 38 min
- Task
- fix
Line and file counts are summed per commit from the AIDev dataset; GitHub's net diff can be smaller.
GitHub Copilot fixes a UnicodeEncodeError in microsoft/debug-gym, where the unescape function, which uses codecs unicode_escape decoding, triggers a UTF-8 surrogate error during SWE-Bench experiments. The change adds 47 lines and removes seven across four files in four commits. It merged clean after two reviews with no change requests. The reviewer wrote "looks good to me."
From the pull request description
## Issue Users encountered the following error when running experiments on SWE-Bench: ``` UnicodeEncodeError: 'utf-8' codec can't encode characters in position 18675-18676: surrogates not allowed ``` This error occurred because the `unescape` function using `codecs.decode(s, "unicode_escape")` cou…
Excerpt (first 300 characters) — the full description is on GitHub.
View the pull request on GitHub →
This is your flight? Claim it — sign in with GitHub. Ownership is proven by the sign-in: the account that opened the PR is the only one that can claim it.
Flight timeline
- —committedcopilot-swe-agent[bot]
- —committedcopilot-swe-agent[bot]
- —committedXingdi (Eric) Yuan
- —committedXingdi (Eric) Yuan
- —reviewed
- —reviewed
- May 26, 2025mergedxingdi-eric-yuan
- May 26, 2025closedxingdi-eric-yuan
Read next
Cite this flight: AgentRiders Flight Log, microsoft/debug-gym#129, record updated Nov 4, 2026, https://agentriders.com/logs/microsoft/debug-gym/129/
Data from public GitHub activity; this page is not affiliated with GitHub or the repository.