feat(probe): deliver Relay messages to agents in the Cursor editor
Summary
- The core now delivers Relay messages to agents in the Cursor editor, not only Cursor CLI, and wakes an idle agent when one arrives. Ported from relay-desktop 1b2856ce and 6d8ab4fc, core parts only.
relay initsets Cursor up: MCP config in~/.cursor/mcp.json, delivery hooks in~/.cursor/hooks.json, and the skill.relay init --uninstallremoves only what init added.PROBE_VERSIONstays 15.0.7 here. The editor route needs the next core release, so the pin bumps at release. Until then Cursor gets the existing CLI route.
Left out: Cursor Cloud sync and the relayhistory 0.54.1 bump (a separate PR), GTK and Swift changes, and process/snapshot.rs (relay has no ProcessSnapshot). No routing or key-origin code is touched.
Test Plan
- Tests added/updated: editor routing, idle wake, hook settings,
relay initdelivery, uninstall, and a core refusing the setting - Manual testing completed: not done yet. A live Cursor editor test, including waking an idle agent, must pass before merge
crates/probe, before rebasing onto the 15.0.2 release: default features 3555 passed, 2 failed; --no-default-features 2779 passed, 1 failed. All three failures also happen on clean main at 7d01906dc: two history_flush timing checks and relay_core_binary::the_binary_serves_answers_calls_and_stops_with_its_host. CLI package: 2667 passed, 0 failed; after final formatting only agent-tools-mcp.test.ts was rerun, 132 passed. All of this used fake cores; a real relay init hasn't been run, and Cursor detection hasn't been checked against a real install.
RelayFlow Proof
No case declared, as with recent feat PRs #2037, #2017 and #2006. A live Cursor session can't run in CI.
Screenshots
n/a
🤖 Generated with Claude Code
![View with [code]smith](https://pr-comments-assets.blacksmith.sh/codesmith/view-with-codesmith-dark-v3-3x.png)
![Autofix with [code]smith](https://pr-comments-assets.blacksmith.sh/codesmith/autofix-with-codesmith-dark-3x.png)
Need help on this PR? Tag @codesmith-bot with what you need.
Agent Relay sessions
claudesessiona994d8be· opened viagh pr create· last active 2026-11-01