René's URL Explorer Experiment


Title: mcpx: the daemon's socket name follows the symlink-resolved config path, so a nix-managed config moves it on every content change · Issue #368 · developing-today/code · GitHub

Open Graph Title: mcpx: the daemon's socket name follows the symlink-resolved config path, so a nix-managed config moves it on every content change · Issue #368 · developing-today/code

X Title: mcpx: the daemon's socket name follows the symlink-resolved config path, so a nix-managed config moves it on every content change · Issue #368 · developing-today/code

Description: Problem FingerprintConfig (pkgs/mcpx/internal/daemon/paths.go:198) resolves each config path through filepath.EvalSymlinks and hashes the result to name the daemon's socket. When the config is a home-manager/nix link (~/.config/mcpx/conf...

Open Graph Description: Problem FingerprintConfig (pkgs/mcpx/internal/daemon/paths.go:198) resolves each config path through filepath.EvalSymlinks and hashes the result to name the daemon's socket. When the config is a ho...

X Description: Problem FingerprintConfig (pkgs/mcpx/internal/daemon/paths.go:198) resolves each config path through filepath.EvalSymlinks and hashes the result to name the daemon's socket. When the config is ...

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

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: the daemon's socket name follows the symlink-resolved config path, so a nix-managed config moves it on every content change","articleBody":"## Problem\n\n`FingerprintConfig` (pkgs/mcpx/internal/daemon/paths.go:198) resolves each config path through `filepath.EvalSymlinks` and hashes the result to name the daemon's socket. When the config is a home-manager/nix link (`~/.config/mcpx/config.json` -> `/nix/store/\u003chash>-...-home-manager-files/...` -> `/nix/store/\u003chash>-hm_.configmcpxconfig.json`), the resolved path is content-addressed, so **every change to the config's content changes the socket name**.\n\nA daemon keyed to the old name stays on it; every CLI computes the new one, finds no daemon, and (with `daemon.autostart`) starts a second, detached one. When the first daemon is later restarted it computes the new name, finds it held, exits 1 \"a daemon is already listening\", and under a supervisor that respawns it (launchd KeepAlive) loops.\n\n## Evidence (dezren39/nix, macOS, 2026-10-19)\n\n- Socket name per system generation, recomputed from the config link: generations 290-295 `3489ca4d2ea0`, 296 `539ba2d32a06`, 297-304 `541cdd605dd1`.\n- `/tmp/mcpx.err.log`: the launchd daemon restarted at 20:58 and listened on `daemon-539ba2d32a06.sock` (nix-darwin restarts agents before home-manager re-links files, so it resolved the previous link).\n- 04:48:10: a CLI-autostarted daemon (`daemon --detached --idle-exit 4h`) took `daemon-541cdd605dd1.sock`.\n- From 11:47 (next mcpx update) launchd's daemon exited 1 \"a daemon is already listening on .../daemon-541cdd605dd1.sock\" 841 times until the stray was stopped at 14:09.\n- Reproduced with real binaries on a scratch state dir: config as a symlink re-pointed to another file -> CLI cannot reach the running daemon (exit 1); config as a regular file rewritten in place -> same socket, CLI reaches it, and the daemon hot-reloads the new servers via `daemon.watchConfig`.\n\nRelated, same cause: `stampConfig` (internal/daemon/routes_settings.go:726) compares `os.Stat` mtime + size, which follows the link; every nix store file has mtime 1, so with a store-linked config only a change of byte length is noticed.\n\n## Workaround in dezren39/nix\n\nThe config is now written as a regular file at a fixed path by an activation step, and `daemon.autostart` is off (dezren39/nix, branch remove-lootbox; homeUser.nix `mcpxConfig`, mcpx.config.nix).\n\n## Suggested fix\n\n- Key the socket on the config path with only its *directory* resolved (keeps the `/tmp` -> `/private/tmp` fix the current comment was written for, paths.go:181-184), not the file's link target.\n- In `stampConfig`, include the resolved target path (or use `Lstat` + `Readlink` for links) so a re-pointed link is noticed even when the target's mtime and size match.\n- Correct the comments that say the socket name is stable across edits (paths.go:80-88).\n\n## Acceptance criteria\n\n- [ ] A test: config path is a symlink; re-point it to a different file with different content; a CLI started afterwards reaches the already-running daemon, and the daemon reloads the new content.\n- [ ] A test: same-size content change behind a re-pointed link is detected by the watch poll.\n","author":{"url":"https://github.com/dezren39","@type":"Person","name":"dezren39"},"datePublished":"2026-10-19T20:49:31Z","url":"https://github.com/developing-today/code/issues/368"}

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:52cab0b0-896f-667b-4621-df40ebfafb95
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idEDA6:2E0249:208E539:2B315FD:6B069B84
html-safe-nonce2ccb66a81139445ba4db53cae3ad21bd032a004f1c7f4c71d681113ddd28dcfe
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFREE2OjJFMDI0OToyMDhFNTM5OjJCMzE1RkQ6NkIwNjlCODQiLCJ2aXNpdG9yX2lkIjoiMTQ3MzM4Mzg2ODM1MzkxMTY4NCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmace0bb32a47f7ea6ec5aff59b71c01b3b79e283094a07fcbb26653cc95b6b081b4
hovercard-subject-tagissue:5931337722
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/368/issue_layout
twitter:imagehttps://opengraph.githubassets.com/cdbdee24e9469ac02f331fb8473f1591bcbd26b0b7a2fc63bc0ac8aa8a2fdb8c/developing-today/code/issues/368
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/cdbdee24e9469ac02f331fb8473f1591bcbd26b0b7a2fc63bc0ac8aa8a2fdb8c/developing-today/code/issues/368
og:image:altProblem FingerprintConfig (pkgs/mcpx/internal/daemon/paths.go:198) resolves each config path through filepath.EvalSymlinks and hashes the result to name the daemon's socket. When the config is a ho...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamedezren39
hostnamegithub.com
expected-hostnamegithub.com
None4462ff7ebfd3d551f202659f2423dae617b6849d23b1df6465dc504ef497d14a
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
release6d3909414814ff86ce7da4c51a0f4918a13fb41b
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/developing-today/code/issues/368#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fdeveloping-today%2Fcode%2Fissues%2F368
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%2F368
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/368
Reloadhttps://github.com/developing-today/code/issues/368
Reloadhttps://github.com/developing-today/code/issues/368
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 requests176 (176)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/368
New issuehttps://github.com/login?return_to=https://github.com/developing-today/code/issues/368
#369https://github.com/developing-today/code/pull/369
mcpx: the daemon's socket name follows the symlink-resolved config path, so a nix-managed config moves it on every content changehttps://github.com/developing-today/code/issues/368#top
#369https://github.com/developing-today/code/pull/369
https://github.com/dezren39
https://github.com/dezren39
dezren39https://github.com/dezren39
on Oct 19, 2026https://github.com/developing-today/code/issues/368#issue-5931337722
github-actionshttps://github.com/apps/github-actions
dezren39https://github.com/dezren39
on Oct 19, 2026https://github.com/developing-today/code/issues/368#event-33684472430
dezren39https://github.com/dezren39
on Oct 19, 2026https://github.com/developing-today/code/issues/368#event-33684799032
mcpx: one daemon on a socket that never moves; agents stop gracefullyhttps://github.com/dezren39/darwin-nix/commit/ecca0a195bb05706d16b20d44508040b906a22ce
ecca0a1https://github.com/dezren39/darwin-nix/commit/ecca0a195bb05706d16b20d44508040b906a22ce
fix(mcpx): keep the daemon key stable when a config symlink is re-poi…https://github.com/developing-today/code/commit/2b0c539b89186ffd5cc68e21a9c3b8c3a636854e
2b0c539https://github.com/developing-today/code/commit/2b0c539b89186ffd5cc68e21a9c3b8c3a636854e
dezren39https://github.com/dezren39
completedhttps://github.com/developing-today/code/issues?q=is%3Aissue%20state%3Aclosed%20archived%3Afalse%20reason%3Acompleted
#369https://github.com/developing-today/code/pull/369
on Oct 19, 2026https://github.com/developing-today/code/issues/368#event-33690057720
Sign up for freehttps://github.com/signup?return_to=https://github.com/developing-today/code/issues/368
Sign in to commenthttps://github.com/login?return_to=https://github.com/developing-today/code/issues/368
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.