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.

chore(ui): take the first-run popups and the new badges out

purplea3b05a444f93
diff --git a/src/components/chat/AgentModeToggle.tsx b/src/components/chat/AgentModeToggle.tsx
index 4ac73e35..3937c553 100644
--- a/src/components/chat/AgentModeToggle.tsx
+++ b/src/components/chat/AgentModeToggle.tsx
@@ -9,12 +9,10 @@ import { useSettingsStore } from '../../stores/settingsStore'
import { isAgentCompatible } from '../../lib/model-compatibility'
import { getToolCapability } from '../../api/tool-capability'
import { FEATURE_FLAGS } from '../../lib/constants'
-import { AgentTutorial } from './AgentTutorial'
import { AgentWorkspaceDialog } from './AgentWorkspaceDialog'
import type { AgentWorkspace } from '../../types/agent-workspace'
export function AgentModeToggle() {
- const [showTutorial, setShowTutorial] = useState(false)
const [showNewChatModal, setShowNewChatModal] = useState(false)
const [neverShowChecked, setNeverShowChecked] = useState(false)
// Workspace picker — opens after a fresh agent-mode activation when
@@ -28,7 +26,7 @@ export function AgentModeToggle() {
const createConversation = useChatStore((s) => s.createConversation)
const activeModel = useModelStore((s) => s.activeModel)
const activeModelMeta = useModelStore((s) => s.models.find((m) => m.name === s.activeModel))
- const { agentModeActive, toggleAgentMode, tutorialCompleted, newChatHintDismissed } = useAgentModeStore()
+ const { agentModeActive, toggleAgentMode, newChatHintDismissed } = useAgentModeStore()
if (!FEATURE_FLAGS.AGENT_MODE || !activeConversationId) return null
@@ -69,9 +67,6 @@ export function AgentModeToggle() {
if (!activeModel) return
const persona = useSettingsStore.getState().getActivePersona()
const newId = createConversation(activeModel, persona?.systemPrompt || '')
- if (!tutorialCompleted) {
- useAgentModeStore.getState().setTutorialCompleted()
- }
useAgentModeStore.getState().toggleAgentMode(newId)
maybeOpenWorkspaceDialog(newId)
}
@@ -90,25 +85,14 @@ export function AgentModeToggle() {
return
}
- // First time → show tutorial
- if (!isActive && !tutorialCompleted) {
- setShowTutorial(true)
- return
- }
-
+ // 2.5.9 dropped the first-run Agent tutorial modal — flipping the switch
+ // just flips it now.
toggleAgentMode(activeConversationId)
// If the user just turned agent ON (was inactive, now active) and
// hasn't picked a workspace for this conversation, prompt for one.
if (!isActive) maybeOpenWorkspaceDialog(activeConversationId)
}
- const handleTutorialComplete = () => {
- setShowTutorial(false)
- useAgentModeStore.getState().setTutorialCompleted()
- toggleAgentMode(activeConversationId)
- maybeOpenWorkspaceDialog(activeConversationId)
- }
-
const handleNewAgentChat = () => {
if (neverShowChecked) {
useAgentModeStore.getState().setNewChatHintDismissed(true)
@@ -214,14 +198,6 @@ export function AgentModeToggle() {
</div>
</Modal>
- {showTutorial && (
- <AgentTutorial
- open={showTutorial}
- onClose={() => setShowTutorial(false)}
- onComplete={handleTutorialComplete}
- />
- )}
-
{showWorkspaceDialog && workspaceDialogConvId && (
<AgentWorkspaceDialog
open={showWorkspaceDialog}
diff --git a/src/components/chat/AgentTutorial.tsx b/src/components/chat/AgentTutorial.tsx
deleted file mode 100644
index 25c43b46..00000000
--- a/src/components/chat/AgentTutorial.tsx
+++ /dev/null
@@ -1,139 +0,0 @@
-import { useState } from 'react'
-import { motion, AnimatePresence } from 'framer-motion'
-import { ChevronRight, ChevronLeft } from 'lucide-react'
-import { Modal } from '../ui/Modal'
-
-interface Props {
- open: boolean
- onClose: () => void
- onComplete: () => void
-}
-
-const STEPS = [
- {
- title: 'Welcome to Agent Mode',
- description: 'Your AI can now use tools to take action. Search the web, read and write files, execute code, and generate images. All locally, all uncensored.',
- tagline: 'Generate anything: text, images, video. Locally. Uncensored.',
- accent: 'bg-green-500',
- },
- {
- title: 'Available Tools',
- description: 'Agent Mode gives your model access to powerful tools. Safe actions run automatically. Risky ones always ask for approval first.',
- tools: [
- { name: 'Web Search', desc: 'Search the internet for current information', accent: 'bg-blue-400' },
- { name: 'File Read/Write', desc: 'Read and create files on your system', accent: 'bg-amber-400' },
- { name: 'Code Execute', desc: 'Run Python or shell commands', accent: 'bg-purple-400' },
- ],
- accent: 'bg-blue-500',
- },
-]
-
-export function AgentTutorial({ open, onClose, onComplete }: Props) {
- const [step, setStep] = useState(0)
- const current = STEPS[step]
- const isLast = step === STEPS.length - 1
-
- return (
- <Modal open={open} onClose={onClose} title="">
- <div className="space-y-4">
- {/* Step indicator */}
- <div className="flex items-center justify-center gap-1.5">
- {STEPS.map((_, i) => (
- <div
- key={i}
- className={`w-1.5 h-1.5 rounded-full transition-colors ${
- i === step ? 'bg-green-400' : 'bg-white/10'
- }`}
- />
- ))}
- </div>
-
- {/* Content */}
- <AnimatePresence mode="wait">
- <motion.div
- key={step}
- initial={{ opacity: 0, x: 20 }}
- animate={{ opacity: 1, x: 0 }}
- exit={{ opacity: 0, x: -20 }}
- transition={{ duration: 0.2 }}
- className="text-center space-y-3"
- >
- {/* Accent dot instead of icon */}
- <div className="flex justify-center">
- <div className={`w-3 h-3 rounded-full ${current.accent} shadow-lg`}
- style={{ boxShadow: `0 0 20px 4px currentColor` }}
- />
- </div>
-
- <h3 className="text-base font-semibold text-white">{current.title}</h3>
- <p className="text-[0.75rem] text-gray-400 leading-relaxed">{current.description}</p>
-
- {current.tagline && (
- <p className="text-[0.7rem] text-green-400/80 font-medium italic">{current.tagline}</p>
- )}
-
- {current.tools && (
- <div className="space-y-2 pt-1">
- {current.tools.map((tool) => (
- <div key={tool.name} className="flex items-center gap-2.5 px-3 py-2 rounded-lg bg-white/[0.03] border border-white/[0.06]">
- <div className={`w-1.5 h-1.5 rounded-full ${tool.accent} shrink-0`} />
- <div className="text-left">
- <p className="text-[0.7rem] text-white font-medium">{tool.name}</p>
- <p className="text-[0.6rem] text-gray-500">{tool.desc}</p>
- </div>
- </div>
- ))}
- </div>
- )}
-
- </motion.div>
- </AnimatePresence>
-
- {/* Don't show again — visible on last step */}
- {isLast && (
- <label className="flex items-center justify-center gap-2 cursor-pointer group">
- <input
- type="checkbox"
- checked={true}
- disabled
- className="w-3.5 h-3.5 rounded border-white/20 bg-white/5 text-green-500 focus:ring-green-500/30 focus:ring-offset-0 opacity-50"
- />
- <span className="text-[0.65rem] text-gray-500 select-none">
- Don't show this again
- </span>
- </label>
- )}
-
- {/* Navigation */}
- <div className="flex items-center justify-between pt-2">
- <button
- onClick={() => setStep(Math.max(0, step - 1))}
- disabled={step === 0}
- className="flex items-center gap-1 px-3 py-1.5 rounded-lg text-[0.7rem] text-gray-400 hover:text-white hover:bg-white/10 disabled:opacity-30 disabled:cursor-not-allowed transition-colors"
- >
- <ChevronLeft size={14} />
- Back
- </button>
-
- {isLast ? (
- <button
- onClick={onComplete}
- className="flex items-center gap-1 px-4 py-1.5 rounded-lg text-[0.7rem] font-medium bg-green-500/15 border border-green-500/30 text-green-300 hover:bg-green-500/25 transition-colors"
- >
- Enable Agent Mode
- <ChevronRight size={14} />
- </button>
- ) : (
- <button
- onClick={() => setStep(step + 1)}
- className="flex items-center gap-1 px-3 py-1.5 rounded-lg text-[0.7rem] text-gray-300 hover:text-white hover:bg-white/10 transition-colors"
- >
- Next
- <ChevronRight size={14} />
- </button>
- )}
- </div>
- </div>
- </Modal>
- )
-}
diff --git a/src/components/chat/ChatView.tsx b/src/components/chat/ChatView.tsx
index 4daa9293..98208827 100644
--- a/src/components/chat/ChatView.tsx
+++ b/src/components/chat/ChatView.tsx
@@ -28,7 +28,6 @@ import { CodexView } from './CodexView'
import { useCodexStore } from '../../stores/codexStore'
import { useGenerationStore } from '../../stores/generationStore'
import { useRemoteStore } from '../../stores/remoteStore'
-import { useImageToolNoti } from '../../hooks/useImageToolNoti'
export function ChatView() {
const { sendMessage, stopGeneration, isGenerating, isLoadingModel, regenerateMessage, editAndResend, pendingApproval, approveToolCall, rejectToolCall } = useChat()
@@ -64,9 +63,6 @@ export function ChatView() {
const isAgentActive = useAgentModeStore((s) =>
activeConversationId ? s.agentModeActive[activeConversationId] ?? false : false
)
- // Image-tool discovery noti (HW-gated, clears on first click). Used to dot
- // the Tools button; the "1" itself lives on the Image row in the dropdown.
- const { visible: imageToolNoti } = useImageToolNoti()
const isComparing = useCompareStore((s) => s.isComparing)
// Remote-chat state: show a reactivate banner when the user is viewing a
@@ -381,10 +377,6 @@ export function ChatView() {
<span>Tools</span>
<ChevronDown size={9} className={`transition-transform ${toolsDropdownOpen ? 'rotate-180' : ''}`} />
</button>
- {/* Image-tool discovery noti dot — purely visual. */}
- {imageToolNoti && (
- <span className="absolute -top-1 -right-1 w-2 h-2 rounded-full bg-purple-500 ring-2 ring-gray-100 dark:ring-[#141414] pointer-events-none" />
- )}
{toolsDropdownOpen && (
<>
<div className="fixed inset-0 z-40" onClick={() => setToolsDropdownOpen(false)} />
diff --git a/src/components/cloud/CloudGateModal.tsx b/src/components/cloud/CloudGateModal.tsx
index a75b5aed..340d6ef6 100644
--- a/src/components/cloud/CloudGateModal.tsx
+++ b/src/components/cloud/CloudGateModal.tsx
@@ -88,9 +88,7 @@ type Step = 'intro' | 'plans' | 'login'
export function CloudGateModal() {
const open = useUIStore((s) => s.cloudGateOpen)
const setOpen = useUIStore((s) => s.setCloudGateOpen)
- const setCloudOnboardingOpen = useUIStore((s) => s.setCloudOnboardingOpen)
const updateSettings = useSettingsStore((s) => s.updateSettings)
- const cloudOnboardingSeen = useSettingsStore((s) => s.settings.cloudOnboardingSeen)
const { refresh } = useCloudAuth()
const status = useCloudAuthStore((s) => s.status)
@@ -118,10 +116,11 @@ export function CloudGateModal() {
useEffect(() => {
if (open && available) {
setOpen(false)
- if (!cloudOnboardingSeen) setCloudOnboardingOpen(true)
- else updateSettings({ appMode: 'cloud' })
+ // 2.5.9 dropped the cloud onboarding modal, so there is nothing to hand
+ // off to — an available account just switches.
+ updateSettings({ appMode: 'cloud' })
}
- }, [open, available, cloudOnboardingSeen, setCloudOnboardingOpen, setOpen, updateSettings])
+ }, [open, available, setOpen, updateSettings])
const stayLocal = () => {
updateSettings({ appMode: 'local' })
diff --git a/src/components/cloud/CloudIntroPopup.tsx b/src/components/cloud/CloudIntroPopup.tsx
deleted file mode 100644
index 1d803b65..00000000
--- a/src/components/cloud/CloudIntroPopup.tsx
+++ /dev/null
@@ -1,140 +0,0 @@
-// THE one Cloud popup at app start (David 2026-07-19, 2.5.8): every install
-// sees this exactly once on its first launch after onboarding, then never
-// again — any way of closing it writes the localStorage flag, and that flag
-// rides the store-backup list so even an NSIS localStorage wipe can't
-// resurrect it. Two choices only: "Sign in or create account" opens the
-// normal in-app gate (login / plans; payment leaves for the browser from
-// there), and an equally visible "I don't want an account" which ALSO retires
-// the whole Cloud discovery layer (picker teaser rows, tap-sheets) via
-// cloudTeasersEnabled — after that tap, nothing Cloud pitches you again.
-// Settings can re-enable the discovery layer later.
-//
-// It reads the founding-wave seat count LIVE from /api/launch/seats each time
-// it opens (the server sends no-store) — never a cached or guessed number.
-
-import { useEffect, useState } from 'react'
-import { Modal } from '../ui/Modal'
-import { useUIStore } from '../../stores/uiStore'
-import { useSettingsStore } from '../../stores/settingsStore'
-import { getLaunchSeats, launchCopy, type LaunchSeats } from '../../api/cloud/launch'
-
-export const CLOUD_INTRO_KEY = 'lu_cloud_intro_seen'
-
-/** Pure visibility rule, exported for tests. Users already running in cloud
- * mode never get pitched — the flag is written for them silently instead. */
-export function shouldShowCloudIntro(alreadySeen: boolean, appMode: string): boolean {
- return !alreadySeen && appMode !== 'cloud'
-}
-
-type SeatState =
- | { phase: 'loading' }
- | { phase: 'ready'; seats: LaunchSeats }
- | { phase: 'error' }
-
-export function CloudIntroPopup() {
- const appMode = useSettingsStore((s) => s.settings.appMode)
- const updateSettings = useSettingsStore((s) => s.updateSettings)
- const setCloudGateOpen = useUIStore((s) => s.setCloudGateOpen)
- const [open, setOpen] = useState(false)
- const [seatState, setSeatState] = useState<SeatState>({ phase: 'loading' })
-
- useEffect(() => {
- let seen = false
- try {
- seen = localStorage.getItem(CLOUD_INTRO_KEY) === '1'
- } catch {
- // storage unavailable — never loop the popup, just skip it
- return
- }
- if (!shouldShowCloudIntro(seen, appMode)) {
- // cloud users skip the pitch, but the once-ever contract still holds
- if (!seen) try { localStorage.setItem(CLOUD_INTRO_KEY, '1') } catch { /* ignore */ }
- return
- }
- // let the main UI settle for a beat before saying hello
- const t = setTimeout(() => setOpen(true), 900)
- return () => clearTimeout(t)
- // mount-only on purpose: a later appMode flip must not re-arm the popup
- // eslint-disable-next-line react-hooks/exhaustive-deps
- }, [])
-
- // Live seat count, fetched fresh the moment the popup opens — no caching, per
- // the endpoint's no-store. A failure falls back to numberless copy; an abort
- // (popup closed mid-flight) is swallowed.
- useEffect(() => {
- if (!open) return
- const ac = new AbortController()
- setSeatState({ phase: 'loading' })
- getLaunchSeats(ac.signal)
- .then((seats) => setSeatState({ phase: 'ready', seats }))
- .catch(() => { if (!ac.signal.aborted) setSeatState({ phase: 'error' }) })
- return () => ac.abort()
- }, [open])
-
- const close = () => {
- try { localStorage.setItem(CLOUD_INTRO_KEY, '1') } catch { /* ignore */ }
- setOpen(false)
- }
-
- const signIn = () => {
- // Open the normal in-app onboarding gate (login / Get LU Cloud), not the
- // website directly — payment leaves for the browser from there.
- close()
- setCloudGateOpen(true)
- }
-
- const decline = () => {
- // "I don't want an account": beyond the once-ever close, retire the whole
- // Cloud discovery layer so nothing pitches Cloud again (Settings can
- // re-enable it). Cloud-only tools keep their tap-gate — that is feature
- // access, not a pitch.
- updateSettings({ cloudTeasersEnabled: false })
- close()
- }
-
- // Loading shows the headline alone (no flash of wrong numbers); ready uses the
- // live seats; error uses the numberless fallback.
- const copy =
- seatState.phase === 'ready'
- ? launchCopy(seatState.seats, Date.now())
- : seatState.phase === 'error'
- ? launchCopy(null, Date.now())
- : { title: 'LU Cloud is here', detail: '' }
-
- return (
- <Modal open={open} onClose={close} hideHeader maxWidth="max-w-[280px]" panelRadius="rounded-lg" panelPad="p-5">
- <div className="flex flex-col items-center text-center gap-3">
- <img
- src="/LU-monogram-bw.png"
- alt=""
- width={40}
- height={40}
- className="dark:invert-0 invert opacity-90 select-none"
- draggable={false}
- />
- <div className="text-[0.8rem] font-semibold tracking-tight text-gray-900 dark:text-gray-100">
- {copy.title}
- </div>
- {copy.detail && (
- <div className="text-[0.68rem] leading-relaxed text-gray-600 dark:text-gray-400">
- {copy.detail}
- </div>
- )}
- <div className="w-full flex flex-col gap-1.5 pt-1">
- <button
- onClick={signIn}
- className="w-full px-3 py-2 rounded-md text-[0.7rem] font-medium text-white bg-[#7c3aed] hover:bg-[#6d31d6] transition-colors"
- >
- Sign in or create account
- </button>
- <button
- onClick={decline}
- className="w-full px-3 py-2 rounded-md text-[0.7rem] font-medium text-gray-700 dark:text-gray-300 border border-gray-300 dark:border-white/15 hover:bg-gray-100 dark:hover:bg-white/5 transition-colors"
- >
- I don't want an account
- </button>
- </div>
- </div>
- </Modal>
- )
-}
diff --git a/src/components/cloud/CloudOnboardingModal.tsx b/src/components/cloud/CloudOnboardingModal.tsx
deleted file mode 100644
index 43acc336..00000000
--- a/src/components/cloud/CloudOnboardingModal.tsx
+++ /dev/null
@@ -1,70 +0,0 @@
-// One-time Cloud onboarding (David 2026-07-10): the FIRST successful flip to
-// Cloud lands here instead of switching silently — a short what-changes
-// walkthrough, then the switch flips and cloudOnboardingSeen persists so it
-// never shows again. "Not now" leaves everything on Local.
-
-import { Cloud, Coins, Shield } from 'lucide-react'
-import { Modal } from '../ui/Modal'
-import { useUIStore } from '../../stores/uiStore'
-import { useSettingsStore } from '../../stores/settingsStore'
-
-const POINTS = [
- {
- icon: Cloud,
- title: 'Hosted models everywhere',
- body: "Chat, image and video switch to LU's hosted GPU fleet, the full cloud catalog, no downloads, no VRAM limits. The Create tab gains the cloud-only ops (edit, animate, upscale, erase, enhance).",
- },
- {
- icon: Coins,
- title: 'Your plan pays with credits',
- body: 'Every render and chat draws from the monthly credit budget of your plan. The meter in Create always shows what is left. Local-hardware surfaces (Model Manager, Benchmark) hide while Cloud is on.',
- },
- {
- icon: Shield,
- title: 'Local stays local',
- body: 'Cloud mode is a switch, not a migration: flip back to Local anytime and everything runs on this machine again, free, private, no account needed.',
- },
-]
-
-export function CloudOnboardingModal() {
- const open = useUIStore((s) => s.cloudOnboardingOpen)
- const setOpen = useUIStore((s) => s.setCloudOnboardingOpen)
- const updateSettings = useSettingsStore((s) => s.updateSettings)
-
- const start = () => {
- updateSettings({ appMode: 'cloud', cloudOnboardingSeen: true })
- setOpen(false)
- }
-
- return (
- <Modal open={open} onClose={() => setOpen(false)} title="Welcome to LU Cloud">
- <div className="space-y-4">
- {POINTS.map(({ icon: Icon, title, body }) => (
- <div key={title} className="flex items-start gap-3">
- <span className="mt-0.5 flex h-7 w-7 shrink-0 items-center justify-center rounded-lg bg-[#7c3aed]/10 text-[#7c3aed] dark:text-[#a78bfa]">
- <Icon size={14} />
- </span>
- <div className="space-y-0.5">
- <p className="text-[0.75rem] font-medium text-gray-900 dark:text-gray-100">{title}</p>
- <p className="text-[0.7rem] leading-relaxed text-gray-600 dark:text-gray-400">{body}</p>
- </div>
- </div>
- ))}
- <div className="flex items-center gap-2 pt-1">
- <button
- onClick={start}
- className="flex items-center gap-1.5 px-3 py-1.5 rounded text-[0.7rem] font-medium bg-[#7c3aed] text-white hover:opacity-90 transition-opacity"
- >
- <Cloud size={11} /> Start Cloud mode
- </button>
- <button
- onClick={() => setOpen(false)}
- className="px-3 py-1.5 rounded text-[0.7rem] font-medium border border-gray-200 dark:border-white/10 text-gray-700 dark:text-gray-300 hover:bg-gray-100 dark:hover:bg-white/5 transition-colors"
- >
- Not now
- </button>
- </div>
- </div>
- </Modal>
- )
-}
diff --git a/src/components/cloud/CloudSwitch.tsx b/src/components/cloud/CloudSwitch.tsx
index 6b0327f6..f15187c0 100644
--- a/src/components/cloud/CloudSwitch.tsx
+++ b/src/components/cloud/CloudSwitch.tsx
@@ -15,10 +15,8 @@ import { cn } from '../create/ui/cn'
export function CloudSwitch() {
const appMode = useSettingsStore((s) => s.settings.appMode)
- const cloudOnboardingSeen = useSettingsStore((s) => s.settings.cloudOnboardingSeen)
const updateSettings = useSettingsStore((s) => s.updateSettings)
const setCloudGateOpen = useUIStore((s) => s.setCloudGateOpen)
- const setCloudOnboardingOpen = useUIStore((s) => s.setCloudOnboardingOpen)
const available = useCloudAuthStore(deriveCloudAvailable)
const on = appMode === 'cloud'
@@ -31,10 +29,7 @@ export function CloudSwitch() {
setCloudGateOpen(true)
return
}
- if (!cloudOnboardingSeen) {
- setCloudOnboardingOpen(true)
- return
- }
+ // The cloud onboarding modal was dropped in 2.5.9 — the switch just flips.
updateSettings({ appMode: 'cloud' })
}
diff --git a/src/components/cloud/__tests__/cloudIntroPopup.test.ts b/src/components/cloud/__tests__/cloudIntroPopup.test.ts
deleted file mode 100644
index 589af567..00000000
--- a/src/components/cloud/__tests__/cloudIntroPopup.test.ts
+++ /dev/null
@@ -1,29 +0,0 @@
-import { describe, it, expect } from 'vitest'
-import { CLOUD_INTRO_KEY, shouldShowCloudIntro } from '../CloudIntroPopup'
-
-// CloudIntroPopup — the once-ever "LU Cloud is live" hello (2.5.7)
-
-describe('shouldShowCloudIntro', () => {
- it('shows for a first launch in local mode (updater or fresh install)', () => {
- expect(shouldShowCloudIntro(false, 'local')).toBe(true)
- })
-
- it('never shows again once the flag is set', () => {
- expect(shouldShowCloudIntro(true, 'local')).toBe(false)
- expect(shouldShowCloudIntro(true, 'cloud')).toBe(false)
- })
-
- it('never pitches users already running in cloud mode', () => {
- expect(shouldShowCloudIntro(false, 'cloud')).toBe(false)
- })
-})
-
-describe('CLOUD_INTRO_KEY', () => {
- // The exact string is load-bearing: AppShell's store-backup list and
- // fatal-error's preserve list both carry it, so "seen once" survives an
- // NSIS update that wipes WebView2 localStorage. Renaming it silently would
- // re-show the popup to every updater.
- it('stays the string the backup lists reference', () => {
- expect(CLOUD_INTRO_KEY).toBe('lu_cloud_intro_seen')
- })
-})
diff --git a/src/components/layout/AppShell.tsx b/src/components/layout/AppShell.tsx
index c822e000..5750dd06 100644
--- a/src/components/layout/AppShell.tsx
+++ b/src/components/layout/AppShell.tsx
@@ -31,8 +31,6 @@ import { useCreateStore } from '../../stores/createStore'
import { CloudGateModal } from '../cloud/CloudGateModal'
import { CloudTeaserModal } from '../cloud/CloudTeaserModal'
import { CloudExampleModal } from '../cloud/CloudExampleModal'
-import { CloudIntroPopup } from '../cloud/CloudIntroPopup'
-import { CloudOnboardingModal } from '../cloud/CloudOnboardingModal'
import { ShortcutsModal } from './ShortcutsModal'
import { Titlebar } from './Titlebar'
@@ -159,9 +157,10 @@ export function AppShell() {
'locally-uncensored-voice', 'lu-benchmark-store', 'lu-update-checker-v2',
'rag-store', 'workflow-store', 'lu-cloud-catalog',
// One-shot notices — back these up so "seen it once" survives an NSIS
- // update that wipes WebView2 localStorage (2.5.7: the cloud intro popup
- // replaced the pre-launch lu_cloud_teaser waitlist badge).
- 'lu_cloud_intro_seen', 'lu_image_tool_noti',
+ // update that wipes WebView2 localStorage. `lu_cloud_notice` (the Create
+ // retention line) claimed in its own comment that it survived an update
+ // and did not, because it was never listed here.
+ 'lu_cloud_notice', 'locally-uncensored-model-health',
]
const STORE_KEYS_SET = new Set(STORE_KEYS)
// These two persist via idbStorage (IndexedDB) since v2.5.0 — the backup
@@ -816,10 +815,6 @@ export function AppShell() {
{/* Example video popup: teaser "See plans" detours here (intent
surfaces only) before the gate. */}
<CloudExampleModal />
- {/* One-time cloud onboarding — first successful switch flip. */}
- <CloudOnboardingModal />
- {/* Once-ever "LU Cloud is live" hello on the first 2.5.7 launch. */}
- <CloudIntroPopup />
<ShortcutsModal />
</div>
)
diff --git a/src/hooks/useImageToolNoti.ts b/src/hooks/useImageToolNoti.ts
deleted file mode 100644
index 3c18948f..00000000
--- a/src/hooks/useImageToolNoti.ts
+++ /dev/null
@@ -1,38 +0,0 @@
-import { useEffect } from "react";
-import { useImageNotiStore } from "../stores/imageNotiStore";
-import { isImageGenCapable } from "../lib/hardware";
-
-// Module-level guard so the two consumers (Tools button + the dropdown row)
-// don't both fire the hardware probe before either resolves.
-let probeInFlight = false;
-
-/**
- * Drives the image-tool discovery noti. Returns whether the noti should show
- * right now and a `dismiss()` that hides it for good.
- *
- * visible = hardware-capable (VRAM≥12 OR RAM≥16) AND not yet clicked
- *
- * The hardware probe runs once per session (cached in the store); `dismiss()`
- * is persisted so the noti never returns after the first click.
- */
-export function useImageToolNoti() {
- const seen = useImageNotiStore((s) => s.seen);
- const eligible = useImageNotiStore((s) => s.eligible);
- const setSeen = useImageNotiStore((s) => s.setSeen);
-
- useEffect(() => {
- if (eligible !== null || probeInFlight) return;
- probeInFlight = true;
- isImageGenCapable()
- .then((ok) => useImageNotiStore.getState().setEligible(ok))
- .catch(() => useImageNotiStore.getState().setEligible(false))
- .finally(() => {
- probeInFlight = false;
- });
- }, [eligible]);
-
- return {
- visible: eligible === true && !seen,
- dismiss: () => setSeen(true),
- };
-}
diff --git a/src/lib/fatal-error.ts b/src/lib/fatal-error.ts
index fbfa2e05..90feff57 100644
--- a/src/lib/fatal-error.ts
+++ b/src/lib/fatal-error.ts
@@ -31,8 +31,7 @@ export const SETTINGS_STORAGE_KEYS = [
'workflow-store',
'lu-update-checker-v2',
'lu-benchmark-store',
- 'lu_cloud_intro_seen',
- 'lu_image_tool_noti',
+ 'lu_cloud_notice',
]
/** Force the (initially hidden) Tauri window visible so recovery UI is seen. */
diff --git a/src/stores/__tests__/imageNotiStore.test.ts b/src/stores/__tests__/imageNotiStore.test.ts
deleted file mode 100644
index 1a90c146..00000000
--- a/src/stores/__tests__/imageNotiStore.test.ts
+++ /dev/null
@@ -1,30 +0,0 @@
-import { describe, it, expect, beforeEach } from 'vitest'
-import { useImageNotiStore } from '../imageNotiStore'
-
-// ═══════════════════════════════════════════════════════════════
-// imageNotiStore — image-tool discovery noti persistence
-// ═══════════════════════════════════════════════════════════════
-
-describe('imageNotiStore', () => {
- beforeEach(() => {
- useImageNotiStore.setState({ seen: false, eligible: null })
- })
-
- it('defaults to unseen + eligibility-unknown', () => {
- const s = useImageNotiStore.getState()
- expect(s.seen).toBe(false)
- expect(s.eligible).toBe(null)
- })
-
- it('setSeen hides the noti for good', () => {
- useImageNotiStore.getState().setSeen(true)
- expect(useImageNotiStore.getState().seen).toBe(true)
- })
-
- it('setEligible records the hardware probe result', () => {
- useImageNotiStore.getState().setEligible(true)
- expect(useImageNotiStore.getState().eligible).toBe(true)
- useImageNotiStore.getState().setEligible(false)
- expect(useImageNotiStore.getState().eligible).toBe(false)
- })
-})
diff --git a/src/stores/imageNotiStore.ts b/src/stores/imageNotiStore.ts
deleted file mode 100644
index 85ffd805..00000000
--- a/src/stores/imageNotiStore.ts
+++ /dev/null
@@ -1,38 +0,0 @@
-import { create } from "zustand";
-import { persist } from "zustand/middleware";
-
-/**
- * State for the image-tool discovery noti — a small purple "1" badge on the
- * Image entry in the agent-mode Tools dropdown (+ a dot on the Tools button),
- * shown only on image-gen-capable hardware (see lib/hardware).
- *
- * - `seen` (persisted): the user has clicked the Image noti once. This is the
- * ONLY thing that hides it, and it persists across restarts. Purely visual —
- * acknowledging the noti does NOT toggle the image tool (David 2026-06-06:
- * "nichts aktivieren rein optisch").
- * - `eligible` (transient): result of the one-shot hardware probe. `null` = not
- * checked yet this session; re-probed every launch so a hardware change is
- * always reflected.
- */
-interface ImageNotiState {
- seen: boolean;
- eligible: boolean | null;
- setSeen: (v: boolean) => void;
- setEligible: (v: boolean) => void;
-}
-
-export const useImageNotiStore = create<ImageNotiState>()(
- persist(
- (set) => ({
- seen: false,
- eligible: null,
- setSeen: (v) => set({ seen: v }),
- setEligible: (v) => set({ eligible: v }),
- }),
- {
- name: "lu_image_tool_noti",
- // Only the dismissal persists; eligibility is re-probed each launch.
- partialize: (s) => ({ seen: s.seen }),
- },
- ),
-);
diff --git a/src/stores/modelHealthStore.ts b/src/stores/modelHealthStore.ts
index b62f8857..17c8e049 100644
--- a/src/stores/modelHealthStore.ts
+++ b/src/stores/modelHealthStore.ts
@@ -35,8 +35,21 @@ export const useModelHealthStore = create<ModelHealthState>()(
lastScanTime: 0,
scanning: false,
dismissed: false,
+ // Only un-dismiss when the stale set actually CHANGED. The health scan
+ // runs once per launch, so clearing the flag unconditionally meant the
+ // banner returned on every start over the same untouched model and
+ // "dismiss" was decorative.
setStaleModels: (models) =>
- set({ staleModels: models, lastScanTime: Date.now(), dismissed: false }),
+ set((s) => {
+ const same =
+ s.staleModels.length === models.length &&
+ models.every((m) => s.staleModels.includes(m))
+ return {
+ staleModels: models,
+ lastScanTime: Date.now(),
+ dismissed: same ? s.dismissed : false,
+ }
+ }),
markFresh: (name) =>
set((s) => ({ staleModels: s.staleModels.filter((m) => m !== name) })),
setScanning: (scanning) => set({ scanning }),
@@ -46,9 +59,13 @@ export const useModelHealthStore = create<ModelHealthState>()(
}),
{
name: 'locally-uncensored-model-health',
- // Only persist the scan result + timestamp. `scanning` and `dismissed`
- // are intentionally session-only.
- partialize: (s) => ({ staleModels: s.staleModels, lastScanTime: s.lastScanTime }),
+ // `dismissed` persists as of 2.5.9: the banner re-ran its startup scan and
+ // came back on EVERY launch while a stale model sat on disk, so closing it
+ // meant nothing. A fresh scan that finds stale models clears the flag
+ // again (setStaleModels), so a genuinely new problem still speaks up.
+ // `scanning` stays session-only — a crash mid-scan must not persist as
+ // "still scanning".
+ partialize: (s) => ({ staleModels: s.staleModels, lastScanTime: s.lastScanTime, dismissed: s.dismissed }),
}
)
)