Skip to content

fix(local-inference): preserve featured model size on delete and backfill unknown sizes - #10524

Closed
isaka1022 wants to merge 1 commit into
aaif-goose:mainfrom
isaka1022:fix/preserve-featured-model-size
Closed

fix(local-inference): preserve featured model size on delete and backfill unknown sizes#10524
isaka1022 wants to merge 1 commit into
aaif-goose:mainfrom
isaka1022:fix/preserve-featured-model-size

Conversation

@isaka1022

Copy link
Copy Markdown

Summary

When a featured local model is deleted, its registry entry is kept for re-download but size_bytes was reset to 0. This hid the model size in the UI and excluded the model from recommend_local_model, which filters featured models on size_bytes > 0. Featured entries created before their size could be resolved were also never backfilled.

This PR keeps the known size on deletion (only on-disk artifacts and download state are cleared), and backfills unknown sizes on a later launch: ensure_featured_models_current re-resolves featured entries with size_bytes == 0, and sync_with_featured applies the resolved size to the existing entry without touching user settings or storage type.

Testing

  • Added two regression tests: deletion preserves size_bytes for a featured model; sync_with_featured backfills a zero size without modifying settings or storage. Both isolate the registry under GOOSE_PATH_ROOT so save() never touches the real data directory.
  • cargo test -p goose-local-inference: 92 passed / 0 failed. cargo clippy --all-targets -- -D warnings: clean.
  • Not manually verified in the desktop UI.

Related Issues

Fixes #10421

…fill unknown sizes

Deleting a featured local model keeps its registry entry for re-download
but reset size_bytes to 0, hiding the size in the UI and excluding the
model from recommend_local_model (which filters on size_bytes > 0).

- keep the known size_bytes when deleting a featured model; only on-disk
  artifacts and download state are cleared
- backfill size_bytes for featured entries created without a resolved
  size: ensure_featured_models_current now re-resolves entries with
  size_bytes == 0, and sync_with_featured applies the resolved size to
  the existing entry without touching user settings or storage type

Fixes aaif-goose#10421
@isaka1022

Copy link
Copy Markdown
Author

Duplicate of #10422, which came first and covers more. Closing in favor of it — sorry for the noise.

@isaka1022 isaka1022 closed this Jul 20, 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.

Featured local model size disappears after deletion and isn't backfilled

1 participant