Skip to content

Conversation

@mudler
Copy link
Owner

@mudler mudler commented Nov 10, 2025

Description

This PR fixes #7171

Notes for Reviewers

Signed commits

  • Yes, I signed my commits.

@netlify
Copy link

netlify bot commented Nov 10, 2025

Deploy Preview for localai ready!

Name Link
🔨 Latest commit 2dc89da
🔍 Latest deploy log https://app.netlify.com/projects/localai/deploys/691f0130d618ae00085ee0c3
😎 Deploy Preview https://deploy-preview-7235--localai.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@mudler mudler changed the title WIP [WIP] fix: do not delete files if used by other configured models Nov 11, 2025
@mudler
Copy link
Owner Author

mudler commented Nov 19, 2025

@copilot pick this up and add ginkgo tests

Copy link
Contributor

Copilot AI commented Nov 19, 2025

@mudler I've opened a new pull request, #7317, to work on those changes. Once the pull request is ready, I'll request review from you.

@mudler mudler marked this pull request as ready for review November 20, 2025 11:34
@mudler mudler changed the title [WIP] fix: do not delete files if used by other configured models fix: do not delete files if used by other configured models Nov 20, 2025
mudler and others added 2 commits November 20, 2025 12:52
Signed-off-by: Ettore Di Giacinto <[email protected]>
#7317)

* Initial plan

* fix: do not delete files if used by other configured models

- Fixed bug in DeleteModelFromSystem where OR was used instead of AND for file suffix check
- Fixed bug where model config filename comparison was incorrect
- Added comprehensive Ginkgo test to verify shared model files are not deleted

Co-authored-by: mudler <[email protected]>

* fix: prevent deletion of model files shared by multiple configurations

Co-authored-by: mudler <[email protected]>

---------

Co-authored-by: copilot-swe-agent[bot] <[email protected]>
Co-authored-by: mudler <[email protected]>
Signed-off-by: Ettore Di Giacinto <[email protected]>
@mudler mudler added bug Something isn't working and removed dependencies labels Nov 20, 2025
@mudler mudler merged commit 382474e into master Nov 20, 2025
30 checks passed
@mudler mudler deleted the fix/delete-files branch November 20, 2025 13:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Deletion of configuration file results in deletion of model file even if other configuration file uses model file

2 participants