Skip to content

fix(cliconfig): explain stale provider credential IDs - #1665

Merged
jhrozek merged 1 commit into
mainfrom
worktree-issue-1638-provider-rename-diagnostics
Sep 17, 2026
Merged

jhrozek merged 1 commit into
mainfrom
worktree-issue-1638-provider-rename-diagnostics

Conversation

@jhrozek

@jhrozek jhrozek commented Sep 16, 2026

Copy link
Copy Markdown
Contributor

Summary

Fixes #1638.

When a custom provider ID is renamed in settings.yaml but the corresponding auth.yaml entry remains stale, credential validation already produces a safe, actionable warning. The credential-loading callers were discarding it and returning only auth file validation failed.

This change preserves the warning through strict loading, cached credential resolution, and the provider credential resolver. The diagnostic identifies the auth-file path and configured provider IDs without echoing the stale auth key or credential values.

Verification

  • go test ./internal/adapter/authfile ./internal/cliconfig
  • git diff --check

The full task lint && task test gate was started but canceled during lint setup; it was not completed.

Preserve auth.yaml validation diagnostics when a custom provider is renamed in settings.yaml, so status and startup identify the affected file and valid provider IDs without exposing stale keys or credentials.

Co-authored-by: mecatl <[email protected]>
@jhrozek
jhrozek merged commit e492ab4 into main Sep 17, 2026
36 checks passed
@jhrozek
jhrozek deleted the worktree-issue-1638-provider-rename-diagnostics branch September 17, 2026 08:30
@toolhive-release-app toolhive-release-app Bot mentioned this pull request Sep 21, 2026
2 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Make custom provider ID renames safe or diagnose mismatched references

1 participant