Skip to content

Validate registry URL and OAuth config eagerly on set/login #5151

@eleftherias

Description

@eleftherias

Summary

Registry URL and OAuth configuration errors currently surface only when the user first lists servers — well after thv registry set or thv registry login have returned successfully. The configuration appears saved correctly, but the error appears later through an unrelated-looking message.

This issue tracks moving those validations earlier so users get immediate, actionable feedback at configuration time.

What needs to change

  • Probe the registry API URL before saving it. Verify the endpoint is reachable before persisting the URL. A 401 response is acceptable only when auth credentials are being provided in the same operation; any other failure should be returned immediately.

Generated with Claude Code

Metadata

Metadata

Assignees

No one assigned

    Labels

    apiItems related to the APIauthchorecliChanges that impact CLI functionalityenhancementNew feature or requestgoPull requests that update go codeoauth

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions