Skip to content

The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.

chore: files changed app/src/components/oauth/__tests__/OAuthProviderButton.test.tsx,app/src/lib/i18

Steven Enamakel7c6424174daa
diff --git a/app/src/components/oauth/__tests__/OAuthProviderButton.test.tsx b/app/src/components/oauth/__tests__/OAuthProviderButton.test.tsx
index 5351250f48..59084efa3f 100644
--- a/app/src/components/oauth/__tests__/OAuthProviderButton.test.tsx
+++ b/app/src/components/oauth/__tests__/OAuthProviderButton.test.tsx
@@ -122,7 +122,9 @@ describe('OAuthProviderButton', () => {
});
expect(checkBackendHealthy).toHaveBeenCalledTimes(1);
- expect(openUrl).toHaveBeenCalledWith(expect.stringMatching(/^https:\/\/backend\.test\/auth\/google\/login/));
+ expect(openUrl).toHaveBeenCalledWith(
+ expect.stringMatching(/^https:\/\/backend\.test\/auth\/google\/login/)
+ );
});
it('does not show the local-profile warning for a cloud profile', async () => {
diff --git a/app/src/lib/i18n/ar.ts b/app/src/lib/i18n/ar.ts
index 2913770a05..403ad7982f 100644
--- a/app/src/lib/i18n/ar.ts
+++ b/app/src/lib/i18n/ar.ts
@@ -1734,7 +1734,8 @@ const messages: TranslationMap = {
'about.update.status.default': 'التحقق من التحديثات',
'welcome.continueLocallyExperimental': 'المتابعة محليًا (تجريبي)',
'auth.profileSwitch.title': 'هل تريد تسجيل الدخول بملف شخصي منفصل؟',
- 'auth.profileSwitch.body': 'سيؤدي تسجيل الدخول السحابي إلى نقل OpenHuman إلى ملف حساب منفصل. ستظل محادثاتك وذاكرتك وإعدادات المزوّد المحلية على هذا الجهاز في users/{profileId}. للعودة إليها، سجّل الخروج واختر الجلسة المحلية من شاشة الترحيب.',
+ 'auth.profileSwitch.body':
+ 'سيؤدي تسجيل الدخول السحابي إلى نقل OpenHuman إلى ملف حساب منفصل. ستظل محادثاتك وذاكرتك وإعدادات المزوّد المحلية على هذا الجهاز في users/{profileId}. للعودة إليها، سجّل الخروج واختر الجلسة المحلية من شاشة الترحيب.',
'auth.profileSwitch.continue': 'متابعة تسجيل الدخول',
'welcome.localSessionStarting': 'بدء الجلسة المحلية...',
'welcome.coreConfigUnreadable':
diff --git a/app/src/lib/i18n/bn.ts b/app/src/lib/i18n/bn.ts
index 7d643653b1..58d22d1829 100644
--- a/app/src/lib/i18n/bn.ts
+++ b/app/src/lib/i18n/bn.ts
@@ -1766,7 +1766,8 @@ const messages: TranslationMap = {
'about.update.status.default': 'আপডেট পরীক্ষা করুন',
'welcome.continueLocallyExperimental': 'লোকালি চালিয়ে যান (প্রায়োগিক)',
'auth.profileSwitch.title': 'আলাদা প্রোফাইলে সাইন ইন করবেন?',
- 'auth.profileSwitch.body': 'ক্লাউডে সাইন ইন করলে OpenHuman আলাদা অ্যাকাউন্ট প্রোফাইলে যাবে। আপনার স্থানীয় কথোপকথন, মেমরি ও প্রদানকারী সেটিংস এই ডিভাইসের users/{profileId}-এ থাকবে। ফিরে যেতে সাইন আউট করে স্বাগতম স্ক্রিনে স্থানীয় সেশন বেছে নিন।',
+ 'auth.profileSwitch.body':
+ 'ক্লাউডে সাইন ইন করলে OpenHuman আলাদা অ্যাকাউন্ট প্রোফাইলে যাবে। আপনার স্থানীয় কথোপকথন, মেমরি ও প্রদানকারী সেটিংস এই ডিভাইসের users/{profileId}-এ থাকবে। ফিরে যেতে সাইন আউট করে স্বাগতম স্ক্রিনে স্থানীয় সেশন বেছে নিন।',
'auth.profileSwitch.continue': 'সাইন ইন চালিয়ে যান',
'welcome.localSessionStarting': 'স্থানীয় অধিবেশন শুরু করা হচ্ছে...',
'welcome.coreConfigUnreadable':
diff --git a/app/src/lib/i18n/de.ts b/app/src/lib/i18n/de.ts
index 274a3d5d3d..08ed606f7f 100644
--- a/app/src/lib/i18n/de.ts
+++ b/app/src/lib/i18n/de.ts
@@ -1822,7 +1822,8 @@ const messages: TranslationMap = {
'about.update.status.default': 'Nach Updates suchen',
'welcome.continueLocallyExperimental': 'Lokal fortfahren (Experimentell)',
'auth.profileSwitch.title': 'Mit einem separaten Profil anmelden?',
- 'auth.profileSwitch.body': 'Bei der Cloud-Anmeldung wechselt OpenHuman zu einem separaten Kontoprofil. Deine lokalen Unterhaltungen, dein Gedächtnis und deine Anbietereinstellungen bleiben auf diesem Gerät unter users/{profileId}. Um zurückzukehren, melde dich ab und wähle auf dem Willkommensbildschirm die lokale Sitzung.',
+ 'auth.profileSwitch.body':
+ 'Bei der Cloud-Anmeldung wechselt OpenHuman zu einem separaten Kontoprofil. Deine lokalen Unterhaltungen, dein Gedächtnis und deine Anbietereinstellungen bleiben auf diesem Gerät unter users/{profileId}. Um zurückzukehren, melde dich ab und wähle auf dem Willkommensbildschirm die lokale Sitzung.',
'auth.profileSwitch.continue': 'Weiter zur Anmeldung',
'welcome.localSessionStarting': 'Lokal starten Sitzung...',
'welcome.coreConfigUnreadable':
diff --git a/app/src/lib/i18n/es.ts b/app/src/lib/i18n/es.ts
index 729b93adb2..79ace5b17a 100644
--- a/app/src/lib/i18n/es.ts
+++ b/app/src/lib/i18n/es.ts
@@ -1804,7 +1804,8 @@ const messages: TranslationMap = {
'about.update.status.default': 'Buscar actualizaciones',
'welcome.continueLocallyExperimental': 'Continuar localmente (Experimental)',
'auth.profileSwitch.title': '¿Iniciar sesión con un perfil distinto?',
- 'auth.profileSwitch.body': 'Al iniciar sesión en la nube, OpenHuman cambiará a un perfil de cuenta separado. Tus conversaciones, memoria y ajustes de proveedores locales seguirán en este dispositivo, en users/{profileId}. Para volver, cierra sesión y elige la sesión local en la pantalla de bienvenida.',
+ 'auth.profileSwitch.body':
+ 'Al iniciar sesión en la nube, OpenHuman cambiará a un perfil de cuenta separado. Tus conversaciones, memoria y ajustes de proveedores locales seguirán en este dispositivo, en users/{profileId}. Para volver, cierra sesión y elige la sesión local en la pantalla de bienvenida.',
'auth.profileSwitch.continue': 'Continuar con el inicio de sesión',
'welcome.localSessionStarting': 'Iniciando sesión local...',
'welcome.coreConfigUnreadable':
diff --git a/app/src/lib/i18n/fr.ts b/app/src/lib/i18n/fr.ts
index 7d01b86e83..c4801b723c 100644
--- a/app/src/lib/i18n/fr.ts
+++ b/app/src/lib/i18n/fr.ts
@@ -1814,7 +1814,8 @@ const messages: TranslationMap = {
'about.update.status.default': 'Rechercher des mises à jour',
'welcome.continueLocallyExperimental': 'Continuer en local (Expérimental)',
'auth.profileSwitch.title': 'Se connecter avec un profil distinct ?',
- 'auth.profileSwitch.body': 'La connexion au cloud basculera OpenHuman vers un profil de compte distinct. Vos conversations, votre mémoire et vos réglages de fournisseurs locaux resteront sur cet appareil dans users/{profileId}. Pour y revenir, déconnectez-vous puis choisissez la session locale sur l’écran d’accueil.',
+ 'auth.profileSwitch.body':
+ 'La connexion au cloud basculera OpenHuman vers un profil de compte distinct. Vos conversations, votre mémoire et vos réglages de fournisseurs locaux resteront sur cet appareil dans users/{profileId}. Pour y revenir, déconnectez-vous puis choisissez la session locale sur l’écran d’accueil.',
'auth.profileSwitch.continue': 'Continuer la connexion',
'welcome.localSessionStarting': 'Démarrage de la session locale...',
'welcome.coreConfigUnreadable':
diff --git a/app/src/lib/i18n/hi.ts b/app/src/lib/i18n/hi.ts
index 6c8bb92eaa..7038e94a50 100644
--- a/app/src/lib/i18n/hi.ts
+++ b/app/src/lib/i18n/hi.ts
@@ -1769,7 +1769,8 @@ const messages: TranslationMap = {
'about.update.status.default': 'अपडेट चेक करें',
'welcome.continueLocallyExperimental': 'लोकल रूप से जारी रखें (प्रायोगिक)',
'auth.profileSwitch.title': 'अलग प्रोफ़ाइल से साइन इन करें?',
- 'auth.profileSwitch.body': 'क्लाउड साइन-इन OpenHuman को अलग खाते की प्रोफ़ाइल पर ले जाएगा। आपकी स्थानीय बातचीत, मेमोरी और प्रदाता सेटिंग्स इस डिवाइस पर users/{profileId} में रहेंगी। वापस जाने के लिए साइन आउट करें और स्वागत स्क्रीन पर स्थानीय सत्र चुनें।',
+ 'auth.profileSwitch.body':
+ 'क्लाउड साइन-इन OpenHuman को अलग खाते की प्रोफ़ाइल पर ले जाएगा। आपकी स्थानीय बातचीत, मेमोरी और प्रदाता सेटिंग्स इस डिवाइस पर users/{profileId} में रहेंगी। वापस जाने के लिए साइन आउट करें और स्वागत स्क्रीन पर स्थानीय सत्र चुनें।',
'auth.profileSwitch.continue': 'साइन इन जारी रखें',
'welcome.localSessionStarting': 'स्थानीय सत्र प्रारंभ हो रहा है...',
'welcome.coreConfigUnreadable':
diff --git a/app/src/lib/i18n/id.ts b/app/src/lib/i18n/id.ts
index 86fcd4a601..098cd43adb 100644
--- a/app/src/lib/i18n/id.ts
+++ b/app/src/lib/i18n/id.ts
@@ -1782,7 +1782,8 @@ const messages: TranslationMap = {
'about.update.status.default': 'Periksa pembaruan',
'welcome.continueLocallyExperimental': 'Lanjutkan Secara Lokal (Eksperimental)',
'auth.profileSwitch.title': 'Masuk dengan profil terpisah?',
- 'auth.profileSwitch.body': 'Masuk ke cloud akan mengalihkan OpenHuman ke profil akun terpisah. Percakapan, memori, dan pengaturan penyedia lokal Anda tetap tersimpan di perangkat ini dalam users/{profileId}. Untuk kembali, keluar lalu pilih sesi lokal di layar Selamat Datang.',
+ 'auth.profileSwitch.body':
+ 'Masuk ke cloud akan mengalihkan OpenHuman ke profil akun terpisah. Percakapan, memori, dan pengaturan penyedia lokal Anda tetap tersimpan di perangkat ini dalam users/{profileId}. Untuk kembali, keluar lalu pilih sesi lokal di layar Selamat Datang.',
'auth.profileSwitch.continue': 'Lanjutkan masuk',
'welcome.localSessionStarting': 'Memulai sesi lokal...',
'welcome.coreConfigUnreadable':
diff --git a/app/src/lib/i18n/it.ts b/app/src/lib/i18n/it.ts
index 9b56342927..69849744ac 100644
--- a/app/src/lib/i18n/it.ts
+++ b/app/src/lib/i18n/it.ts
@@ -1802,7 +1802,8 @@ const messages: TranslationMap = {
'about.update.status.default': 'Verifica aggiornamenti',
'welcome.continueLocallyExperimental': 'Continua Localmente (Sperimentale)',
'auth.profileSwitch.title': 'Accedere con un profilo separato?',
- 'auth.profileSwitch.body': "L'accesso cloud sposterà OpenHuman su un profilo account separato. Le tue conversazioni, la memoria e le impostazioni dei provider locali resteranno su questo dispositivo in users/{profileId}. Per tornare, esci e scegli la sessione locale nella schermata di benvenuto.",
+ 'auth.profileSwitch.body':
+ "L'accesso cloud sposterà OpenHuman su un profilo account separato. Le tue conversazioni, la memoria e le impostazioni dei provider locali resteranno su questo dispositivo in users/{profileId}. Per tornare, esci e scegli la sessione locale nella schermata di benvenuto.",
'auth.profileSwitch.continue': "Continua con l'accesso",
'welcome.localSessionStarting': 'Avvio sessione locale...',
'welcome.coreConfigUnreadable':
diff --git a/app/src/lib/i18n/ja.ts b/app/src/lib/i18n/ja.ts
index 67a557fe34..6220756f84 100644
--- a/app/src/lib/i18n/ja.ts
+++ b/app/src/lib/i18n/ja.ts
@@ -2023,7 +2023,8 @@ const messages: TranslationMap = {
// Welcome: connection error messages
'welcome.continueLocallyExperimental': 'ローカルで続行 (実験的)',
'auth.profileSwitch.title': '別のプロフィールでサインインしますか?',
- 'auth.profileSwitch.body': 'クラウドにサインインすると、OpenHuman は別のアカウントプロフィールに切り替わります。ローカルの会話、メモリ、プロバイダー設定はこのデバイスの users/{profileId} に残ります。戻るにはサインアウトし、ようこそ画面でローカルセッションを選択してください。',
+ 'auth.profileSwitch.body':
+ 'クラウドにサインインすると、OpenHuman は別のアカウントプロフィールに切り替わります。ローカルの会話、メモリ、プロバイダー設定はこのデバイスの users/{profileId} に残ります。戻るにはサインアウトし、ようこそ画面でローカルセッションを選択してください。',
'auth.profileSwitch.continue': 'サインインを続ける',
'welcome.localSessionStarting': 'ローカルセッションを開始中...',
'welcome.coreConfigUnreadable':
diff --git a/app/src/lib/i18n/ko.ts b/app/src/lib/i18n/ko.ts
index c084cffba1..b33462b1c5 100644
--- a/app/src/lib/i18n/ko.ts
+++ b/app/src/lib/i18n/ko.ts
@@ -1755,7 +1755,8 @@ const messages: TranslationMap = {
'about.update.status.default': '업데이트 확인',
'welcome.continueLocallyExperimental': '로컬에서 계속(실험적)',
'auth.profileSwitch.title': '별도 프로필로 로그인할까요?',
- 'auth.profileSwitch.body': '클라우드에 로그인하면 OpenHuman이 별도의 계정 프로필로 전환됩니다. 로컬 대화, 메모리, 제공업체 설정은 이 기기의 users/{profileId}에 남아 있습니다. 돌아가려면 로그아웃한 다음 시작 화면에서 로컬 세션을 선택하세요.',
+ 'auth.profileSwitch.body':
+ '클라우드에 로그인하면 OpenHuman이 별도의 계정 프로필로 전환됩니다. 로컬 대화, 메모리, 제공업체 설정은 이 기기의 users/{profileId}에 남아 있습니다. 돌아가려면 로그아웃한 다음 시작 화면에서 로컬 세션을 선택하세요.',
'auth.profileSwitch.continue': '로그인 계속하기',
'welcome.localSessionStarting': '로컬 세션 시작 중...',
'welcome.coreConfigUnreadable':
diff --git a/app/src/lib/i18n/pl.ts b/app/src/lib/i18n/pl.ts
index f3657d434b..ae25522374 100644
--- a/app/src/lib/i18n/pl.ts
+++ b/app/src/lib/i18n/pl.ts
@@ -1787,7 +1787,8 @@ const messages: TranslationMap = {
'about.update.status.default': 'Sprawdź aktualizacje',
'welcome.continueLocallyExperimental': 'Kontynuuj lokalnie (Eksperymentalne)',
'auth.profileSwitch.title': 'Zalogować się do osobnego profilu?',
- 'auth.profileSwitch.body': 'Logowanie do chmury przełączy OpenHuman na osobny profil konta. Twoje lokalne rozmowy, pamięć i ustawienia dostawców pozostaną na tym urządzeniu w users/{profileId}. Aby do nich wrócić, wyloguj się i wybierz lokalną sesję na ekranie powitalnym.',
+ 'auth.profileSwitch.body':
+ 'Logowanie do chmury przełączy OpenHuman na osobny profil konta. Twoje lokalne rozmowy, pamięć i ustawienia dostawców pozostaną na tym urządzeniu w users/{profileId}. Aby do nich wrócić, wyloguj się i wybierz lokalną sesję na ekranie powitalnym.',
'auth.profileSwitch.continue': 'Kontynuuj logowanie',
'welcome.localSessionStarting': 'Rozpoczynanie sesji lokalnej...',
'welcome.coreConfigUnreadable':
diff --git a/app/src/lib/i18n/pt.ts b/app/src/lib/i18n/pt.ts
index 04571d54e0..a15c55cb58 100644
--- a/app/src/lib/i18n/pt.ts
+++ b/app/src/lib/i18n/pt.ts
@@ -1800,7 +1800,8 @@ const messages: TranslationMap = {
'about.update.status.default': 'Verificar atualizações',
'welcome.continueLocallyExperimental': 'Continuar Localmente (Experimental)',
'auth.profileSwitch.title': 'Iniciar sessão com um perfil separado?',
- 'auth.profileSwitch.body': 'O início de sessão na nuvem mudará o OpenHuman para um perfil de conta separado. As suas conversas, memória e definições locais de fornecedores continuarão neste dispositivo, em users/{profileId}. Para voltar, termine a sessão e escolha a sessão local no ecrã de boas-vindas.',
+ 'auth.profileSwitch.body':
+ 'O início de sessão na nuvem mudará o OpenHuman para um perfil de conta separado. As suas conversas, memória e definições locais de fornecedores continuarão neste dispositivo, em users/{profileId}. Para voltar, termine a sessão e escolha a sessão local no ecrã de boas-vindas.',
'auth.profileSwitch.continue': 'Continuar sessão',
'welcome.localSessionStarting': 'Iniciando sessão local...',
'welcome.coreConfigUnreadable':
diff --git a/app/src/lib/i18n/ru.ts b/app/src/lib/i18n/ru.ts
index 071888d96b..b704b394f8 100644
--- a/app/src/lib/i18n/ru.ts
+++ b/app/src/lib/i18n/ru.ts
@@ -1782,7 +1782,8 @@ const messages: TranslationMap = {
'about.update.status.default': 'Проверить обновления',
'welcome.continueLocallyExperimental': 'Продолжить локально (Экспериментально)',
'auth.profileSwitch.title': 'Войти с отдельным профилем?',
- 'auth.profileSwitch.body': 'При входе в облако OpenHuman переключится на отдельный профиль аккаунта. Ваши локальные переписки, память и настройки провайдеров останутся на этом устройстве в users/{profileId}. Чтобы вернуться к ним, выйдите из аккаунта и выберите локальную сессию на экране приветствия.',
+ 'auth.profileSwitch.body':
+ 'При входе в облако OpenHuman переключится на отдельный профиль аккаунта. Ваши локальные переписки, память и настройки провайдеров останутся на этом устройстве в users/{profileId}. Чтобы вернуться к ним, выйдите из аккаунта и выберите локальную сессию на экране приветствия.',
'auth.profileSwitch.continue': 'Продолжить вход',
'welcome.localSessionStarting': 'Запуск локального сеанса...',
'welcome.coreConfigUnreadable':
diff --git a/app/src/lib/i18n/tr.ts b/app/src/lib/i18n/tr.ts
index d92a28a37b..6dc7d83d6b 100644
--- a/app/src/lib/i18n/tr.ts
+++ b/app/src/lib/i18n/tr.ts
@@ -1830,7 +1830,8 @@ const messages: TranslationMap = {
'about.update.status.default': 'Güncellemeleri denetle',
'welcome.continueLocallyExperimental': 'Yerel olarak devam et (Deneysel)',
'auth.profileSwitch.title': 'Ayrı bir profille oturum açılsın mı?',
- 'auth.profileSwitch.body': 'Bulut oturumu açıldığında OpenHuman ayrı bir hesap profiline geçer. Yerel konuşmalarınız, belleğiniz ve sağlayıcı ayarlarınız bu cihazda users/{profileId} konumunda kalır. Geri dönmek için oturumu kapatın ve Hoş Geldiniz ekranında yerel oturumu seçin.',
+ 'auth.profileSwitch.body':
+ 'Bulut oturumu açıldığında OpenHuman ayrı bir hesap profiline geçer. Yerel konuşmalarınız, belleğiniz ve sağlayıcı ayarlarınız bu cihazda users/{profileId} konumunda kalır. Geri dönmek için oturumu kapatın ve Hoş Geldiniz ekranında yerel oturumu seçin.',
'auth.profileSwitch.continue': 'Oturum açmaya devam et',
'welcome.localSessionStarting': 'Yerel oturum başlatılıyor...',
'welcome.coreConfigUnreadable':
diff --git a/app/src/lib/i18n/zh-CN.ts b/app/src/lib/i18n/zh-CN.ts
index f957c27a69..91fce098c8 100644
--- a/app/src/lib/i18n/zh-CN.ts
+++ b/app/src/lib/i18n/zh-CN.ts
@@ -1645,7 +1645,8 @@ const messages: TranslationMap = {
'about.update.status.default': '检查更新',
'welcome.continueLocallyExperimental': '本地继续(实验性)',
'auth.profileSwitch.title': '使用单独的个人资料登录?',
- 'auth.profileSwitch.body': '云端登录会将 OpenHuman 切换到单独的账户资料。您的本地对话、记忆和提供商设置仍保存在此设备的 users/{profileId} 中。要返回这些数据,请先退出登录,然后在欢迎界面选择本地会话。',
+ 'auth.profileSwitch.body':
+ '云端登录会将 OpenHuman 切换到单独的账户资料。您的本地对话、记忆和提供商设置仍保存在此设备的 users/{profileId} 中。要返回这些数据,请先退出登录,然后在欢迎界面选择本地会话。',
'auth.profileSwitch.continue': '继续登录',
'welcome.localSessionStarting': '正在启动本地会话...',
'welcome.coreConfigUnreadable':
diff --git a/app/src/pages/Welcome.tsx b/app/src/pages/Welcome.tsx
index d1119892e3..4b85e7f8b5 100644
--- a/app/src/pages/Welcome.tsx
+++ b/app/src/pages/Welcome.tsx
@@ -11,7 +11,6 @@ import { useCoreState } from '../providers/CoreStateProvider';
import { clearBackendUrlCache } from '../services/backendUrl';
import { clearCoreRpcTokenCache, clearCoreRpcUrlCache } from '../services/coreRpcClient';
import { resetCoreMode } from '../store/coreModeSlice';
-import { getActiveUserId } from '../store/userScopedStorage';
import {
endAwaitingAuthCallback,
getDeepLinkAuthState,
@@ -19,6 +18,7 @@ import {
} from '../store/deepLinkAuthState';
import { useAppDispatch, useAppSelector } from '../store/hooks';
import { resolveTheme, setThemeMode, type ThemeMode } from '../store/themeSlice';
+import { getActiveUserId } from '../store/userScopedStorage';
import { clearAllAppData } from '../utils/clearAllAppData';
import { clearStoredCoreMode, clearStoredCoreToken, storeRpcUrl } from '../utils/configPersistence';
import {