Skip to content

fix: remove proactive GitHub session acquisition#252

Merged
mcanouil merged 4 commits intomainfrom
refactor/remove-proactive-github-session
Feb 8, 2026
Merged

fix: remove proactive GitHub session acquisition#252
mcanouil merged 4 commits intomainfrom
refactor/remove-proactive-github-session

Conversation

@mcanouil
Copy link
Copy Markdown
Owner

@mcanouil mcanouil commented Feb 8, 2026

Summary

  • Remove the VSCode GitHub OAuth session check from getAuthConfig() that prompted users to sign in before every command, even for public registry operations.
  • getAuthConfig() now only checks manual token (SecretStorage) and environment variables.
  • GitHub session acquisition remains exclusively reactive via handleAuthError() on 401/403 errors.
  • Remove the unused GetAuthConfigOptions interface.

Remove the VSCode GitHub OAuth session check that ran before every
command, which prompted users to sign in unnecessarily for public
registry operations. Authentication is now exclusively reactive,
handled by handleAuthError when 401/403 errors occur.

The getAuthConfig function now only checks manual token (SecretStorage)
and environment variables. The GetAuthConfigOptions interface is
removed as it is no longer needed.
@mcanouil mcanouil changed the title Remove proactive GitHub session acquisition fix: remove proactive GitHub session acquisition Feb 8, 2026
@mcanouil mcanouil self-assigned this Feb 8, 2026
@mcanouil mcanouil added the Type: Bug 🐛 Issues related to bugs, errors, or mistakes label Feb 8, 2026
@mcanouil mcanouil enabled auto-merge (squash) February 8, 2026 18:03
@mcanouil mcanouil disabled auto-merge February 8, 2026 18:03
@mcanouil mcanouil merged commit 497c409 into main Feb 8, 2026
7 checks passed
@mcanouil mcanouil deleted the refactor/remove-proactive-github-session branch February 8, 2026 18:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Type: Bug 🐛 Issues related to bugs, errors, or mistakes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant