SheetXL - v1.0.2
    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.