René's URL Explorer Experiment


Title: mcpx: inlineDaemon's cancel-during-poll path (PR #320) has no regression test — ablating it leaves the suite green · Issue #323 · developing-today/code · GitHub

Open Graph Title: mcpx: inlineDaemon's cancel-during-poll path (PR #320) has no regression test — ablating it leaves the suite green · Issue #323 · developing-today/code

X Title: mcpx: inlineDaemon's cancel-during-poll path (PR #320) has no regression test — ablating it leaves the suite green · Issue #323 · developing-today/code

Description: Finding PR #320 (port of dezren39/darwin-nix#430, merge 355caf1) made inlineDaemon honour context cancellation in three places in pkgs/mcpx/internal/cli/connect.go (current main ca1abca): entry ctx.Err() check — connect.go:216 the answer...

Open Graph Description: Finding PR #320 (port of dezren39/darwin-nix#430, merge 355caf1) made inlineDaemon honour context cancellation in three places in pkgs/mcpx/internal/cli/connect.go (current main ca1abca): entry ctx...

X Description: Finding PR #320 (port of dezren39/darwin-nix#430, merge 355caf1) made inlineDaemon honour context cancellation in three places in pkgs/mcpx/internal/cli/connect.go (current main ca1abca): entry ctx...

Opengraph URL: https://github.com/developing-today/code/issues/323

X: @github

direct link

Domain: github.com

