Skip to content

fix(onboarding): provide actionable Relay dependency and connection diagnostics #210

Closed

Description

@abruption

Motivation

A user trying to connect to the public Relay must discover the optional session-peer[relay] installation, Python requirements, login/enrollment, receiver policy, and pairing workflow. Missing dependencies or an unavailable connection should explain the next safe action rather than requiring knowledge of internal components.

This is the patch-sized part of the user-approved onboarding improvement. Keep v1.0.2 focused on guidance and diagnostics, not a new authentication or pairing protocol.

Alternatives considered

Proposed behaviour

  • Detect a missing Relay extra or incompatible Python before attempting a connection and give an actionable command appropriate to the detected installation manager.
  • Distinguish pipx, uv, virtualenv/pip, and standalone where reliably detectable. If ambiguous, explain choices instead of executing a guessed command. Installing a skill/plugin alone must not be presented as installing the Python Relay runtime.
  • Use existing observable signals to distinguish expired/missing login, unenrolled device, missing pairing or policy permission, receiver unavailable, and a missing/stopped native target.
  • Never assert a precise cause where the available evidence is insufficient: report unknown/unreachable instead.
  • Document the shortest supported first-connection flow consistently in the four documentation languages.

Acceptance criteria

  • Missing-extra and Python-version fixtures produce actionable, manager-aware guidance without network mutation or package installation.
  • Existing usable installations are preserved; no silent switch from standalone/pipx/uv/pip or automatic credential/state changes.
  • Connection guidance is backed by existing error/state evidence, with tests for distinguishable states and ambiguous/unobservable cases.
  • Machine-readable errors remain backward compatible; diagnostics disclose no credentials, device codes, message contents, or private paths unnecessarily.
  • Local/SSH usage remains dependency-light and unaffected.
  • No automatic send retry after an uncertain result; queued/posted is not described as an ACK.
  • Four-language setup/troubleshooting documentation matches tested commands.

Scope

No new monitoring daemon, background installation, account registration, pairing protocol, or operating-service change in this patch. This issue records work to implement; no fix or deployment has been performed.

Activity

  1. added this to the v1.0.2 milestone on Sep 27, 2026
  2. added
    bug
    on Sep 27, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions