Skip to content

fix: corrected defaults causing AI translation appear enabled on upgrade#1153

Merged
spacecowboy merged 1 commit into
masterfrom
fix-default-translation
May 31, 2026
Merged

fix: corrected defaults causing AI translation appear enabled on upgrade#1153
spacecowboy merged 1 commit into
masterfrom
fix-default-translation

Conversation

@spacecowboy

Copy link
Copy Markdown
Owner

Previously, the Summary API settings were initialised with a hardcoded fallback of "gpt-4o-mini" for the model ID preference. For users who had never configured the AI feature, this non-blank value caused isBlankConfiguration to return false, which made AIProviderPreset resolve to OPENAI_COMPATIBLE instead of NONE. Opening Settings then showed an "Enter an API key before saving" validation message even though the user had never opted in to any AI provider.

Fixed by changing the fallback default for PREF_OPENAI_MODEL_ID to an empty string, so unconfigured installations correctly resolve to NONE.

Closes #1152

Previously, the Summary API settings were initialised with a hardcoded
fallback of "gpt-4o-mini" for the model ID preference. For users who had
never configured the AI feature, this non-blank value caused
isBlankConfiguration to return false, which made AIProviderPreset resolve
to OPENAI_COMPATIBLE instead of NONE. Opening Settings then showed an
"Enter an API key before saving" validation message even though the user
had never opted in to any AI provider.

Fixed by changing the fallback default for PREF_OPENAI_MODEL_ID to an
empty string, so unconfigured installations correctly resolve to NONE.

Closes #1152

Signed-off-by: Jonas Kalderstam <[email protected]>

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR fixes the default Summary AI settings so unconfigured installs no longer appear to have an AI provider selected after upgrade.

Changes:

  • Changes the Summary API model ID fallback from "gpt-4o-mini" to an empty string.
  • Aligns Summary API defaults with Translation API defaults and OpenAISettings defaults.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@spacecowboy spacecowboy merged commit b942399 into master May 31, 2026
13 checks passed
@spacecowboy spacecowboy deleted the fix-default-translation branch May 31, 2026 10:02
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.

AI summary enabled by default on app upgrade

2 participants