Skip to content

The all-in-one local AI studio for your desktop: chat, image and video generation and a coding agent in one free, open source app. Windows and Linux. No Docker, no terminal, no cloud required.

hotfix v2.4.8: Bug S + T (Model Manager) + Bug Q UX polish

purple4e405e24dc35
diff --git a/package.json b/package.json
index cc3897f0..d210be1b 100644
--- a/package.json
+++ b/package.json
@@ -1,6 +1,6 @@
{
"name": "locally-uncensored",
- "version": "2.4.7",
+ "version": "2.4.8",
"private": false,
"description": "Generate anything — text, images, video. Locally. Uncensored.",
"license": "AGPL-3.0",
diff --git a/src-tauri/Cargo.lock b/src-tauri/Cargo.lock
index 8da3b6e4..684fcfd3 100644
--- a/src-tauri/Cargo.lock
+++ b/src-tauri/Cargo.lock
@@ -2508,7 +2508,7 @@ dependencies = [
[[package]]
name = "locally-uncensored"
-version = "2.4.7"
+version = "2.4.8"
dependencies = [
"axum",
"base64 0.22.1",
diff --git a/src-tauri/Cargo.toml b/src-tauri/Cargo.toml
index 5d1e5c98..98b84fc0 100644
--- a/src-tauri/Cargo.toml
+++ b/src-tauri/Cargo.toml
@@ -1,6 +1,6 @@
[package]
name = "locally-uncensored"
-version = "2.4.7"
+version = "2.4.8"
description = "Private, local AI chat & image/video generation"
authors = ["purpledoubled"]
edition = "2021"
diff --git a/src-tauri/tauri.conf.json b/src-tauri/tauri.conf.json
index ec25a043..a1a2c90f 100644
--- a/src-tauri/tauri.conf.json
+++ b/src-tauri/tauri.conf.json
@@ -1,7 +1,7 @@
{
"$schema": "https://raw.githubusercontent.com/tauri-apps/tauri/dev/crates/tauri-cli/schema.json",
"productName": "Locally Uncensored",
- "version": "2.4.7",
+ "version": "2.4.8",
"identifier": "com.purpledoubled.locally-uncensored",
"build": {
"beforeBuildCommand": "npm run build",
diff --git a/src/components/models/DiscoverModels.tsx b/src/components/models/DiscoverModels.tsx
index be86da0e..d6df4f62 100644
--- a/src/components/models/DiscoverModels.tsx
+++ b/src/components/models/DiscoverModels.tsx
@@ -79,7 +79,19 @@ function ModelDiscoverCard({ model, index, isText, getModelDownloadState, isMode
<div className="flex items-center gap-1 shrink-0">
{isText && model.canPull === false ? (
- <span className="text-xs text-green-500 px-2 py-1 rounded bg-green-500/10">Available</span>
+ <>
+ <span className="text-xs text-green-500 px-2 py-1 rounded bg-green-500/10">Available</span>
+ {model.url && (
+ <button
+ onClick={() => openExternal(model.url!)}
+ className="p-2 rounded-lg hover:bg-gray-100 dark:hover:bg-white/10 text-gray-500 transition-all"
+ title="View on HuggingFace"
+ aria-label="View on HuggingFace"
+ >
+ <ExternalLink size={14} />
+ </button>
+ )}
+ </>
) : isText && canDirectDownload ? (
/* HuggingFace GGUF: direct download button */
isComplete ? (
@@ -154,7 +166,15 @@ export function DiscoverModels({ category }: Props) {
const providers = useProviderStore(s => s.providers)
const hfOverride = useSettingsStore(s => s.settings.hfDownloadPathOverride)
const [hfModelPath, setHfModelPath] = useState<string | null>(null)
- const { pullModel } = useModels()
+ const { pullModel, models: installedModels, fetchModels } = useModels()
+
+ // Refresh installed-model list on mount + when category switches to text
+ // so the Discover grid reflects what Ollama / LM Studio actually have on
+ // disk (Bug #43: text-models never showed "Installed" because we only
+ // checked the in-memory download-store, which is empty after a restart).
+ useEffect(() => {
+ if (category === 'text') fetchModels().catch(() => {})
+ }, [category, fetchModels])
// Auto-detect provider model path for GGUF downloads (user override wins).
useEffect(() => {
@@ -246,10 +266,39 @@ export function DiscoverModels({ category }: Props) {
? vramFilteredBundles.filter((b) => b.name.toLowerCase().includes(search.toLowerCase()) || b.description.toLowerCase().includes(search.toLowerCase()))
: vramFilteredBundles
- // GGUF installed check: model is installed if download completed in this session
+ // Text-model installed check.
+ //
+ // Before v2.4.8 this only consulted the in-memory `downloads` store, so the
+ // INSTALLED badge disappeared the moment the user restarted the app — which
+ // is exactly what leonsk29 reported (GH #43). The store has no knowledge of
+ // what Ollama / LM Studio actually have on disk, only of downloads that
+ // happened in the current session.
+ //
+ // Fix: also match against the provider model list (which Ollama/LM Studio
+ // populate from disk). For HF GGUFs the in-app download goes through
+ // `ollama pull hf.co/<repo>:<quant>`, so the same canonical reference is
+ // what we look up in the installed-list. Session downloads remain a valid
+ // signal as the fastest-path (no fetchModels round-trip needed).
const isModelFullyInstalled = (model: DiscoverModel) => {
- if (!model.filename) return false
- return downloads[model.filename]?.status === 'complete'
+ if (model.filename && downloads[model.filename]?.status === 'complete') return true
+
+ const installedOllamaTags = installedModels
+ .filter(m => m.provider === 'ollama')
+ .map(m => (m.model || m.name || '').toLowerCase())
+
+ if (model.ollamaModel) {
+ const tag = model.ollamaModel.toLowerCase()
+ if (installedOllamaTags.includes(tag)) return true
+ // Ollama appends `:latest` to bare model names — accept either form
+ if (!tag.includes(':') && installedOllamaTags.includes(`${tag}:latest`)) return true
+ }
+
+ if (model.filename && model.downloadUrl) {
+ const ref = hfUrlToOllamaRef(model.downloadUrl, model.filename)?.toLowerCase()
+ if (ref && installedOllamaTags.includes(ref)) return true
+ }
+
+ return false
}
const handleDownload = async (model: DiscoverModel) => {
diff --git a/src/components/models/ModelSelector.tsx b/src/components/models/ModelSelector.tsx
index 062c893f..b2bf0872 100644
--- a/src/components/models/ModelSelector.tsx
+++ b/src/components/models/ModelSelector.tsx
@@ -1,6 +1,6 @@
import { useState, useRef, useEffect } from 'react'
import { motion, AnimatePresence } from 'framer-motion'
-import { ChevronDown, Check, Loader2, Power, PlayCircle } from 'lucide-react'
+import { ChevronDown, Check, Loader2, Power, PlayCircle, X } from 'lucide-react'
import { useModels } from '../../hooks/useModels'
import { useModelStore } from '../../stores/modelStore'
import { useProviderStore } from '../../stores/providerStore'
@@ -36,10 +36,20 @@ interface LmStudioServerStatus {
model_count: number
}
+// Session-scope dismiss flag. Lives at module-level on purpose: the
+// LmStudioServerHint component unmounts when the dropdown closes, so a
+// useState reset would resurface the hint on every reopen. Module
+// state survives unmount/remount within the same LU run, and resets to
+// false when the user relaunches LU (the module reloads from scratch).
+// Not persisted to localStorage so a forgotten-to-start server gets
+// flagged again next launch.
+let LM_HINT_DISMISSED_THIS_SESSION = false
+
function LmStudioServerHint({ onStarted }: { onStarted: () => void }) {
const [status, setStatus] = useState<LmStudioServerStatus | null>(null)
const [starting, setStarting] = useState(false)
const [startError, setStartError] = useState('')
+ const [dismissed, setDismissed] = useState(LM_HINT_DISMISSED_THIS_SESSION)
useEffect(() => {
let cancelled = false
@@ -53,7 +63,7 @@ function LmStudioServerHint({ onStarted }: { onStarted: () => void }) {
// running, models are already in the list; if neither lms.exe nor any
// models are present, the user just doesn't have LM Studio.
const detected = !!status && (status.lms_present || status.models_detected)
- if (!status || status.running || !detected) return null
+ if (!status || status.running || !detected || dismissed) return null
const handleStart = async (e: React.MouseEvent) => {
e.stopPropagation()
@@ -84,14 +94,22 @@ function LmStudioServerHint({ onStarted }: { onStarted: () => void }) {
}
return (
- <div className="px-2.5 py-2 border-b border-white/[0.04] bg-amber-500/[0.05]">
- <p className="text-[0.6rem] text-amber-200/85 leading-snug mb-1.5">
+ <div className="relative px-2.5 py-2 border-b border-white/[0.04] bg-white/[0.03]">
+ <button
+ onClick={(e) => { e.stopPropagation(); LM_HINT_DISMISSED_THIS_SESSION = true; setDismissed(true) }}
+ aria-label="Dismiss (returns on next launch)"
+ title="Dismiss (returns on next launch)"
+ className="absolute top-1 right-1 p-1 rounded text-gray-500 hover:text-gray-200 hover:bg-white/[0.08] transition-colors"
+ >
+ <X size={10} />
+ </button>
+ <p className="text-[0.6rem] text-gray-300 leading-snug mb-1.5 pr-5">
LM Studio is installed ({status.model_count} model{status.model_count === 1 ? '' : 's'} on disk) but its server isn't running. Start it to pick LM Studio models here.
</p>
<button
onClick={handleStart}
disabled={starting}
- className="w-full flex items-center justify-center gap-1.5 px-2 py-1 rounded text-[0.62rem] bg-amber-500/[0.12] hover:bg-amber-500/[0.2] text-amber-100 transition-colors disabled:opacity-50"
+ className="w-full flex items-center justify-center gap-1.5 px-2 py-1 rounded text-[0.62rem] bg-white/[0.06] hover:bg-white/[0.12] text-gray-200 transition-colors disabled:opacity-50"
>
{starting ? <Loader2 size={10} className="animate-spin" /> : <PlayCircle size={10} />}
<span>{starting ? 'Starting LM Studio server…' : 'Start LM Studio Server'}</span>