Skip to content

Comments

fix: gracefully handle missing functions when loading models#21476

Merged
tjbck merged 2 commits intoopen-webui:devfrom
Classic298:claude/fix-chat-loading-ui-SlLOZ
Feb 16, 2026
Merged

fix: gracefully handle missing functions when loading models#21476
tjbck merged 2 commits intoopen-webui:devfrom
Classic298:claude/fix-chat-loading-ui-SlLOZ

Conversation

@Classic298
Copy link
Collaborator

@Classic298 Classic298 commented Feb 16, 2026

When models reference functions (via filterIds/actionIds) that no longer exist in the database, the /api/models endpoint crashes with a 500 error, preventing the UI from loading chats entirely. This can happen after upgrades when built-in functions are removed or when user-created functions are deleted while still referenced by models.

Instead of raising an exception, log at INFO level and skip the missing function so the rest of the models load successfully.

Fixes #21464

Contributor License Agreement

By submitting this pull request, I confirm that I have read and fully agree to the Contributor License Agreement (CLA), and I am providing my contributions under its terms.

Note

Deleting the CLA section will lead to immediate closure of your PR and it will not be merged in.

When models reference functions (via filterIds/actionIds) that no longer
exist in the database, the /api/models endpoint crashes with a 500 error,
preventing the UI from loading chats entirely. This can happen after
upgrades when built-in functions are removed or when user-created
functions are deleted while still referenced by models.

Instead of raising an exception, log at INFO level and skip the missing
function so the rest of the models load successfully.

Fixes open-webui#21464

https://claude.ai/code/session_015JRM7m2bNeZPBBmV2Gv4Mj
@pr-validator-bot
Copy link

👋 Welcome and Thank You for Contributing!

We appreciate you taking the time to submit a pull request to Open WebUI!

⚠️ Important: Testing Requirements

We've recently seen an increase in PRs that have significant issues:

  • PRs that don't actually fix the bug they claim to fix
  • PRs that don't implement the feature they describe
  • PRs that break existing functionality
  • PRs that are clearly AI-generated without proper testing being done by the author
  • PRs that simply don't work as intended

These untested PRs consume significant time from maintainers and volunteer contributors who review and test PRs in their free time.
Time that could be spent testing other PRs or improving Open WebUI in other ways.

Before marking your PR as "Ready for Review":

Please explicitly confirm:

  1. ✅ You have personally tested ALL changes in this PR
  2. How you tested it (specific steps you took to verify it works)
  3. Visual evidence where applicable (screenshots or videos showing the feature/fix working) - if applicable to your specific PR

If you're not certain your PR works exactly as intended, please leave it in DRAFT mode until you've thoroughly tested it.

Thank you for helping us maintain quality and respecting the time of our community! 🙏

@tjbck
Copy link
Contributor

tjbck commented Feb 16, 2026

Thanks!

@tjbck tjbck merged commit 656de56 into open-webui:dev Feb 16, 2026
0 of 2 checks passed
@Classic298 Classic298 deleted the claude/fix-chat-loading-ui-SlLOZ branch February 16, 2026 19:06
iccyuan pushed a commit to iccyuan/open-webui that referenced this pull request Feb 18, 2026
…bui#21476)

When models reference functions (via filterIds/actionIds) that no longer
exist in the database, the /api/models endpoint crashes with a 500 error,
preventing the UI from loading chats entirely. This can happen after
upgrades when built-in functions are removed or when user-created
functions are deleted while still referenced by models.

Instead of raising an exception, log at INFO level and skip the missing
function so the rest of the models load successfully.

Fixes open-webui#21464

https://claude.ai/code/session_015JRM7m2bNeZPBBmV2Gv4Mj

Co-authored-by: Claude <[email protected]>
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.

4 participants