Repository navigation
Description
Problem
Adding a custom relay asks for a model id as free text. Maka fetches the endpoint's catalog immediately after the connection is created, so the value the user typed is usually replaced seconds later — they were asked to guess something the app was about to find out.
The ordering is what forces it: fetchModels (bridge-contract.d.ts:802) takes a connection slug, so discovery cannot run until the connection exists. The form therefore has nothing to offer while the user is filling it in, and free text is the only honest control for a value nobody knows yet.
The immediate harm is addressed separately — the field is no longer required, and a failed fetch is now reported instead of swallowed. What remains is that the user still cannot see the catalog at the moment they are choosing from it.
What this needs
A probe: given a base URL and credentials, list the models that endpoint serves, without persisting a connection.
That is a new operation, not a new caller of an existing one. Sketch of the surface it would cross:
- a Runtime Host operation that performs discovery against supplied connection material rather than a stored connection
- the preload/IPC surface to reach it
- a "fetch models" action in the add form, turning the model field into a picker once it returns
RUNTIME_HOST_COMPATIBILITY_EPOCH— a new wire operation is a decode change in the new-Client-against-old-Host direction
Decisions worth settling before implementation
- Where the probe runs. Discovery from the Host keeps credentials off the renderer, matching how
fetchModelsalready works. It also means the probe inherits the Host's network path, which is the one that matters — a relay reachable from the renderer but not the Host would otherwise pass the probe and fail in use. - What it may keep. Nothing, ideally: a probe that writes no connection and caches no credential has no cleanup story and no half-created state to reconcile. That constrains the operation shape.
- What a failed probe means. It must not block creation. An endpoint that serves no catalog is a supported configuration — that is exactly when a hand-typed model id is the right answer.
Not in scope
Changing how discovery works for connections that already exist. fetchModels and the "update models" action in the connection detail are unaffected.
Refs #3443
Activity
rootkiller6788 commentedon Aug 24, 2026
Claiming this issue.
Plan:
AI use: Claude Code assisted with codebase analysis and implementation. I will review the final diff and remain the contributor of record.
sheng198298 commentedon Sep 8, 2026
Hi, I'd like to confirm the scope before claiming. The issue mentions a new wire operation + epoch bump — is this
gated on a Runtime Host minor version, or does the design want a feature flag first? Happy to pick this up once the
approach is settled.
feat(desktop): probe a custom relay with its endpoint and headers
github-actions commentedon Oct 9, 2026
This issue has had no human activity for 30 days and has been marked stale. It will be closed in 30 days unless someone comments.
If the issue is still current, please confirm it against the latest
mainand add any information that would help move it forward. Assigned issues and issues labelledpinnedare exempt from this policy.feat(desktop): probe a custom relay with its endpoint and headers
rootkiller6788 commentedon Nov 8, 2026
Still current. PR #3700 implements this for the TypeScript Desktop:
connection.onboarding.verifygains optional caller-suppliedrequestHeaderson acreatetarget, so a relay's catalog can be probed before any connection is saved, and the add form offers the discovered models as a picker.On the scope question above: it is gated by
RUNTIME_HOST_COMPATIBILITY_EPOCH, not by a feature flag. The epoch bump (now 239, withmainat 238) is the gate — epoch-238 peers reject the unknown key at decode, ahead of admission, so a newer Desktop against an older Host loses custom-relay onboarding rather than sending a frame the Host cannot interpret.The PR is rebased on
5d3a0629and mergeable; its workflow run is waiting on maintainer approval.