[PR #5131] [MERGED] fix: show actionable error when LMStudio model listing fails or returns empty #5313

Closed
opened 2026-06-05 15:20:56 -04:00 by yindo · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/Mintplex-Labs/anything-llm/pull/5131
Author: @elevatingcreativity
Created: 3/3/2026
Status: Merged
Merged: 3/4/2026
Merged by: @timothycarambat

Base: masterHead: fix/lmstudio-empty-models-feedback


📝 Commits (3)

  • 44a1c8e fix: show actionable error when LMStudio model listing fails or returns empty
  • ea61c56 UI warning tooltip
  • 0d3a60d Merge branch 'master' into fix/lmstudio-empty-models-feedback

📊 Changes

2 files changed (+87 additions, -17 deletions)

View changed files

📝 frontend/src/components/EmbeddingSelection/LMStudioOptions/index.jsx (+43 -10)
📝 frontend/src/components/LLMSelection/LMStudioOptions/index.jsx (+44 -7)

📄 Description

Summary

  • Fixes a longstanding UX bug where the LMStudio model dropdown showed --loading available models-- indefinitely after a failed or empty connection attempt, making it impossible to distinguish a failed request from one still in progress
  • Adds a red error message below the dropdown when the request completes but returns no models, prompting the user to verify their URL and server status
  • Affects both the LLM provider and embedding provider selection components

Closes #5127. Related prior reports: #3519, #1338, #3656.

Test plan

  • Enter a valid, reachable LMStudio URL → models load and dropdown populates normally
  • Enter an unreachable URL (wrong IP, server not running, remote server not bound to network interface) → dropdown shows "No models found" and red error text appears below: "Could not reach LMStudio. Verify the URL is correct and the LMStudio server is running and accessible."
  • Clear the URL field → dropdown shows "Enter LM Studio URL first", error text disappears
  • Fix the URL after an error (tab out of field) → loading state briefly shows, then resolves correctly
  • Same behavior confirmed in embedding provider selection

🤖 Generated with Claude Code


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/Mintplex-Labs/anything-llm/pull/5131 **Author:** [@elevatingcreativity](https://github.com/elevatingcreativity) **Created:** 3/3/2026 **Status:** ✅ Merged **Merged:** 3/4/2026 **Merged by:** [@timothycarambat](https://github.com/timothycarambat) **Base:** `master` ← **Head:** `fix/lmstudio-empty-models-feedback` --- ### 📝 Commits (3) - [`44a1c8e`](https://github.com/Mintplex-Labs/anything-llm/commit/44a1c8efb2d9f8a525069f5a1d825f636a2a91bb) fix: show actionable error when LMStudio model listing fails or returns empty - [`ea61c56`](https://github.com/Mintplex-Labs/anything-llm/commit/ea61c56dcfc9b3c4e6ddf842d77ad706326b13c5) UI warning tooltip - [`0d3a60d`](https://github.com/Mintplex-Labs/anything-llm/commit/0d3a60dce9ff511ad1d18e79c5a5de621e86b1fa) Merge branch 'master' into fix/lmstudio-empty-models-feedback ### 📊 Changes **2 files changed** (+87 additions, -17 deletions) <details> <summary>View changed files</summary> 📝 `frontend/src/components/EmbeddingSelection/LMStudioOptions/index.jsx` (+43 -10) 📝 `frontend/src/components/LLMSelection/LMStudioOptions/index.jsx` (+44 -7) </details> ### 📄 Description ## Summary - Fixes a longstanding UX bug where the LMStudio model dropdown showed `--loading available models--` indefinitely after a failed or empty connection attempt, making it impossible to distinguish a failed request from one still in progress - Adds a red error message below the dropdown when the request completes but returns no models, prompting the user to verify their URL and server status - Affects both the LLM provider and embedding provider selection components Closes #5127. Related prior reports: #3519, #1338, #3656. ## Test plan - [ ] Enter a valid, reachable LMStudio URL → models load and dropdown populates normally - [ ] Enter an unreachable URL (wrong IP, server not running, remote server not bound to network interface) → dropdown shows "No models found" and red error text appears below: *"Could not reach LMStudio. Verify the URL is correct and the LMStudio server is running and accessible."* - [ ] Clear the URL field → dropdown shows "Enter LM Studio URL first", error text disappears - [ ] Fix the URL after an error (tab out of field) → loading state briefly shows, then resolves correctly - [ ] Same behavior confirmed in embedding provider selection 🤖 Generated with [Claude Code](https://claude.com/claude-code) --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
yindo added the pull-request label 2026-06-05 15:20:56 -04:00
yindo closed this issue 2026-06-05 15:20:56 -04:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: Mintplex-Labs/anything-llm#5313