SheetXL - v0.8.0-beta.9+sites.210.e2d420901
    Preparing search index...

    Function discoverRelay

    • Finds the live relay, or null when no client UI is running.

      Returns Promise<RelayLock | null>

      Two strategies, in order:

      1. The workspace-scoped lock — the case where the surface was launched from the project directory (Claude Code).
      2. The newest lock that answers — VS Code's contributes.mcpServers launch does not guarantee cwd is the workspace root, so the scoped path can miss a relay that is right there.

      Stale locks are unlinked as a side effect, which is what keeps the probe cost bounded.