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.
TypeScript agentai-chatai-studioall-in-onecoding-agentdesktop-appfluximage-generationlinuxllmlocal-ailocal-llmopen-sourceprivacyself-hostedstable-diffusionuncensoreduncensored-aivideo-generationwindows
fix(ui): the right-click menu sits at the root, in both windows (W33)
purple16fccb3a3af0
diff --git a/src/App.tsx b/src/App.tsxindex 2568aa72..d3de2d71 100644--- a/src/App.tsx+++ b/src/App.tsx@@ -1,5 +1,4 @@import { useEffect } from 'react'-import { TextContextMenu } from './components/ui/TextContextMenu'import { MotionConfig } from 'framer-motion'import { AppShell } from './components/layout/AppShell'import { useVoiceStore } from './stores/voiceStore'@@ -92,8 +91,6 @@ function App() {return (<MotionConfig reducedMotion="user"><AppShell />- {/* W33: no web view menu on a right click in a release build. */}- <TextContextMenu /></MotionConfig>)}diff --git a/src/components/ui/TextContextMenu.tsx b/src/components/ui/TextContextMenu.tsxindex 0a3b38bb..591205b0 100644--- a/src/components/ui/TextContextMenu.tsx+++ b/src/components/ui/TextContextMenu.tsx@@ -1,5 +1,5 @@// W33: the right click of the whole window (see lib/text-context-menu.ts).-// Mounted once in App. Listens on the document after React's own handlers,+// Mounted once at the root (main.tsx), above both windows' trees, desktop only. Listens on the document after React's own handlers,// so a menu of LU's own (chat message, model, gallery tile) that already// called preventDefault is left alone.import { useEffect, useState } from 'react'diff --git a/src/main.tsx b/src/main.tsxindex 1965ec0e..ff88edf4 100644--- a/src/main.tsx+++ b/src/main.tsx@@ -106,6 +106,10 @@ async function boot() {treeForThisWindow(),import('./components/ui/ErrorBoundary'),])+ // W33: loaded only now. It reaches persisted stores (logger, settings), and+ // nothing of that may load in the main window before the onboarding has+ // handed over (main-laedt-vor-der-uebergabe-keinen-store.test.ts).+ const TextMenu = mobileHost ? null : (await import('./components/ui/TextContextMenu')).TextContextMenu// Die optische Korrektur der Icon-Leiter, einmal fuer die ganze App — und// seit den zwei Fenstern hier, ueber BEIDEN Baeumen, statt in AppShell.//@@ -131,6 +135,10 @@ async function boot() {<ErrorBoundary root><LucideProvider absoluteStrokeWidth strokeWidth={ICON_STROKE_PX}>{tree}+ {/* W33: no web view menu on a right click in a release build, in+ both windows (the onboarding assistant is the first one a new+ user sees). Not on a phone: a long press there is its own. */}+ {TextMenu && <TextMenu />}</LucideProvider></ErrorBoundary></StrictMode>,