René's URL Explorer Experiment


Title: fix(mcpx): honour a cancelled context in inlineDaemon (port of dezren39/nix#430) by dezren39 · Pull Request #320 · developing-today/code · GitHub

Open Graph Title: fix(mcpx): honour a cancelled context in inlineDaemon (port of dezren39/nix#430) by dezren39 · Pull Request #320 · developing-today/code

X Title: fix(mcpx): honour a cancelled context in inlineDaemon (port of dezren39/nix#430) by dezren39 · Pull Request #320 · developing-today/code

Description: Port of the fix for dezren39/darwin-nix#430 — the single origin issue for this cross-repo set (mcpx lives in both repos and internal/cli/connect.go was byte-identical in both). No separate code issue was filed, per the one-issue-per-set rule. What inlineDaemon (the connection ladder's last rung, pkgs/mcpx/internal/cli/connect.go) ignored context cancellation — the #233/EnsureDaemon defect class left in this sibling wait: No ctx.Err() check on entry: it started an in-process daemon for a caller who had already gone away. The answer poll was a plain time.Sleep. Ping is ctx-bound, so under a cancelled context it could never succeed: the loop always burned the full daemon.inlineStartTimeout (5s default), tore a working daemon down, and reported the misleading the in-process daemon did not answer. Now: entry check returns ctx.Err() before anything starts; the poll wait selects on ctx.Done() vs the poll interval (the EnsureDaemon pattern); a post-loop ctx.Err() check covers cancellation landing on the last poll. The genuine-timeout path and inlineStop() cleanup are unchanged. Evidence Reproduced pre-fix in the nix copy with a temporary test (empty config, already-cancelled ctx): elapsed=5.023s err=the in-process daemon did not answer isCanceled=false. New inlinedaemon_test.go (identical in both repos): TestInlineDaemonAlreadyCancelledContext — ablation-verified in the nix copy: fails pre-fix (5.03s, generic error), passes post-fix (0.00s, context.Canceled, no daemon started). TestInlineDaemonStartsWithLiveContext — the uncancelled path still returns a pingable client. Full internal/cli suite green locally in this repo; gofmt clean. Need help on this PR? Tag @codesmith-bot with what you need. Summary by CodeRabbit Bug Fixes Starting an in-process daemon now responds to cancellation promptly, including when cancellation occurs while waiting for the daemon to become available. If startup is canceled, the daemon is stopped and the cancellation error is returned instead of continuing to wait or reporting a timeout.

Open Graph Description: Port of the fix for dezren39/darwin-nix#430 — the single origin issue for this cross-repo set (mcpx lives in both repos and internal/cli/connect.go was byte-identical in both). No separate code iss...

X Description: Port of the fix for dezren39/darwin-nix#430 — the single origin issue for this cross-repo set (mcpx lives in both repos and internal/cli/connect.go was byte-identical in both). No separate code iss...

Opengraph URL: https://github.com/developing-today/code/pull/320

X: @github

direct link

Domain: github.com

IPv4 address: 140.82.114.4

react-profiling0
react-import-mapreact,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322
route-pattern/:user_id/:repository/pull/:id/files(.:format)
route-controllerpull_requests
route-actionfiles
fetch-noncev2:c185accb-1bdf-f4c3-393c-10775b8ad126
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-id85AC:5F360:368CE5:4789E9:6B0617AC
html-safe-nonce71215e08b8afbc4043a5386d1e9dfcbb40f84ae691146679fc1812d34bc55062
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4NUFDOjVGMzYwOjM2OENFNTo0Nzg5RTk6NkIwNjE3QUMiLCJ2aXNpdG9yX2lkIjoiNzQzMjM5NTAxMTUwMzAzNjMzMiIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac37069b7c35cdbe9e21bca5cb1a5fb0b73d8390cc6a435b5b240946674335fb3d
hovercard-subject-tagpull_request:4913802281
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/developing-today/code/pull/320/files
twitter:imagehttps://avatars.githubusercontent.com/u/11225574?s=400&v=4
twitter:cardsummary_large_image
og:imagehttps://avatars.githubusercontent.com/u/11225574?s=400&v=4
og:image:altPort of the fix for dezren39/darwin-nix#430 — the single origin issue for this cross-repo set (mcpx lives in both repos and internal/cli/connect.go was byte-identical in both). No separate code iss...
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
None97d4714e567728e1f85f88b0cf68c89f0f8a3dc41e8869af7aeb8195ad990374
turbo-cache-controlno-preview
diff-viewunified
go-importgithub.com/developing-today/code git https://github.com/developing-today/code.git
octolytics-dimension-user_id26439447
octolytics-dimension-user_logindeveloping-today
octolytics-dimension-repository_id627308783
octolytics-dimension-repository_nwodeveloping-today/code
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id627308783
octolytics-dimension-repository_network_root_nwodeveloping-today/code
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
release866f202ebf7ac5aff8f633417d9fd8a53818a977
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/developing-today/code/pull/320/files#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fdeveloping-today%2Fcode%2Fpull%2F320%2Ffiles
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
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
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://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/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fdeveloping-today%2Fcode%2Fpull%2F320%2Ffiles
Sign uphttps://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=developing-today%2Fcode
Reloadhttps://github.com/developing-today/code/pull/320/files
Reloadhttps://github.com/developing-today/code/pull/320/files
Reloadhttps://github.com/developing-today/code/pull/320/files
developing-todayhttps://github.com/developing-today
codehttps://github.com/developing-today/code
Codehttps://github.com/developing-today/code
Issues1.1k (1.1k)https://github.com/developing-today/code/issues
Pull requests144 (144)https://github.com/developing-today/code/pulls
Discussionshttps://github.com/developing-today/code/discussions
Actionshttps://github.com/developing-today/code/actions
Projectshttps://github.com/developing-today/code/projects
Wikihttps://github.com/developing-today/code/wiki
Security and qualityhttps://github.com/developing-today/code/security
Insightshttps://github.com/developing-today/code/insights
Sign up for GitHub https://github.com/signup?return_to=%2Fdeveloping-today%2Fcode%2Fissues%2Fnew%2Fchoose
terms of servicehttps://docs.github.com/terms
privacy statementhttps://docs.github.com/privacy
Sign inhttps://github.com/login?return_to=%2Fdeveloping-today%2Fcode%2Fissues%2Fnew%2Fchoose
dezren39https://github.com/dezren39
mainhttps://github.com/developing-today/code/tree/main
creator/430-inline-daemon-cancelhttps://github.com/developing-today/code/tree/creator/430-inline-daemon-cancel
Conversation 3 https://github.com/developing-today/code/pull/320
Commits 1 https://github.com/developing-today/code/pull/320/commits
Checks 16 https://github.com/developing-today/code/pull/320/checks
Files changed https://github.com/developing-today/code/pull/320/files
Please reload this pagehttps://github.com/developing-today/code/pull/320/files
fix(mcpx): honour a cancelled context in inlineDaemon (port of dezren39/nix#430) https://github.com/developing-today/code/pull/320/files#top
Show all changes 1 commit https://github.com/developing-today/code/pull/320/files
e766ac1 fix(mcpx): honour a cancelled context in inlineDaemon Oct 18, 2026 https://github.com/developing-today/code/pull/320/commits/e766ac1e03756db9a9008c67254243fbb852f3d5
Clear filters https://github.com/developing-today/code/pull/320/files
Please reload this pagehttps://github.com/developing-today/code/pull/320/files
Please reload this pagehttps://github.com/developing-today/code/pull/320/files
connect.go https://github.com/developing-today/code/pull/320/files#diff-447de45e568199b157011a65f9d172490d68942ea1efcade6f306c7b34049a07
inlinedaemon_test.go https://github.com/developing-today/code/pull/320/files#diff-4053e90612a9382acbcbe97968086b9ca0dca79162ffd54fd97fbd8d105859a0
pkgs/mcpx/internal/cli/connect.gohttps://github.com/developing-today/code/pull/320/files#diff-447de45e568199b157011a65f9d172490d68942ea1efcade6f306c7b34049a07
View file https://github.com/developing-today/code/blob/e766ac1e03756db9a9008c67254243fbb852f3d5/pkgs/mcpx/internal/cli/connect.go
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/developing-today/code/pull/320/{{ revealButtonHref }}
https://github.com/developing-today/code/pull/320/files#diff-447de45e568199b157011a65f9d172490d68942ea1efcade6f306c7b34049a07
https://github.com/developing-today/code/pull/320/files#diff-447de45e568199b157011a65f9d172490d68942ea1efcade6f306c7b34049a07
https://github.com/developing-today/code/pull/320/files#diff-447de45e568199b157011a65f9d172490d68942ea1efcade6f306c7b34049a07
https://github.com/developing-today/code/pull/320/files#diff-447de45e568199b157011a65f9d172490d68942ea1efcade6f306c7b34049a07
pkgs/mcpx/internal/cli/inlinedaemon_test.gohttps://github.com/developing-today/code/pull/320/files#diff-4053e90612a9382acbcbe97968086b9ca0dca79162ffd54fd97fbd8d105859a0
View file https://github.com/developing-today/code/blob/e766ac1e03756db9a9008c67254243fbb852f3d5/pkgs/mcpx/internal/cli/inlinedaemon_test.go
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/developing-today/code/pull/320/{{ revealButtonHref }}
Please reload this pagehttps://github.com/developing-today/code/pull/320/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

Response headers:
Servergithub.com
Content-Typetext/html; charset=utf-8
Cache-Controlno-cache

Viewport: width=device-width


URLs of crawlers that visited me.