| route-pattern | /_view_fragments/voltron/pull_requests/show/:user_id/:repository/:id/pull_request_layout(.:format) |
| route-controller | voltron_pull_requests_fragments |
| route-action | pull_request_layout |
| fetch-nonce | v2:fbbdea52-93f2-2eb5-3425-a4f9b9fe005b |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | C4D6:1FF1F4:BA43A1:FD28FE:6A4D5330 |
| html-safe-nonce | 7006586b2f793e4766c7652f09f56414ff9ab867ce1f3ce2e5974eaf6fa26b19 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDNEQ2OjFGRjFGNDpCQTQzQTE6RkQyOEZFOjZBNEQ1MzMwIiwidmlzaXRvcl9pZCI6IjM5NTc1MjE4ODc4MTkyODkzOTMiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | d63758c78cfcc315340ff8b7c8aa08bcc40fa1aea4fb5fffd756b22fa7254566 |
| hovercard-subject-tag | pull_request:3773089310 |
| github-keyboard-shortcuts | repository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | ///voltron/pull_requests_fragments/pull_request_layout |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/voltron/pull_requests/show/lessweb/deepcode-cli/136/pull_request_layout |
| twitter:image | https://opengraph.githubassets.com/2a0a3270def3957d7ba04380b25c63c64c22ef8c916de894e7312a78846398dc/lessweb/deepcode-cli/pull/136 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/2a0a3270def3957d7ba04380b25c63c64c22ef8c916de894e7312a78846398dc/lessweb/deepcode-cli/pull/136 |
| og:image:alt | 问题
LLM 在处理 LaTeX、JSON、Unicode 转义等场景时经常多数/少数反斜杠(如 \alpha 写成 \\alpha ),导致精确匹配失败进入 loose_escape 回退路径。该路径虽然能定位到正确的匹配位置,但直接使用 LLM 原始 newString(同样带有转义错误)写入文件,造成静默数据损坏——每次此类替换都会在文件中 引入错误的反斜杠数量。
解决方案
新增 ... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | fym998 |
| hostname | github.com |
| expected-hostname | github.com |
| None | 92571a8944142227b7e19cd10918b1ddd06e5066c1ad5bc7e4769cf6140a87e6 |
| turbo-cache-control | no-cache |
| go-import | github.com/lessweb/deepcode-cli git https://github.com/lessweb/deepcode-cli.git |
| octolytics-dimension-user_id | 118287711 |
| octolytics-dimension-user_login | lessweb |
| octolytics-dimension-repository_id | 1223512305 |
| octolytics-dimension-repository_nwo | lessweb/deepcode-cli |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 1223512305 |
| octolytics-dimension-repository_network_root_nwo | lessweb/deepcode-cli |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 56fc8347865a14e2ec811533d68f929cf4e0ec19 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| Skip to content | https://github.com/lessweb/deepcode-cli/pull/136#start-of-content |
|
| https://github.com/ |
|
Sign in
| https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Flessweb%2Fdeepcode-cli%2Fpull%2F136 |
| GitHub CopilotWrite better code with AI | https://github.com/features/copilot |
| GitHub Copilot appDirect agents from issue to merge | https://github.com/features/ai/github-app |
| MCP RegistryNewIntegrate external tools | https://github.com/mcp |
| ActionsAutomate any workflow | https://github.com/features/actions |
| CodespacesInstant dev environments | https://github.com/features/codespaces |
| IssuesPlan and track work | https://github.com/features/issues |
| Code ReviewManage code changes | https://github.com/features/code-review |
| GitHub Advanced SecurityFind and fix vulnerabilities | https://github.com/security/advanced-security |
| Code securitySecure your code as you build | https://github.com/security/advanced-security/code-security |
| Secret protectionStop leaks before they start | https://github.com/security/advanced-security/secret-protection |
| Why GitHub | https://github.com/why-github |
| Documentation | https://docs.github.com |
| Blog | https://github.blog |
| Changelog | https://github.blog/changelog |
| Marketplace | https://github.com/marketplace |
| View all features | https://github.com/features |
| Enterprises | https://github.com/enterprise |
| Small and medium teams | https://github.com/team |
| Startups | https://github.com/enterprise/startups |
| Nonprofits | https://github.com/solutions/industry/nonprofits |
| App Modernization | https://github.com/solutions/use-case/app-modernization |
| DevSecOps | https://github.com/solutions/use-case/devsecops |
| DevOps | https://github.com/solutions/use-case/devops |
| CI/CD | https://github.com/solutions/use-case/ci-cd |
| View all use cases | https://github.com/solutions/use-case |
| Healthcare | https://github.com/solutions/industry/healthcare |
| Financial services | https://github.com/solutions/industry/financial-services |
| Manufacturing | https://github.com/solutions/industry/manufacturing |
| Government | https://github.com/solutions/industry/government |
| View all industries | https://github.com/solutions/industry |
| View all solutions | https://github.com/solutions |
| AI | https://github.com/resources/articles?topic=ai |
| Software Development | https://github.com/resources/articles?topic=software-development |
| DevOps | https://github.com/resources/articles?topic=devops |
| Security | https://github.com/resources/articles?topic=security |
| View all topics | https://github.com/resources/articles |
| Customer stories | https://github.com/customer-stories |
| Events & webinars | https://github.com/resources/events |
| Ebooks & reports | https://github.com/resources/whitepapers |
| Business insights | https://github.com/solutions/executive-insights |
| GitHub Skills | https://skills.github.com |
| Documentation | https://docs.github.com |
| Customer support | https://support.github.com |
| Community forum | https://github.com/orgs/community/discussions |
| Trust center | https://github.com/trust-center |
| Partners | https://github.com/partners |
| View all resources | https://github.com/resources |
| GitHub SponsorsFund open source developers | https://github.com/sponsors |
| Security Lab | https://securitylab.github.com |
| Maintainer Community | https://maintainers.github.com |
| Accelerator | https://github.com/accelerator |
| GitHub Stars | https://stars.github.com |
| Archive Program | https://archiveprogram.github.com |
| Topics | https://github.com/topics |
| Trending | https://github.com/trending |
| Collections | https://github.com/collections |
| Enterprise platformAI-powered developer platform | https://github.com/enterprise |
| GitHub Advanced SecurityEnterprise-grade security features | https://github.com/security/advanced-security |
| Copilot for BusinessEnterprise-grade AI features | https://github.com/features/copilot/copilot-business |
| Premium SupportEnterprise-grade 24/7 support | https://github.com/premium-support |
| Pricing | https://github.com/pricing |
| Search syntax tips | https://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax |
| documentation | https://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax |
|
Sign in
| https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Flessweb%2Fdeepcode-cli%2Fpull%2F136 |
|
Sign up
| https://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fpull_requests_fragments%2Fpull_request_layout&source=header-repo&source_repo=lessweb%2Fdeepcode-cli |
| Reload | https://github.com/lessweb/deepcode-cli/pull/136 |
| Reload | https://github.com/lessweb/deepcode-cli/pull/136 |
| Reload | https://github.com/lessweb/deepcode-cli/pull/136 |
| Please reload this page | https://github.com/lessweb/deepcode-cli/pull/136 |
|
lessweb
| https://github.com/lessweb |
| deepcode-cli | https://github.com/lessweb/deepcode-cli |
|
Notifications
| https://github.com/login?return_to=%2Flessweb%2Fdeepcode-cli |
|
Fork
151
| https://github.com/login?return_to=%2Flessweb%2Fdeepcode-cli |
|
Star
1.7k
| https://github.com/login?return_to=%2Flessweb%2Fdeepcode-cli |
|
Code
| https://github.com/lessweb/deepcode-cli |
|
Issues
43
| https://github.com/lessweb/deepcode-cli/issues |
|
Pull requests
22
| https://github.com/lessweb/deepcode-cli/pulls |
|
Actions
| https://github.com/lessweb/deepcode-cli/actions |
|
Projects
| https://github.com/lessweb/deepcode-cli/projects |
|
Security and quality
0
| https://github.com/lessweb/deepcode-cli/security |
|
Insights
| https://github.com/lessweb/deepcode-cli/pulse |
|
Code
| https://github.com/lessweb/deepcode-cli |
|
Issues
| https://github.com/lessweb/deepcode-cli/issues |
|
Pull requests
| https://github.com/lessweb/deepcode-cli/pulls |
|
Actions
| https://github.com/lessweb/deepcode-cli/actions |
|
Projects
| https://github.com/lessweb/deepcode-cli/projects |
|
Security and quality
| https://github.com/lessweb/deepcode-cli/security |
|
Insights
| https://github.com/lessweb/deepcode-cli/pulse |
| fym998 | https://github.com/fym998 |
| lessweb:main | https://github.com/lessweb/deepcode-cli/tree/main |
| fym998:fix/loose-escape-newstring-correction | https://github.com/fym998/deepcode-cli/tree/fix/loose-escape-newstring-correction |
| Conversation | https://github.com/lessweb/deepcode-cli/pull/136 |
| Commits6 (6) | https://github.com/lessweb/deepcode-cli/pull/136/commits |
| Checks | https://github.com/lessweb/deepcode-cli/pull/136/checks |
| Files changed | https://github.com/lessweb/deepcode-cli/pull/136/files |
| fix(edit): 修复 LLM 转义错误时 loose_escape 回退路径写入错误内容的问题 | https://github.com/lessweb/deepcode-cli/pull/136#top |
| fym998 | https://github.com/fym998 |
| lessweb:main | https://github.com/lessweb/deepcode-cli/tree/main |
| fym998:fix/loose-escape-newstring-correction | https://github.com/fym998/deepcode-cli/tree/fix/loose-escape-newstring-correction |
|
| https://github.com/fym998 |
| fym998 | https://github.com/fym998 |
| May 30, 2026 | https://github.com/lessweb/deepcode-cli/pull/136#issue-4553362852 |
| Please reload this page | https://github.com/lessweb/deepcode-cli/pull/136 |
| Please reload this page | https://github.com/lessweb/deepcode-cli/pull/136 |
| fym998 | https://github.com/fym998 |
| May 30, 2026 12:57 | https://github.com/lessweb/deepcode-cli/pull/136#commits-pushed-e3ea9a4 |
|
| https://github.com/fym998 |
| fix(edit): correct newString escaping in loose_escape fallback path | https://github.com/lessweb/deepcode-cli/pull/136/commits/e3ea9a4b5c7535d3ff499ae56bd1127d1e714d52 |
| e3ea9a4 | https://github.com/lessweb/deepcode-cli/pull/136/commits/e3ea9a4b5c7535d3ff499ae56bd1127d1e714d52 |
|
| https://github.com/fym998 |
| test(edit): verify newString escaping correction in loose_escape fall… | https://github.com/lessweb/deepcode-cli/pull/136/commits/5c7b30047d107036e59e84216e68c46afc08a25b |
| 5c7b300 | https://github.com/lessweb/deepcode-cli/pull/136/commits/5c7b30047d107036e59e84216e68c46afc08a25b |
|
| https://github.com/fym998 |
| fix(edit): handle zero-count loose escape correction | https://github.com/lessweb/deepcode-cli/pull/136/commits/708ce675197c0205b2fad9433a97f29904fce52b |
| 708ce67 | https://github.com/lessweb/deepcode-cli/pull/136/commits/708ce675197c0205b2fad9433a97f29904fce52b |
| https://github.com/fym998 |
| fym998 | https://github.com/fym998 |
| May 30, 2026 | https://github.com/lessweb/deepcode-cli/pull/136#issuecomment-4581837564 |
| Please reload this page | https://github.com/lessweb/deepcode-cli/pull/136 |
| Please reload this page | https://github.com/lessweb/deepcode-cli/pull/136 |
| https://github.com/fym998 |
| fym998 | https://github.com/fym998 |
| May 30, 2026 06:40 | https://github.com/lessweb/deepcode-cli/pull/136#event-26138033044 |
| https://github.com/fym998 |
| fym998 | https://github.com/fym998 |
| May 30, 2026 | https://github.com/lessweb/deepcode-cli/pull/136#issuecomment-4582017257 |
| Please reload this page | https://github.com/lessweb/deepcode-cli/pull/136 |
| fym998 | https://github.com/fym998 |
| May 30, 2026 15:08 | https://github.com/lessweb/deepcode-cli/pull/136#commits-pushed-77a06df |
|
| https://github.com/fym998 |
| fix(edit): prefer deterministic loose escape correction | https://github.com/lessweb/deepcode-cli/pull/136/commits/77a06df60dc7354d87d13c37ac07601e407868f0 |
| 77a06df | https://github.com/lessweb/deepcode-cli/pull/136/commits/77a06df60dc7354d87d13c37ac07601e407868f0 |
|
| https://github.com/fym998 |
| fix(edit): return error instead of silently writing uncorrected newSt… | https://github.com/lessweb/deepcode-cli/pull/136/commits/93b4f638e5b54985c039d7a956d2a8eae8530137 |
| 93b4f63 | https://github.com/lessweb/deepcode-cli/pull/136/commits/93b4f638e5b54985c039d7a956d2a8eae8530137 |
| https://github.com/fym998 |
| fym998 | https://github.com/fym998 |
| May 30, 2026 | https://github.com/lessweb/deepcode-cli/pull/136#issuecomment-4582072340 |
| Please reload this page | https://github.com/lessweb/deepcode-cli/pull/136 |
| https://github.com/fym998 |
| fym998 | https://github.com/fym998 |
| May 30, 2026 | https://github.com/lessweb/deepcode-cli/pull/136#event-26138554625 |
| https://github.com/fym998 |
| fym998 | https://github.com/fym998 |
| May 30, 2026 07:24 | https://github.com/lessweb/deepcode-cli/pull/136#event-26138555157 |
|
| https://github.com/fym998 |
| refactor(edit): rename escape correction cursors | https://github.com/lessweb/deepcode-cli/pull/136/commits/6fd4e2ebf31a0f88c6316b2a1ca7e76696c24af2 |
| 6fd4e2e | https://github.com/lessweb/deepcode-cli/pull/136/commits/6fd4e2ebf31a0f88c6316b2a1ca7e76696c24af2 |
| https://github.com/fym998 |
| fym998 | https://github.com/fym998 |
| May 30, 2026 | https://github.com/lessweb/deepcode-cli/pull/136#issuecomment-4582286255 |
| Please reload this page | https://github.com/lessweb/deepcode-cli/pull/136 |
| https://github.com/fym998 |
| fym998 | https://github.com/fym998 |
| May 30, 2026 | https://github.com/lessweb/deepcode-cli/pull/136#issuecomment-4582524444 |
| Please reload this page | https://github.com/lessweb/deepcode-cli/pull/136 |
| Please reload this page | https://github.com/lessweb/deepcode-cli/pull/136 |
| https://github.co/hiddenchars |
| https://github.com/lessweb/deepcode-cli/pull/{{ revealButtonHref }} |
| Sign up for free | https://github.com/join?source=comment-repo |
| Sign in to comment | https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Flessweb%2Fdeepcode-cli%2Fpull%2F136 |
| Please reload this page | https://github.com/lessweb/deepcode-cli/pull/136 |
|
| https://github.com/fym998 |
|
| https://github.com |
| Terms | https://docs.github.com/site-policy/github-terms/github-terms-of-service |
| Privacy | https://docs.github.com/site-policy/privacy-policies/github-privacy-statement |
| Security | https://github.com/security |
| Status | https://www.githubstatus.com/ |
| Community | https://github.community/ |
| Docs | https://docs.github.com/ |
| Contact | https://support.github.com?tags=dotcom-footer |