Skip to content

Add preference to disable automatic AI model update checks - #21922

Merged
TurboGit merged 1 commit into
darktable-org:masterfrom
andriiryzhkov:ai_autoupdate_config
Aug 23, 2026
Merged

Add preference to disable automatic AI model update checks#21922
TurboGit merged 1 commit into
darktable-org:masterfrom
andriiryzhkov:ai_autoupdate_config

Conversation

@andriiryzhkov

Copy link
Copy Markdown
Collaborator

Closes #21514

darktable checks the model repositories for newer versions whenever the AI preferences page is opened, with no way to stop it. This adds plugins/ai/auto_check_updates (default on, so nothing changes unless you ask) and a "check for updates" button for when it is off.

The toggle sits with the other global switches rather than beside the model list – it governs whether darktable reaches the network on its own, which is what someone auditing that page is looking for.

The check is asynchronous, so the button goes insensitive until every repository has reported back, then summarises: how many models have updates, or that everything is current, with an "update now" that runs the existing per-model download. A new DT_SIGNAL_AI_UPDATE_CHECK_DONE carries the completion.

Two pre-existing bugs had to be fixed for any of this to work, both in ai_models.c and both independent of the preference:

  • dt_ai_models_refresh_status() reset every installed model to DOWNLOADED, wiping the UPDATE_AVAILABLE flag the check had just set – so no update check has ever been able to show a result.
  • Models installed by hand have no github_asset, but were still flagged as updatable; the download refuses them, so the model list offered an update that could not be applied.

@andriiryzhkov andriiryzhkov added this to the 5.8 milestone Aug 19, 2026
@andriiryzhkov andriiryzhkov added the scope: AI features AI features related issues and PR label Aug 19, 2026
@anoderay anoderay added the documentation: pending a documentation work is required label Aug 19, 2026
@rgr59

rgr59 commented Aug 20, 2026

Copy link
Copy Markdown
Contributor

@andriiryzhkov : many thanks for considering this feature proposal!

@TurboGit TurboGit left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Looks good, thanks!

@TurboGit
TurboGit merged commit 8f3a7ad into darktable-org:master Aug 23, 2026
6 checks passed
@andriiryzhkov
andriiryzhkov deleted the ai_autoupdate_config branch August 23, 2026 17:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation: pending a documentation work is required scope: AI features AI features related issues and PR

Projects

None yet

Development

Successfully merging this pull request may close these issues.

AI: give users control over search for updates

4 participants