feat(probe): take the desktop core's public code as relay's core

Merged
KJ
9d ago
+26350-16827

Relay's core (crates/probe) and Agent Relay Desktop's core split from the same snapshot. This takes desktop's public core as relay's core, so both build from one place and relay-desktop can pin a relay commit as a git dependency.

How it was built

A per-file three-way merge (base = the shared snapshot, one side = desktop's public core, the other = relay main). Relay's own changes are re-applied on top. Silent losses where desktop had deleted code were found by diffing against relay main, and restored.

Relay behaviour kept

  • The history and relay-cli feature gates. production-binaries implies relay-cli, and the release cargo tree has no relayhistory crates.
  • Fleet, --cli-managed, CLI workspace keys and armadillo routing.
  • The Pi and OpenCode auto-activate settings, cursor_direct_delivery, and the Cursor fixes.
  • Grok joining, as local-user:<uid> with no account.
  • Device sign-in for Relay Connect.

What's new in the core

  • It works from a workspace key with no account. Sign-in, hosted MCP setup and attestation aren't in it.
  • A build may add them through AccountPlugin, MethodExtension and PluginBuilder. These are unsupported internals, not a public API.
  • Clients use the contract. With no account, account.*, uploader.* and tools.* answer method_not_found.

Relay behaviour that changes, each reviewed

  • Stale Devin Cloud sessions stop auto-joining after 24 hours.
  • Retained Codex rows stop counting as live after 5 minutes.
  • The Linux launcher is named agent-relay-desktop; the old name is still recognised.
  • Integration defaults wait for a workspace.

Verification

  • Default, release and history feature sets compile with --all-targets.
  • Release --lib: 2,619 passed.
  • Default suite: 3,687 passed. The 2 failures are the known history_flush timing tests on this disk.
  • Core lane (#2054) on this branch: relay init parity 8/8 across every tool, Cursor delivery, and both Grok cases.
  • New tests pin setup status with no account, and that a CLI-managed core connects no detected tools. The second fails without its fix.
  • The crate's open-source check passes.

Not covered here: the matching relay-desktop change that pins this commit, which comes next.

🤖 Generated with Claude Code


View with [code]smith Autofix with [code]smith
Need help on this PR? Tag @codesmith-bot with what you need.


Agent Relay sessions

  • claude session 7cc781f4 · opened via gh pr create · last active 2026-11-02