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
phone: the page Account says chats stay on the phone
purple13043effede1
diff --git a/src/mobile/screens/settings/AccountPage.tsx b/src/mobile/screens/settings/AccountPage.tsxindex 1dcf9160..f774af0a 100644--- a/src/mobile/screens/settings/AccountPage.tsx+++ b/src/mobile/screens/settings/AccountPage.tsx@@ -17,7 +17,7 @@* fresh is mounted once by the frame of the shell, never here.*/import { useEffect, useRef, useState } from 'react'-import { Brain, CircleUserRound, CreditCard, ExternalLink, KeyRound, LogOut, MessageSquareText, Plus, RefreshCw, UserRoundX, WifiOff } from 'lucide-react'+import { Brain, CircleUserRound, CreditCard, ExternalLink, KeyRound, LogOut, MessageSquareText, MessagesSquare, Plus, RefreshCw, UserRoundX, WifiOff } from 'lucide-react'import type { OAuthProvider } from '../../../api/cloud/supabase'import { countUnsyncedAccountMemories } from '../../../lib/memory-unsynced'import { PAST_DUE_WALLET_LINE, pastDueLine } from '../../../lib/past-due'@@ -517,6 +517,7 @@ function SignedIn() {{/* Round 17, store switch purchase 'in-app' (iOS, in no preset): credits through the store of the system. Not a link, nothing leaves the app. */}{addCredits ? <Row icon={Plus} title={SETTINGS_STRINGS.iap.open} chevron={false} onPress={() => nav.openSheet('settings-add-credits')} testid="m-account-add-credits" /> : null}<Row icon={Brain} title={T.syncMemories} subtitle={T.syncMemoriesSub} onPress={() => nav.push('/settings/memory')} testid="m-account-sync-memories" el="E2.11" />+ <Row icon={MessagesSquare} title={T.chatsStayHere} subtitle={policy.remoteDesktop ? T.chatsStayHereSubRemote : T.chatsStayHereSub} chevron={false} testid="m-account-chats-stay" /><Row icon={MessageSquareText} title={T.contentPolicy} onPress={() => nav.push('/settings/content-policy')} testid="m-account-content-policy" el="E2.12" /></ListGroup>diff --git a/src/mobile/screens/settings/__tests__/account-chats-stay.dom.test.tsx b/src/mobile/screens/settings/__tests__/account-chats-stay.dom.test.tsxnew file mode 100644index 00000000..e9144fc8--- /dev/null+++ b/src/mobile/screens/settings/__tests__/account-chats-stay.dom.test.tsx@@ -0,0 +1,34 @@+// @vitest-environment jsdom+/**+ * M310: the account keeps credits and memories, never chats. A customer who+ * uses lu-labs.ai in the browser and the phone app sees the same balance but+ * not the same chats; the page Account says so, and where a chat of the+ * computer shows up instead (Remote desktop) when the build offers it.+ *+ * Run: npx vitest run src/mobile/screens/settings/__tests__/account-chats-stay.dom.test.tsx+ */+import { afterEach, describe, expect, it, vi } from 'vitest'+import { cleanup, render, screen } from '@testing-library/react'++vi.mock('../../../../hooks/useCloudAuth', () => ({ probeAccount: vi.fn(async () => {}), signOutAccount: vi.fn(async () => {}) }))++import { useCloudAuthStore } from '../../../../stores/cloudAuthStore'+import { setStorePresetForTests, storePolicy } from '../../../policy'+import { SETTINGS_STRINGS } from '../../../strings/settings'+import AccountPage from '../AccountPage'++const T = SETTINGS_STRINGS.account++afterEach(() => { cleanup(); setStorePresetForTests(null) })++describe('the page Account says chats stay on the phone', () => {+ it.each(['open', 'play', 'appstore'] as const)('preset %s', (preset) => {+ setStorePresetForTests(preset)+ useCloudAuthStore.setState({ status: 'signed-in', user: { id: 'u1', email: '[email protected]' }, offline: false, licenseActive: true, access: true, pastDue: false } as never)+ render(<AccountPage />)+ const row = screen.getByTestId('m-account-chats-stay')+ expect(row.textContent).toContain(T.chatsStayHere)+ expect(row.textContent).toContain(storePolicy().remoteDesktop ? T.chatsStayHereSubRemote : T.chatsStayHereSub)+ expect(row.textContent).not.toMatch(/sync/i)+ })+})diff --git a/src/mobile/strings/settings.ts b/src/mobile/strings/settings.tsindex c8b8c332..9da18180 100644--- a/src/mobile/strings/settings.ts+++ b/src/mobile/strings/settings.ts@@ -166,6 +166,10 @@ export const SETTINGS_STRINGS = {payInvoice: 'Pay open invoice',syncMemories: 'Sync memories',syncMemoriesSub: 'Keep your memories on your account',+ /** M310: the account carries credits and memories, never chats (no chat sync between devices). */+ chatsStayHere: 'Chats stay on this phone',+ chatsStayHereSub: 'Your account keeps credits and memories, not chats. Chats in a browser or on your computer do not show up here.',+ chatsStayHereSubRemote: 'Your account keeps credits and memories, not chats. A chat on your computer comes here with Continue on phone, under Remote desktop.',contentPolicy: 'Content policy',apiKeysTitle: 'API keys',apiKeysText: 'Use your LU Cloud credits from other apps with an API key. Keys are made and removed on your account page.',