René's URL Explorer Experiment


Title: fix(session): 修复会话清理内存泄漏并补充回归测试 by Lellansin · Pull Request #123 · lessweb/deepcode-cli · GitHub

Open Graph Title: fix(session): 修复会话清理内存泄漏并补充回归测试 by Lellansin · Pull Request #123 · lessweb/deepcode-cli

X Title: fix(session): 修复会话清理内存泄漏并补充回归测试 by Lellansin · Pull Request #123 · lessweb/deepcode-cli

Description: 变更说明 修复会话删除与自动裁剪场景下的会话级内存泄漏,统一清理 file state/snippet/snippet counter/file version 缓存 修复会话删除后的 bash 工作目录残留问题,确保 session 复用时 cwd 回落到项目根目录 增强 SessionManager.dispose 清理逻辑,补齐 active prompt controller、session controller 与 process timeout controls 的释放 增加会话资源统一清理路径,覆盖消息文件、控制器与受当前运行期跟踪的进程超时控制项 避免清理阶段误杀陈旧 PID(仅处理当前运行期可确认的进程控制项),消除潜在主机风险 新增 src/tests/memory-leak.test.ts 回归测试,覆盖删除、自动裁剪、dispose、cwd 重置及 stale pid 防护场景 修复 Windows CI 下 pwd 路径断言兼容性(Git Bash 输出 POSIX 路径) 验证 npm run typecheck npm run test:single -- src/tests/memory-leak.test.ts codex review --base origin/main

Open Graph Description: 变更说明 修复会话删除与自动裁剪场景下的会话级内存泄漏,统一清理 file state/snippet/snippet counter/file version 缓存 修复会话删除后的 bash 工作目录残留问题,确保 session 复用时 cwd 回落到项目根目录 增强 SessionManager.dispose 清理逻辑,补齐 active prompt controller、se...

X Description: 变更说明 修复会话删除与自动裁剪场景下的会话级内存泄漏,统一清理 file state/snippet/snippet counter/file version 缓存 修复会话删除后的 bash 工作目录残留问题,确保 session 复用时 cwd 回落到项目根目录 增强 SessionManager.dispose 清理逻辑,补齐 active prompt controller、se...

Opengraph URL: https://github.com/lessweb/deepcode-cli/pull/123

X: @github

direct link

Domain: github.com

