Skip to content

fix(runtime): proxy MCP before opening local stores#420

Merged
ScriptedAlchemy merged 2 commits into
masterfrom
codex/mcp-daemon-hot-swap
Jul 10, 2026
Merged

fix(runtime): proxy MCP before opening local stores#420
ScriptedAlchemy merged 2 commits into
masterfrom
codex/mcp-daemon-hot-swap

Conversation

@ScriptedAlchemy

Copy link
Copy Markdown
Owner

Summary

  • choose the managed-daemon proxy before tracedecay serve resolves or opens project/global stores
  • delegate config-gated git auto-init to the daemon and drop late-race local handles before proxying
  • keep one daemon connection per request, so a long-lived stdio MCP process reconnects across socket/PID replacement without replaying requests after a write
  • fix the Unix-only daemon drain test import that broke Windows test compilation

Compatibility

No old tool-schema fallback is added. Existing stdio MCP processes can reconnect for already-known calls; hosts must start a new MCP session to refresh a cached tools/list after tool-schema changes.

Tests

  • cargo test --lib daemon::tests::long_lived_proxy_reconnects_after_daemon_socket_rebind -- --exact
  • cargo test --test mcp_suite mcp_cli_serve_test::serve_with_reachable_daemon_proxies_before_opening_explicit_project -- --exact
  • restart-window, initialize-root routing, and disconnect regression tests
  • cargo check --tests --target x86_64-pc-windows-gnu
  • cargo clippy --all-targets -- -D warnings
  • cargo fmt --all -- --check

@changeset-bot

changeset-bot Bot commented Jul 10, 2026

Copy link
Copy Markdown

⚠️ No Changeset found

Latest commit: 54c9d7b

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.
To continue using code reviews, add credits to your account and enable them for code reviews in your settings.

@ScriptedAlchemy ScriptedAlchemy merged commit 6b05327 into master Jul 10, 2026
13 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant