Repository navigation
Closed
Description
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
- Making all Relay dependencies mandatory would change the lightweight local/SSH installation and Python compatibility boundary.
- Automatically installing dependencies or switching installation managers is not acceptable without user consent.
- Guided setup and code/link pairing belong in separate v1.1.0 issues.
- fix(install): preserve the previous standalone on interrupted installation #204 addresses interrupted installer replacement, not onboarding guidance; fix(control): isolate auth rate limits behind the trusted reverse proxy #202 addresses server-side rate-limit identity, not the user-facing explanation.
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