route-pattern/:user_id/:repository/pull/:id/files(.:format)
route-controllerpull_requests
route-actionfiles
fetch-noncev2:f89158e5-239d-0897-8a9f-4a8f64b39508
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-id88C4:21908E:4ABBB3:6488F3:6A4DA06D
html-safe-nonce074b5e91955da502047328f21fc3b9db652941b79b534fc07e19d4a452b7c39d
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4OEM0OjIxOTA4RTo0QUJCQjM6NjQ4OEYzOjZBNERBMDZEIiwidmlzaXRvcl9pZCI6IjI1MDQxNDQ1NTAxNTY0MTA5ODkiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmac7e8bf76b44afba88213efa679dbae667aa45185585e26bdd056842ffb5a999c1
hovercard-subject-tagpull_request:3746700051
github-keyboard-shortcutsrepository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///pull_requests/show/files
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/lessweb/deepcode-cli/pull/123/files
twitter:imagehttps://avatars.githubusercontent.com/u/2081487?s=400&v=4
twitter:cardsummary_large_image
og:imagehttps://avatars.githubusercontent.com/u/2081487?s=400&v=4
og:image:alt变更说明 修复会话删除与自动裁剪场景下的会话级内存泄漏,统一清理 file state/snippet/snippet counter/file version 缓存 修复会话删除后的 bash 工作目录残留问题,确保 session 复用时 cwd 回落到项目根目录 增强 SessionManager.dispose 清理逻辑,补齐 active prompt controller、se...
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
None06b8a6144231bf3a234f1c2e9993861e07ce98a905912b114aa386c2d7e84b33
turbo-cache-controlno-preview
diff-viewunified
go-importgithub.com/lessweb/deepcode-cli git https://github.com/lessweb/deepcode-cli.git
octolytics-dimension-user_id118287711
octolytics-dimension-user_loginlessweb
octolytics-dimension-repository_id1223512305
octolytics-dimension-repository_nwolessweb/deepcode-cli
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id1223512305
octolytics-dimension-repository_network_root_nwolessweb/deepcode-cli
turbo-body-classeslogged-out env-production page-responsive full-width
disable-turbotrue
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release7f13faa65cccc9b729d674da83335d5dcfdfd193
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/lessweb/deepcode-cli/pull/123/files#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Flessweb%2Fdeepcode-cli%2Fpull%2F123%2Ffiles
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub Copilot appDirect agents from issue to mergehttps://github.com/features/ai/github-app
MCP RegistryNewIntegrate external toolshttps://github.com/mcp
ActionsAutomate any workflowhttps://github.com/features/actions
CodespacesInstant dev environmentshttps://github.com/features/codespaces
IssuesPlan and track workhttps://github.com/features/issues
Code ReviewManage code changeshttps://github.com/features/code-review
GitHub Advanced SecurityFind and fix vulnerabilitieshttps://github.com/security/advanced-security
Code securitySecure your code as you buildhttps://github.com/security/advanced-security/code-security
Secret protectionStop leaks before they starthttps://github.com/security/advanced-security/secret-protection
Why GitHubhttps://github.com/why-github
Documentationhttps://docs.github.com
Bloghttps://github.blog
Changeloghttps://github.blog/changelog
Marketplacehttps://github.com/marketplace
View all featureshttps://github.com/features
Enterpriseshttps://github.com/enterprise
Small and medium teamshttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
App Modernizationhttps://github.com/solutions/use-case/app-modernization
DevSecOpshttps://github.com/solutions/use-case/devsecops
DevOpshttps://github.com/solutions/use-case/devops
CI/CDhttps://github.com/solutions/use-case/ci-cd
View all use caseshttps://github.com/solutions/use-case
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
View all industrieshttps://github.com/solutions/industry
View all solutionshttps://github.com/solutions
AIhttps://github.com/resources/articles?topic=ai
Software Developmenthttps://github.com/resources/articles?topic=software-development
DevOpshttps://github.com/resources/articles?topic=devops
Securityhttps://github.com/resources/articles?topic=security
View all topicshttps://github.com/resources/articles
Customer storieshttps://github.com/customer-stories
Events & webinarshttps://github.com/resources/events
Ebooks & reportshttps://github.com/resources/whitepapers
Business insightshttps://github.com/solutions/executive-insights
GitHub Skillshttps://skills.github.com
Documentationhttps://docs.github.com
Customer supporthttps://support.github.com
Community forumhttps://github.com/orgs/community/discussions
Trust centerhttps://github.com/trust-center
Partnershttps://github.com/partners
View all resourceshttps://github.com/resources
GitHub SponsorsFund open source developershttps://github.com/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/accelerator
GitHub Starshttps://stars.github.com
Archive Programhttps://archiveprogram.github.com
Topicshttps://github.com/topics
Trendinghttps://github.com/trending
Collectionshttps://github.com/collections
Enterprise platformAI-powered developer platformhttps://github.com/enterprise
GitHub Advanced SecurityEnterprise-grade security featureshttps://github.com/security/advanced-security
Copilot for BusinessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/premium-support
Pricinghttps://github.com/pricing
Search syntax tipshttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
documentationhttps://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%2F123%2Ffiles
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%2Fpull_requests%2Fshow%2Ffiles&source=header-repo&source_repo=lessweb%2Fdeepcode-cli
Reloadhttps://github.com/lessweb/deepcode-cli/pull/123/files
Reloadhttps://github.com/lessweb/deepcode-cli/pull/123/files
Reloadhttps://github.com/lessweb/deepcode-cli/pull/123/files
Please reload this pagehttps://github.com/lessweb/deepcode-cli/pull/123/files
lessweb https://github.com/lessweb
deepcode-clihttps://github.com/lessweb/deepcode-cli
Notifications https://github.com/login?return_to=%2Flessweb%2Fdeepcode-cli
Fork 152 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
Sign up for GitHub https://github.com/signup?return_to=%2Flessweb%2Fdeepcode-cli%2Fissues%2Fnew%2Fchoose
terms of servicehttps://docs.github.com/terms
privacy statementhttps://docs.github.com/privacy
Sign inhttps://github.com/login?return_to=%2Flessweb%2Fdeepcode-cli%2Fissues%2Fnew%2Fchoose
qorzjhttps://github.com/qorzj
lessweb:mainhttps://github.com/lessweb/deepcode-cli/tree/main
Lellansin:dev/memory-leak-fixes-origin-mainhttps://github.com/Lellansin/deepcode-cli/tree/dev/memory-leak-fixes-origin-main
Conversation 0 https://github.com/lessweb/deepcode-cli/pull/123
Commits 5 https://github.com/lessweb/deepcode-cli/pull/123/commits
Checks 9 https://github.com/lessweb/deepcode-cli/pull/123/checks
Files changed https://github.com/lessweb/deepcode-cli/pull/123/files
Please reload this pagehttps://github.com/lessweb/deepcode-cli/pull/123/files
fix(session): 修复会话清理内存泄漏并补充回归测试 https://github.com/lessweb/deepcode-cli/pull/123/files#top
Show all changes 5 commits https://github.com/lessweb/deepcode-cli/pull/123/files
cb5caa0 Fix session cleanup memory leaks and add regression tests Lellansin May 26, 2026 https://github.com/lessweb/deepcode-cli/pull/123/commits/cb5caa033a364caaf63dffd239cfdbc686a28310
a31b2c1 test(memory-leak): fix cwd assertion for windows git-bash path Lellansin May 26, 2026 https://github.com/lessweb/deepcode-cli/pull/123/commits/a31b2c1f556e7236a7a4f7ea6fbe3e77ee34ce75
222e4b5 test(memory-leak): assert cwd from bash metadata on windows Lellansin May 26, 2026 https://github.com/lessweb/deepcode-cli/pull/123/commits/222e4b529a9bf0331dad9c9d0627f6d7aae28bca
45ad4f3 test(memory-leak): avoid platform-specific cwd root assertion Lellansin May 26, 2026 https://github.com/lessweb/deepcode-cli/pull/123/commits/45ad4f392d472639560992dbe89c503e380f0aac
7de1366 docs(session): restore deleteSession comment for current cleanup beha… Lellansin May 26, 2026 https://github.com/lessweb/deepcode-cli/pull/123/commits/7de1366aea991c52d6edd28bdcba6c50ee152fc0
Clear filters https://github.com/lessweb/deepcode-cli/pull/123/files
Please reload this pagehttps://github.com/lessweb/deepcode-cli/pull/123/files
Please reload this pagehttps://github.com/lessweb/deepcode-cli/pull/123/files
state.ts https://github.com/lessweb/deepcode-cli/pull/123/files#diff-eeffe56a53543e957acc9daaffb8e13a865e852acbceb5e026c8dd6706293ee8
session.ts https://github.com/lessweb/deepcode-cli/pull/123/files#diff-96998a2148aa3d52ad3e80303d0ad88fc43a4afd08966b5330a5657021ae52bb
memory-leak.test.ts https://github.com/lessweb/deepcode-cli/pull/123/files#diff-085826b2f1935186123a3f8a3c16b6e6e95f91e4a972362b011c869ee4a58260
bash-handler.ts https://github.com/lessweb/deepcode-cli/pull/123/files#diff-03560c48ffaf9ad369bf0372c08c98c5060087a042d326cb9333a3df3fa5a6d9
src/common/state.tshttps://github.com/lessweb/deepcode-cli/pull/123/files#diff-eeffe56a53543e957acc9daaffb8e13a865e852acbceb5e026c8dd6706293ee8
View file https://github.com/Lellansin/deepcode-cli/blob/7de1366aea991c52d6edd28bdcba6c50ee152fc0/src/common/state.ts
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/lessweb/deepcode-cli/pull/123/{{ revealButtonHref }}
https://github.com/lessweb/deepcode-cli/pull/123/files#diff-eeffe56a53543e957acc9daaffb8e13a865e852acbceb5e026c8dd6706293ee8
https://github.com/lessweb/deepcode-cli/pull/123/files#diff-eeffe56a53543e957acc9daaffb8e13a865e852acbceb5e026c8dd6706293ee8
src/session.tshttps://github.com/lessweb/deepcode-cli/pull/123/files#diff-96998a2148aa3d52ad3e80303d0ad88fc43a4afd08966b5330a5657021ae52bb
View file https://github.com/Lellansin/deepcode-cli/blob/7de1366aea991c52d6edd28bdcba6c50ee152fc0/src/session.ts
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/lessweb/deepcode-cli/pull/123/{{ revealButtonHref }}
https://github.com/lessweb/deepcode-cli/pull/123/files#diff-96998a2148aa3d52ad3e80303d0ad88fc43a4afd08966b5330a5657021ae52bb
https://github.com/lessweb/deepcode-cli/pull/123/files#diff-96998a2148aa3d52ad3e80303d0ad88fc43a4afd08966b5330a5657021ae52bb
https://github.com/lessweb/deepcode-cli/pull/123/files#diff-96998a2148aa3d52ad3e80303d0ad88fc43a4afd08966b5330a5657021ae52bb
https://github.com/lessweb/deepcode-cli/pull/123/files#diff-96998a2148aa3d52ad3e80303d0ad88fc43a4afd08966b5330a5657021ae52bb
https://github.com/lessweb/deepcode-cli/pull/123/files#diff-96998a2148aa3d52ad3e80303d0ad88fc43a4afd08966b5330a5657021ae52bb
https://github.com/lessweb/deepcode-cli/pull/123/files#diff-96998a2148aa3d52ad3e80303d0ad88fc43a4afd08966b5330a5657021ae52bb
https://github.com/lessweb/deepcode-cli/pull/123/files#diff-96998a2148aa3d52ad3e80303d0ad88fc43a4afd08966b5330a5657021ae52bb
https://github.com/lessweb/deepcode-cli/pull/123/files#diff-96998a2148aa3d52ad3e80303d0ad88fc43a4afd08966b5330a5657021ae52bb
https://github.com/lessweb/deepcode-cli/pull/123/files#diff-96998a2148aa3d52ad3e80303d0ad88fc43a4afd08966b5330a5657021ae52bb
https://github.com/lessweb/deepcode-cli/pull/123/files#diff-96998a2148aa3d52ad3e80303d0ad88fc43a4afd08966b5330a5657021ae52bb
src/tests/memory-leak.test.tshttps://github.com/lessweb/deepcode-cli/pull/123/files#diff-085826b2f1935186123a3f8a3c16b6e6e95f91e4a972362b011c869ee4a58260
View file https://github.com/Lellansin/deepcode-cli/blob/7de1366aea991c52d6edd28bdcba6c50ee152fc0/src/tests/memory-leak.test.ts
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/lessweb/deepcode-cli/pull/123/{{ revealButtonHref }}
src/tools/bash-handler.tshttps://github.com/lessweb/deepcode-cli/pull/123/files#diff-03560c48ffaf9ad369bf0372c08c98c5060087a042d326cb9333a3df3fa5a6d9
View file https://github.com/Lellansin/deepcode-cli/blob/7de1366aea991c52d6edd28bdcba6c50ee152fc0/src/tools/bash-handler.ts
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/lessweb/deepcode-cli/pull/123/{{ revealButtonHref }}
https://github.com/lessweb/deepcode-cli/pull/123/files#diff-03560c48ffaf9ad369bf0372c08c98c5060087a042d326cb9333a3df3fa5a6d9
https://github.com/lessweb/deepcode-cli/pull/123/files#diff-03560c48ffaf9ad369bf0372c08c98c5060087a042d326cb9333a3df3fa5a6d9
Please reload this pagehttps://github.com/lessweb/deepcode-cli/pull/123/files
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.