mirror of
https://github.com/aaronsb/obsidian-mcp-plugin.git
synced 2026-07-22 06:45:14 +00:00
Replace the JEST_WORKER_ID bootstrap guard with a bridge-owned MCP_BRIDGE_NO_AUTOSTART opt-out. JEST_WORKER_ID is a jest-worker artifact that isn't reliably set under --runInBand, so an in-band run could let bridge-self-heal's in-process require() fire main() and process.exit(1) — the same boot-trap class this fix exists to kill. The bridge now declares its own boot contract: autostart unless a caller explicitly opts out. bridge-self-heal sets the var before requiring; bridge-bootstrap strips it from spawned child env (in case a sibling test set it in the worker) so real launches still autostart. Test robustness (review nits): parse only a complete newline- terminated stdout line (a mid-line chunk split would throw on partial JSON and flake); route every terminal path through a `finish` helper that clears the timer and kills the child, so no failure mode orphans a process. Expand the guard comment to note the manifest launches `node server.js` (where require.main would be true) while Desktop's built-in-Node path is the one that breaks. Refs #243. Claude-Session: https://claude.ai/code/session_011yowKCMFCBp61DRBu5xQm4 |
||
|---|---|---|
| .. | ||
| __mocks__ | ||
| fixtures | ||
| security | ||
| validation | ||
| bases-expression-evaluator.test.ts | ||
| bases-yaml.test.ts | ||
| bridge-bootstrap.test.ts | ||
| bridge-self-heal.test.ts | ||
| combine-inline-router.test.ts | ||
| combine-inline.test.ts | ||
| dataview-integration.test.ts | ||
| dispatch-param-guards.test.ts | ||
| file-lock-edit-serialization.test.ts | ||
| fuzzy-match.test.ts | ||
| graph-ignore-exclusion.test.ts | ||
| graph-node-title.test.ts | ||
| graph-search-traversal.test.ts | ||
| graph-search.test.ts | ||
| graph-statistics-vault-wide.test.ts | ||
| list-files-recursive.test.ts | ||
| mcp-server.test.ts | ||
| mcp-session-reinit.test.ts | ||
| network-classifier.test.ts | ||
| network-exposure-integration.test.ts | ||
| patch-operations.test.ts | ||
| read-only-mode.test.ts | ||
| recursive-copy.test.ts | ||
| search-tag-operator.test.ts | ||
| setup.ts | ||
| sse-socket-timeout.test.ts | ||
| vault-read-fidelity.test.ts | ||