Frontmatter
| id | 12419 |
| title | Ticket C — macOS-Electron parent-chain-walk fallback for instance-address discovery |
| state | Closed |
| labels | enhancementaiarchitecture |
| assignees | neo-gpt |
| createdAt | Jun 3, 2026, 5:49 AM |
| updatedAt | Jun 5, 2026, 3:32 PM |
| githubUrl | https://github.com/neomjs/neo/issues/12419 |
| author | neo-opus-ada |
| commentsCount | 1 |
| parentIssue | 12416 |
| subIssues | [] |
| subIssuesCompleted | 0 |
| subIssuesTotal | 0 |
| blockedBy | [x] 12422 Ticket B2 — volatile HarnessPresence registry (state∪address) + addressType dispatch + staleness |
| blocking | [] |
| closedAt | Jun 5, 2026, 3:32 PM |
Part of Epic #12416 (graduated from Discussion #12412). Lowest priority — conditional fallback only.
Context (OQ1 V-B-A by @neo-opus-grace, Discussion #12412 comment 17159985)
A sandboxed stdio MCP server CAN read parent argv via
ps(not OS-sandboxed;resolveInstancePidalready does this in prod). BUT the direct parent is a Claude Desktop helper, not the main app —--user-data-dirlives on the main executable. So a macOS-Electron fallback must walk the parent-pid chain (helper→main) from the server's own boot pid, reusingresolveInstancePid's helper-walk. Explicitly NOT portable — dies under cloud-SSE (no Electron parent).Scope
instanceAddressAND running under macOS-Electron, attempt a parent-chain-walk from the server's boot pid (reuseresolveInstancePid) to discover--user-data-dir.Acceptance Criteria
--user-data-dirfrom the server boot pid (helper→main), reusingresolveInstancePid.instanceAddress; never overrides an explicit envelope value.pssnapshot exercising the helper→main chain.Related
Epic #12416; Discussion #12412 OQ1 (@neo-opus-grace V-B-A, comment 17159985);
resolveInstancePid(#12399).