René's URL Explorer Experiment


Title: mcpx(source): a directory source reads non-regular files — a FIFO blocks resolution forever, and a socket or symlink-to-directory aborts it · Issue #1727 · developing-today/code · GitHub

Open Graph Title: mcpx(source): a directory source reads non-regular files — a FIFO blocks resolution forever, and a socket or symlink-to-directory aborts it · Issue #1727 · developing-today/code

X Title: mcpx(source): a directory source reads non-regular files — a FIFO blocks resolution forever, and a socket or symlink-to-directory aborts it · Issue #1727 · developing-today/code

Description: mcpx(source): a directory source reads non-regular files — a FIFO blocks resolution forever, a socket or symlink-to-directory aborts it Summary internal/source's directory resolution collects every non-directory entry a walk finds and re...

Open Graph Description: mcpx(source): a directory source reads non-regular files — a FIFO blocks resolution forever, a socket or symlink-to-directory aborts it Summary internal/source's directory resolution collects every...

X Description: mcpx(source): a directory source reads non-regular files — a FIFO blocks resolution forever, a socket or symlink-to-directory aborts it Summary internal/source's directory resolution collects e...

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

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(source): a directory source reads non-regular files — a FIFO blocks resolution forever, and a socket or symlink-to-directory aborts it","articleBody":"# mcpx(source): a directory source reads non-regular files — a FIFO blocks resolution forever, a socket or symlink-to-directory aborts it\n\n## Summary\n\n`internal/source`'s directory resolution collects **every** non-directory entry a walk finds and reads it, although the package documents the opposite. One FIFO in a source directory hangs `Resolve` indefinitely; one unix socket or one symlink to a directory aborts the whole resolution with a low-level OS error. All of the directory's ordinary script fragments are lost either way.\n\n## Evidence (verified this run)\n\nCode, on current main (`source.go`, sha256 `e6834f6e3557c9d26239f86cd912af82428cc9c5d5e69ce01fe0212d07763b68`, identical in both clones):\n\n- `pkgs/mcpx/internal/source/source.go:59` — the `Options.Extensions` doc: *\"Empty takes every regular file.\"*\n- `source.go:149-158` — the `readDir` walk callback: a directory entry is descended into / skipped per `Recursive`; the only other filter is `wanted(path, opt.Extensions)` (extension only). Every remaining entry — FIFO, socket, device, symlink-to-directory — is appended to `files`.\n- `source.go:131-137, 161-…` — each collected path is opened with `os.ReadFile`. Opening a FIFO for reading blocks until a writer appears; opening a socket fails `ENXIO`; opening a symlink to a directory fails `EISDIR`. Any error aborts the whole `Resolve`.\n\nConsumers: plumbing sources (launchers, prefixes, error hooks) resolve through `source.Resolve` at `internal/cli/commands.go:263` and `internal/cli/commands.go:2180`, so a directory a user points one of those settings at is the reachable input.\n\nProbe — executed this run **on the laptop** in a detached worktree at `origin/main` `2217171d`, as a test in the real `internal/source` package (probe + full log preserved by the filer; existing package suite: 14 tests pass, only the three probe bug-cases fail):\n\n- CTRL: a directory of two regular `.ts` files resolves and concatenates both — PASS.\n- CTRL: a symlink to a regular file inside the directory resolves and is read — PASS (this behaviour must be preserved).\n- BUG-A (FIFO): directory with `a.ts` + a FIFO → `Resolve` still blocked after 3 s (it blocks until a writer opens the FIFO — potentially forever in a CLI/daemon call).\n- BUG-B (symlink to a directory): directory with `a.ts` + a symlink to a real subdirectory → `Resolve` fails: `reading …/linkdir: read …/linkdir: is a directory`. A real subdirectory is silently skipped when not recursive; the symlink form aborts everything.\n- BUG-C (unix socket): directory with `a.ts` + a live unix socket file → `Resolve` fails: `reading …/sock: open …/sock: no such device or address`.\n\n## Why it matters\n\nDirectory sources exist for exactly the messy real-world case: a folder of script fragments that grows over time. Sockets and FIFOs appear in such folders in practice (a dev server's socket, a logging pipe, an editor/tool leftover), and today any one of them either wedges an mcpx invocation with no diagnostic at all (the FIFO case — the worst failure mode: no error, no timeout) or discards every fragment in the directory over one entry the resolver was never supposed to read. This contradicts the package's own documented contract (\"every regular file\").\n\n## Acceptance criteria\n\n- [ ] `readDir` only reads regular files: walk entries that are not regular (FIFO, socket, device) are skipped, not read — a directory containing one still resolves its regular files.\n- [ ] A symlink is judged by its target: a symlink to a regular file is still read (current behaviour, pinned by a test); a symlink to a directory is treated like a directory (skipped when not recursive, descended when recursive), never an `EISDIR` abort.\n- [ ] No regression for the plain cases: natural-order concatenation, extension filtering, and the non-recursive subdirectory skip keep working; the existing `internal/source` suite stays green.\n- [ ] New tests in `internal/source` cover at least: FIFO in a directory (resolution completes), unix socket in a directory, symlink-to-directory (both recursive settings), and symlink-to-regular-file.\n- [ ] Triage pin to decide: whether skipping a non-regular entry should be silent (matching how non-recursive subdirectories are silently skipped) or logged — either is acceptable if it is deliberate and tested; hanging or aborting is not.\n\n## Notes\n\n- Not a duplicate of #1702 (searchpath `~name` expansion): different package and defect. `internal/source`'s own `abs` shares the `~name` shape — worth a grep during triage, but it is not this issue.\n- Filed by the new-issue-creator (lane B); verification was a live probe in the real package, not a premise mirror.\n","author":{"url":"https://github.com/dezren39","@type":"Person","name":"dezren39"},"datePublished":"2026-10-28T16:27:45Z","url":"https://github.com/developing-today/code/issues/1727"}

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:b96d4fd1-d454-30cc-41ac-f24ebc7fd4c8
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idECF4:36E018:99F50:D670B:6B07369F
html-safe-noncea288045ed0775ed3df7b7da3f4ed5275575b7b7a1b9fdf7931bd11a48a531d11
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFQ0Y0OjM2RTAxODo5OUY1MDpENjcwQjo2QjA3MzY5RiIsInZpc2l0b3JfaWQiOiIzNjczNjIwNjIyOTQ2NjA3NjciLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmac47edfd3f204881d65fc98da63045d7d4692d201ede018e3811d415a3c1a1b4ad
hovercard-subject-tagissue:6083097707
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/1727/issue_layout
twitter:imagehttps://opengraph.githubassets.com/d740ea993b96514ce5db0b52f48c19e4ee02e2cbcfb10d04234843dbba34325f/developing-today/code/issues/1727
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/d740ea993b96514ce5db0b52f48c19e4ee02e2cbcfb10d04234843dbba34325f/developing-today/code/issues/1727
og:image:altmcpx(source): a directory source reads non-regular files — a FIFO blocks resolution forever, a socket or symlink-to-directory aborts it Summary internal/source's directory resolution collects every...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamedezren39
hostnamegithub.com
expected-hostnamegithub.com
Noned97a1befc96fc1512839eca15eb541061d491301144c9168e2985a8580319a49
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
released28643426bfe8d1692f8788961b8217e9003f493
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/developing-today/code/issues/1727#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fdeveloping-today%2Fcode%2Fissues%2F1727
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%2F1727
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/1727
Reloadhttps://github.com/developing-today/code/issues/1727
Reloadhttps://github.com/developing-today/code/issues/1727
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 requests194 (194)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/1727
New issuehttps://github.com/login?return_to=https://github.com/developing-today/code/issues/1727
#3744https://github.com/developing-today/code/pull/3744
mcpx(source): a directory source reads non-regular files — a FIFO blocks resolution forever, and a socket or symlink-to-directory aborts ithttps://github.com/developing-today/code/issues/1727#top
#3744https://github.com/developing-today/code/pull/3744
https://github.com/dezren39
app/mcpxhttps://github.com/developing-today/code/issues?q=state%3Aopen%20label%3A%22app%2Fmcpx%22
effort/shttps://github.com/developing-today/code/issues?q=state%3Aopen%20label%3A%22effort%2Fs%22
kind/bughttps://github.com/developing-today/code/issues?q=state%3Aopen%20label%3A%22kind%2Fbug%22
priority/normalhttps://github.com/developing-today/code/issues?q=state%3Aopen%20label%3A%22priority%2Fnormal%22
source/creatorhttps://github.com/developing-today/code/issues?q=state%3Aopen%20label%3A%22source%2Fcreator%22
status:in-reviewhttps://github.com/developing-today/code/issues?q=state%3Aopen%20label%3A%22status%3Ain-review%22
task/triagehttps://github.com/developing-today/code/issues?q=state%3Aopen%20label%3A%22task%2Ftriage%22
https://github.com/dezren39
dezren39https://github.com/dezren39
on Oct 28, 2026https://github.com/developing-today/code/issues/1727#issue-6083097707
mcpx(searchpath): a ~name search-path entry is silently resolved under the caller's own home — ~alice/scripts becomes $HOME/alice/scripts #1702https://github.com/developing-today/code/issues/1702
Nexthttps://github.com/developing-today/code/issues/1727?timeline_page=1
https://github.com/apps/developing-today
developing-todayhttps://github.com/apps/developing-today
on Oct 28, 2026https://github.com/developing-today/code/issues/1727#issuecomment-6474606867
developing.todayhttps://kaneo.security.cab
CODE-695https://kaneo.security.cab/dashboard/workspace/6oQgIkST0YGrCcxrnhbHPOUCfgdD3cqE/project/pfcq432h349r20up18gttfv4/task/wr6vj5sop1onlklg7m7xak3k
dezren39https://github.com/dezren39
kind/bughttps://github.com/developing-today/code/issues?q=state%3Aopen%20label%3A%22kind%2Fbug%22
queue/queuedhttps://github.com/developing-today/code/issues?q=state%3Aopen%20label%3A%22queue%2Fqueued%22
source/creatorhttps://github.com/developing-today/code/issues?q=state%3Aopen%20label%3A%22source%2Fcreator%22
task/triagehttps://github.com/developing-today/code/issues?q=state%3Aopen%20label%3A%22task%2Ftriage%22
status/needs-triagehttps://github.com/developing-today/code/issues?q=state%3Aopen%20label%3A%22status%2Fneeds-triage%22
priority/normalhttps://github.com/developing-today/code/issues?q=state%3Aopen%20label%3A%22priority%2Fnormal%22
app/mcpxhttps://github.com/developing-today/code/issues?q=state%3Aopen%20label%3A%22app%2Fmcpx%22
effort/shttps://github.com/developing-today/code/issues?q=state%3Aopen%20label%3A%22effort%2Fs%22
on Oct 28, 2026https://github.com/developing-today/code/issues/1727#event-34496519597
https://github.com/dezren39
dezren39https://github.com/dezren39
on Oct 28, 2026https://github.com/developing-today/code/issues/1727#issuecomment-6474617933
2217171https://github.com/developing-today/code/commit/2217171d3ecb3bc3150d2ad5db35037cfe7017a9
github-actionshttps://github.com/apps/github-actions
dezren39https://github.com/dezren39
on Oct 28, 2026https://github.com/developing-today/code/issues/1727#event-34500705563
dezren39https://github.com/dezren39
work/assignedhttps://github.com/developing-today/code/issues?q=state%3Aopen%20label%3A%22work%2Fassigned%22
queue/claimedhttps://github.com/developing-today/code/issues?q=state%3Aopen%20label%3A%22queue%2Fclaimed%22
status/in-progresshttps://github.com/developing-today/code/issues?q=state%3Aopen%20label%3A%22status%2Fin-progress%22
status/needs-triagehttps://github.com/developing-today/code/issues?q=state%3Aopen%20label%3A%22status%2Fneeds-triage%22
on Nov 1, 2026https://github.com/developing-today/code/issues/1727#event-34806925502
dezren39https://github.com/dezren39
status/in-progresshttps://github.com/developing-today/code/issues?q=state%3Aopen%20label%3A%22status%2Fin-progress%22
queue/claimedhttps://github.com/developing-today/code/issues?q=state%3Aopen%20label%3A%22queue%2Fclaimed%22
work/assignedhttps://github.com/developing-today/code/issues?q=state%3Aopen%20label%3A%22work%2Fassigned%22
on Nov 1, 2026https://github.com/developing-today/code/issues/1727#event-34806984318
https://github.com/dezren39
dezren39https://github.com/dezren39
on Nov 1, 2026https://github.com/developing-today/code/issues/1727#issuecomment-6551507464
dezren39https://github.com/dezren39
work/assignedhttps://github.com/developing-today/code/issues?q=state%3Aopen%20label%3A%22work%2Fassigned%22
queue/claimedhttps://github.com/developing-today/code/issues?q=state%3Aopen%20label%3A%22queue%2Fclaimed%22
status/in-progresshttps://github.com/developing-today/code/issues?q=state%3Aopen%20label%3A%22status%2Fin-progress%22
on Nov 1, 2026https://github.com/developing-today/code/issues/1727#event-34837550798
https://github.com/dezren39
dezren39https://github.com/dezren39
on Nov 1, 2026https://github.com/developing-today/code/issues/1727#issuecomment-6559667855
developing-todayhttps://github.com/apps/developing-today
status:in-reviewhttps://github.com/developing-today/code/issues?q=state%3Aopen%20label%3A%22status%3Ain-review%22
on Nov 1, 2026https://github.com/developing-today/code/issues/1727#event-34837942578
dezren39https://github.com/dezren39
status/in-progresshttps://github.com/developing-today/code/issues?q=state%3Aopen%20label%3A%22status%2Fin-progress%22
queue/claimedhttps://github.com/developing-today/code/issues?q=state%3Aopen%20label%3A%22queue%2Fclaimed%22
work/assignedhttps://github.com/developing-today/code/issues?q=state%3Aopen%20label%3A%22work%2Fassigned%22
on Nov 1, 2026https://github.com/developing-today/code/issues/1727#event-34838011279
https://github.com/dezren39
dezren39https://github.com/dezren39
on Nov 1, 2026https://github.com/developing-today/code/issues/1727#issuecomment-6559791719
mcpx(source): safely traverse directory fragments (#1727) #3744https://github.com/developing-today/code/pull/3744
mcpx(source): safely traverse directory fragments (#1727) #3744https://github.com/developing-today/code/pull/3744
dezren39https://github.com/dezren39
on Nov 2, 2026https://github.com/developing-today/code/issues/1727#event-34928066766
Merge pull request #3744 from developing-today/queue/4785-1727-safe-d…https://github.com/developing-today/code/commit/c9428da51821ff967a2bcdfac20a866b69c07aa9
#3744https://github.com/developing-today/code/pull/3744
c9428dahttps://github.com/developing-today/code/commit/c9428da51821ff967a2bcdfac20a866b69c07aa9
dezren39https://github.com/dezren39
completedhttps://github.com/developing-today/code/issues?q=is%3Aissue%20state%3Aclosed%20archived%3Afalse%20reason%3Acompleted
#3744https://github.com/developing-today/code/pull/3744
on Nov 2, 2026https://github.com/developing-today/code/issues/1727#event-34928068150
Sign up for freehttps://github.com/signup?return_to=https://github.com/developing-today/code/issues/1727
Sign in to commenthttps://github.com/login?return_to=https://github.com/developing-today/code/issues/1727
dezren39https://github.com/dezren39
app/mcpxhttps://github.com/developing-today/code/issues?q=state%3Aopen%20label%3A%22app%2Fmcpx%22
effort/shttps://github.com/developing-today/code/issues?q=state%3Aopen%20label%3A%22effort%2Fs%22
kind/bughttps://github.com/developing-today/code/issues?q=state%3Aopen%20label%3A%22kind%2Fbug%22
priority/normalhttps://github.com/developing-today/code/issues?q=state%3Aopen%20label%3A%22priority%2Fnormal%22
source/creatorhttps://github.com/developing-today/code/issues?q=state%3Aopen%20label%3A%22source%2Fcreator%22
status:in-reviewhttps://github.com/developing-today/code/issues?q=state%3Aopen%20label%3A%22status%3Ain-review%22
task/triagehttps://github.com/developing-today/code/issues?q=state%3Aopen%20label%3A%22task%2Ftriage%22
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.