Skip to content

fix: skip assertMinVersion for third-party providers - #123

Merged
kevincodex1 merged 1 commit into
Twigpine:mainfrom
auriti:fix/assert-min-version-provider-guard
Apr 2, 2026
Merged

kevincodex1 merged 1 commit into
Twigpine:mainfrom
auriti:fix/assert-min-version-provider-guard

Conversation

@auriti

@auriti auriti commented Apr 2, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Adds getAPIProvider() !== 'firstParty' guard to assertMinVersion() in autoUpdater.ts

Problem

assertMinVersion() calls Anthropic's GrowthBook endpoint to enforce a minimum version. This is currently safe for 3P (OpenAI/Gemini/Ollama) users only because isAnalyticsDisabled() returns true, which disables GrowthBook. But this safety depends on a single stub function — if an upstream merge ever changes it, 3P users would be subject to Anthropic's version kill-switch.

Adding an explicit provider guard makes the safety independent of the analytics stub.

Relates to #115

Test plan

  • Verify assertMinVersion() exits early when CLAUDE_CODE_USE_OPENAI=1
  • Verify it still works normally for firstParty users

The version kill-switch calls Anthropic's GrowthBook endpoint to
enforce a minimum version. This is currently safe for 3P users only
because isAnalyticsDisabled() returns true (disabling GrowthBook).
Adding an explicit provider guard makes this safety independent of the
analytics stub, preventing 3P users from being blocked by Anthropic's
version requirements in case of future upstream merges.
@auriti
auriti force-pushed the fix/assert-min-version-provider-guard branch from 7c33c86 to 6c4225f Compare April 2, 2026 09:09
@kevincodex1
kevincodex1 merged commit 4260f5b into Twigpine:main Apr 2, 2026
1 check passed
euxaristia pushed a commit to euxaristia/openclaude that referenced this pull request Apr 13, 2026
…ovider-guard

fix: skip assertMinVersion for third-party providers
reymaster pushed a commit to reymaster/openclaude that referenced this pull request May 5, 2026
…ovider-guard

fix: skip assertMinVersion for third-party providers
This was referenced Jun 4, 2026
This was referenced Jun 15, 2026
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.

2 participants