Skip to content

fix: clarify local-cache model management (#2749) - #3029

Closed
popfido wants to merge 4 commits into
jundot:mainfrom
popfido:fix/local-cache-model-management-2749
Closed

popfido wants to merge 4 commits into
jundot:mainfrom
popfido:fix/local-cache-model-management-2749

Conversation

@popfido

@popfido popfido commented Aug 22, 2026

Copy link
Copy Markdown
Contributor

Summary

  • make /admin/api/models the Model Manager catalog and expose explicit removal capabilities
  • badge Hugging Face cache, virtual MarkItDown, and exposed profile entries in the web and macOS views
  • remove cache repositories with refs, snapshots, and blobs; route profile deletion correctly; and bypass stale client caches

Root cause

The manager listed storage through /admin/api/hf/models, while deletion searched only configured flat and organization layouts. Runtime-discovered models--Org--Repo/snapshots/<revision> entries therefore rendered as deletable but returned 404: Model not found. The macOS catalog also did not decode source/capability metadata and offered the same disk action for virtual and profile rows.

UX

  • Local cache: “Remove from local cache” plus the shared-cache warning
  • Virtual: no destructive action
  • Profile: delete the profile relationship only
  • ordinary local models retain disk-deletion wording

Validation

  • 195 passed: tests/test_admin_api_key.py tests/test_hf_downloader.py
  • 15 passed: focused Xcode DTO, localization, and Models screen tests
  • 4 passed: final focused ModelsScreenSortingTests rerun
  • JSON catalogs valid; dashboard JavaScript syntax and git diff --check pass
  • rendered temporary catalog verified all three badges and the local-cache warning

Fixes #2749

@popfido
popfido marked this pull request as ready for review August 22, 2026 15:23
@popfido
popfido force-pushed the fix/local-cache-model-management-2749 branch from fe31bfb to 9a7ff08 Compare August 31, 2026 03:29
@popfido
popfido force-pushed the fix/local-cache-model-management-2749 branch 3 times, most recently from 2747208 to da43869 Compare September 10, 2026 07:13
@popfido
popfido force-pushed the fix/local-cache-model-management-2749 branch from da43869 to 6e197f9 Compare September 19, 2026 07:01
@popfido
popfido force-pushed the fix/local-cache-model-management-2749 branch from 6e197f9 to 03d3183 Compare October 10, 2026 15:10
@jundot

jundot commented Oct 15, 2026

Copy link
Copy Markdown
Owner

@popfido Your report in #2749 was right, and the removal path in this PR is what I ended up shipping. I put a smaller version of it on main in #4548, with you as co-author on the commit. It lists Hugging Face cache models in the web Model Manager with a badge, removes the cache repo as one unit on delete, and warns that other apps sharing the cache will need to download it again.

I'm closing this one instead of merging it. Main moved a lot since your last rebase (#4431 and #4508 landed on the same files), and that part is on me, not you. The exposed profile rows also go beyond #2749, so I'd rather look at that UX on its own if you still want it.

@jundot jundot closed this Oct 15, 2026
@popfido
popfido deleted the fix/local-cache-model-management-2749 branch October 20, 2026 13:20
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.

Clarify management and deletion UX for local-cache models

2 participants