IPv4 address: 140.82.113.4


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"mcpx: inlineDaemon's cancel-during-poll path (PR #320) has no regression test — ablating it leaves the suite green","articleBody":"## Finding\n\nPR #320 (port of dezren39/nix#430, merge 355caf10) made `inlineDaemon` honour context cancellation in three places in `pkgs/mcpx/internal/cli/connect.go` (current main ca1abca0):\n\n1. entry `ctx.Err()` check — connect.go:216\n2. the answer poll now selects on `ctx.Done()` vs the poll interval — connect.go:261-269\n3. a post-loop `ctx.Err()` check before reporting the generic timeout — connect.go:271-274\n\nOnly (1) is pinned by a test. The two tests the PR added in `pkgs/mcpx/internal/cli/inlinedaemon_test.go` are `TestInlineDaemonAlreadyCancelledContext` (entry check only — it returns before any daemon starts) and `TestInlineDaemonStartsWithLiveContext` (the empty-config daemon answers the first Ping, so the poll wait is never meaningfully entered). Neither test cancels a context *while the poll is waiting*, and neither exercises the genuine-timeout path.\n\n**Ablation-verified in this review:** in a scratch worktree of current main, replacing the poll `select` with a plain `time.Sleep` and deleting the post-loop check (entry check kept) leaves both new tests green:\n\n```\n--- PASS: TestInlineDaemonAlreadyCancelledContext (0.00s)\n--- PASS: TestInlineDaemonStartsWithLiveContext (0.01s)\n```\n\nSo the headline behaviour of the fix — a caller who cancels *during* the up-to-5s inline start wait gets a prompt `context.Canceled` and the in-process daemon is stopped, instead of burning the full `daemon.inlineStartTimeout` and reporting `the in-process daemon did not answer` — can regress silently.\n\nThe sibling fix in the same package sets the bar: `EnsureDaemon` has `TestEnsureDaemonCancelledWhileWaiting` (ensuredaemon_test.go:62) alongside its already-cancelled and never-ready tests, using a fake daemon binary, a 30s connect timeout, and a cancel at 200ms. `inlineDaemon` has no equivalent. (A deterministic mid-poll test here needs Ping to keep failing while the context is live — the empty-config daemon answers at once — so it may need a minimal seam: a daemon whose health endpoint never answers, a blocked/slow ServeInline, or an extracted poll helper.)\n\n## Affected repos (one set — mcpx lives in both)\n\n- developing-today/code: `pkgs/mcpx/internal/cli/connect.go:261-274`, `pkgs/mcpx/internal/cli/inlinedaemon_test.go` (PR #320, commit e766ac1e)\n- dezren39/nix: identical code and tests — `pkgs/mcpx/internal/cli/connect.go:265-271` (select/post-loop), `inlinedaemon_test.go` identical (origin fix for dezren39/nix#430)\n\n## Why it matters\n\nThis is the same unpinned-wait pattern this repo already treated as worth an issue once (#319, fixed by PR #322): a wait/cancellation branch whose removal leaves the suite green. Cancellation during startup is the common real-world case (user hits Ctrl-C while mcpx is starting), not the already-cancelled one.\n\n## Acceptance criteria\n\n- A test in `inlinedaemon_test.go` cancels the context while `inlineDaemon` is waiting for the daemon to answer, and asserts: prompt return (well under the inline start timeout), `errors.Is(err, context.Canceled)`, and the in-process daemon is stopped.\n- The test is ablation-verified: reverting the poll `select` to `time.Sleep` (or removing the post-loop check, for the path it covers) makes it fail.\n- The same test lands in dezren39/nix's mcpx copy in the same pass (cross-repo set; this issue is the single tracker).\n\nFound by the pr-diff-review job reviewing PR #320.\n","author":{"url":"https://github.com/dezren39","@type":"Person","name":"dezren39"},"datePublished":"2026-10-19T00:21:10Z","url":"https://github.com/developing-today/code/issues/323"}

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/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:9f081a2f-5492-59e8-2de2-6332155f2917
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-id86B0:1352AF:15F1C8:1D5F30:6B0610FB
html-safe-nonce214b022340cdd75803d9539d266a17f94dfd7072c981587a881445608f0b0905
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4NkIwOjEzNTJBRjoxNUYxQzg6MUQ1RjMwOjZCMDYxMEZCIiwidmlzaXRvcl9pZCI6IjE4MTQ3MDE1MzkyMjc3MzQyNjciLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmac83f737b0e35aa369b7a291f76b6226e166d5fa55d506d558e1899d26393d34d0
hovercard-subject-tagissue:5915693185
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/developing-today/code/323/issue_layout
twitter:imagehttps://opengraph.githubassets.com/709c381d38a8f18496a096a551e134b4824999bb829a201cad042443c21a6508/developing-today/code/issues/323
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/709c381d38a8f18496a096a551e134b4824999bb829a201cad042443c21a6508/developing-today/code/issues/323
og:image:altFinding PR #320 (port of dezren39/darwin-nix#430, merge 355caf1) made inlineDaemon honour context cancellation in three places in pkgs/mcpx/internal/cli/connect.go (current main ca1abca): entry ctx...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamedezren39
hostnamegithub.com
expected-hostnamegithub.com
Nonee58943f0186bb8d97b217393c2724a49ab47e4aefefc43595a90fa04699066c9
turbo-cache-controlno-preview
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
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release23517473abc6d5da019b4958bd421644e98a418b
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/developing-today/code/issues/323#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fdeveloping-today%2Fcode%2Fissues%2F323
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%2Fissues%2F323
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=developing-today%2Fcode
Reloadhttps://github.com/developing-today/code/issues/323
Reloadhttps://github.com/developing-today/code/issues/323
Reloadhttps://github.com/developing-today/code/issues/323
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
https://github.com/developing-today/code
New issuehttps://github.com/login?return_to=https://github.com/developing-today/code/issues/323
New issuehttps://github.com/login?return_to=https://github.com/developing-today/code/issues/323
#330https://github.com/developing-today/code/pull/330
mcpx: inlineDaemon's cancel-during-poll path (PR #320) has no regression test — ablating it leaves the suite greenhttps://github.com/developing-today/code/issues/323#top
#330https://github.com/developing-today/code/pull/330
https://github.com/dezren39
https://github.com/dezren39
dezren39https://github.com/dezren39
on Oct 19, 2026https://github.com/developing-today/code/issues/323#issue-5915693185
#320https://github.com/developing-today/code/pull/320
dezren39/darwin-nix#430https://github.com/dezren39/darwin-nix/issues/430
355caf1https://github.com/developing-today/code/commit/355caf10b0cbdc95f726c94c91f98eb4e64d316d
ca1abcahttps://github.com/developing-today/code/commit/ca1abca0857f2f73f49ce3576e0d10bb802e73f9
fix(mcpx): honour a cancelled context in inlineDaemon (port of dezren39/nix#430) #320https://github.com/developing-today/code/pull/320
e766ac1https://github.com/developing-today/code/commit/e766ac1e03756db9a9008c67254243fbb852f3d5
mcpx: inlineDaemon ignores a cancelled context — waits out the full 5s inline timeout and reports 'did not answer' (SET: nix + code) dezren39/darwin-nix#430https://github.com/dezren39/darwin-nix/issues/430
#319https://github.com/developing-today/code/issues/319
#322https://github.com/developing-today/code/pull/322
#320https://github.com/developing-today/code/pull/320
github-actionshttps://github.com/apps/github-actions
dezren39https://github.com/dezren39
on Oct 19, 2026https://github.com/developing-today/code/issues/323#event-33599825955
https://github.com/dezren39
dezren39https://github.com/dezren39
on Oct 19, 2026https://github.com/developing-today/code/issues/323#issuecomment-6258204089
test(mcpx): pin inlineDaemon's cancel-during-poll paths (#323) #330https://github.com/developing-today/code/pull/330
lab-ops-hub: public Worker has no auth on mutating, upload, AI and crawl endpoints (PR #436) #441https://github.com/developing-today/code/issues/441
dezren39https://github.com/dezren39
on Oct 19, 2026https://github.com/developing-today/code/issues/323#event-33604714543
Merge pull request #330 from developing-today/sweep/323-inlinedaemon-…https://github.com/developing-today/code/commit/6b41442bfe79ba4aa98ebe9370d2e5a35af4bbdd
#330https://github.com/developing-today/code/pull/330
6b41442https://github.com/developing-today/code/commit/6b41442bfe79ba4aa98ebe9370d2e5a35af4bbdd
dezren39https://github.com/dezren39
completedhttps://github.com/developing-today/code/issues?q=is%3Aissue%20state%3Aclosed%20archived%3Afalse%20reason%3Acompleted
#330https://github.com/developing-today/code/pull/330
on Oct 19, 2026https://github.com/developing-today/code/issues/323#event-33604714754
https://github.com/dezren39
dezren39https://github.com/dezren39
on Oct 19, 2026https://github.com/developing-today/code/issues/323#issuecomment-6258287346
#330https://github.com/developing-today/code/pull/330
6b41442https://github.com/developing-today/code/commit/6b41442bfe79ba4aa98ebe9370d2e5a35af4bbdd
#441https://github.com/developing-today/code/issues/441
6b41442https://github.com/developing-today/code/commit/6b41442bfe79ba4aa98ebe9370d2e5a35af4bbdd
#330https://github.com/developing-today/code/pull/330
#323https://github.com/developing-today/code/issues/323
Sign up for freehttps://github.com/signup?return_to=https://github.com/developing-today/code/issues/323
Sign in to commenthttps://github.com/login?return_to=https://github.com/developing-today/code/issues/323
dezren39https://github.com/dezren39
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-Controlmax-age=0, private, must-revalidate

Viewport: width=device-width


URLs of crawlers that visited me.