Skip to content

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

fix(connectivity): show a hosted link that stopped on an unusable session

Shanu4597ea0302bd
diff --git a/app/src/components/ConnectionIndicator.tsx b/app/src/components/ConnectionIndicator.tsx
index c4a8ca9bfb..37465ef340 100644
--- a/app/src/components/ConnectionIndicator.tsx
+++ b/app/src/components/ConnectionIndicator.tsx
@@ -86,6 +86,16 @@ const ConnectionIndicator = ({
: t('app.connectionIndicator.reconnecting'),
pulse: false,
};
+ case 'hosted-stopped':
+ // The core's loop stopped for good on an unusable session: nothing is
+ // retrying, so no "reconnecting" wording — the Home copy says to sign
+ // in again (#6270).
+ return {
+ color: 'bg-amber-500',
+ textColor: 'text-amber-500',
+ text: t('app.connectionIndicator.disconnected'),
+ pulse: false,
+ };
}
})();
diff --git a/app/src/components/__tests__/ConnectionIndicator.test.tsx b/app/src/components/__tests__/ConnectionIndicator.test.tsx
index d06b5de7d6..f5deddc04f 100644
--- a/app/src/components/__tests__/ConnectionIndicator.test.tsx
+++ b/app/src/components/__tests__/ConnectionIndicator.test.tsx
@@ -111,6 +111,23 @@ describe('ConnectionIndicator', () => {
expect(container.querySelector('.animate-pulse')).toBeNull();
});
+ it("shows an amber dot and 'Disconnected' when the core's loop stopped on an unusable session", () => {
+ const { container } = renderWithProviders(<ConnectionIndicator />, {
+ preloadedState: {
+ connectivity: {
+ internet: 'online',
+ core: 'reachable',
+ backend: 'connected',
+ hosted: 'stopped',
+ lastError: { hosted: 'session expired — please sign in again' },
+ },
+ socket: { byUser: {} },
+ },
+ });
+ expect(screen.getByText('Disconnected')).toBeInTheDocument();
+ expect(container.querySelector('.bg-amber-500')).not.toBeNull();
+ });
+
it('stays green on a server error event, which leaves the hosted link live', () => {
const { container } = renderWithProviders(<ConnectionIndicator />, {
preloadedState: {
diff --git a/app/src/components/chat/ChatNewWindowHero.tsx b/app/src/components/chat/ChatNewWindowHero.tsx
index 18dd61d447..2f18d3b10d 100644
--- a/app/src/components/chat/ChatNewWindowHero.tsx
+++ b/app/src/components/chat/ChatNewWindowHero.tsx
@@ -48,6 +48,7 @@ export default function ChatNewWindowHero() {
ok: t('home.statusOk'),
'backend-only': t('home.statusBackendOnly'),
'hosted-degraded': t('home.statusHostedDegraded'),
+ 'hosted-stopped': t('home.statusHostedStopped'),
'core-unreachable': t('home.statusCoreUnreachable'),
'internet-offline': t('home.statusInternetOffline'),
}[blocking];
diff --git a/app/src/lib/i18n/ar.ts b/app/src/lib/i18n/ar.ts
index d2153472d3..19a3d8f21a 100644
--- a/app/src/lib/i18n/ar.ts
+++ b/app/src/lib/i18n/ar.ts
@@ -641,6 +641,8 @@ const messages: TranslationMap = {
'home.statusBackendOnly': 'جارٍ إعادة الاتصال بالخادم… سيتوفر وكيلك قريبًا.',
'home.statusHostedDegraded':
'جارٍ إعادة الاتصال بالسحابة… تستمر المحادثة في العمل؛ وستُستأنف عمليات التكامل والقنوات فور عودة الاتصال.',
+ 'home.statusHostedStopped':
+ 'توقف الاتصال بالسحابة: سجّل الدخول مرة أخرى لاستئناف عمليات التكامل والقنوات. تستمر المحادثة في العمل.',
'home.statusCoreUnreachable':
'العملية الأساسية المحلية لا تستجيب. قد تكون عملية OpenHuman في الخلفية قد تعطلت أو فشلت في البدء.',
'home.statusInternetOffline':
diff --git a/app/src/lib/i18n/bn.ts b/app/src/lib/i18n/bn.ts
index 0f064c0859..63da7e1515 100644
--- a/app/src/lib/i18n/bn.ts
+++ b/app/src/lib/i18n/bn.ts
@@ -656,6 +656,8 @@ const messages: TranslationMap = {
'home.statusBackendOnly': 'ব্যাকএন্ডে পুনরায় সংযোগ হচ্ছে… আপনার এজেন্ট শীঘ্রই আবার পাওয়া যাবে।',
'home.statusHostedDegraded':
'ক্লাউডের সাথে পুনরায় সংযোগ করা হচ্ছে… চ্যাট চালু থাকবে; সংযোগ ফিরে এলেই ইন্টিগ্রেশন ও চ্যানেল আবার কাজ করবে।',
+ 'home.statusHostedStopped':
+ 'ক্লাউড সংযোগ বন্ধ হয়ে গেছে: ইন্টিগ্রেশন ও চ্যানেল আবার চালু করতে পুনরায় সাইন ইন করুন। চ্যাট চালু থাকবে।',
'home.statusCoreUnreachable':
'লোকাল কোর সাইডকার সাড়া দিচ্ছে না। OpenHuman ব্যাকগ্রাউন্ড প্রসেস ক্র্যাশ হয়েছে বা শুরু হয়নি।',
'home.statusInternetOffline':
diff --git a/app/src/lib/i18n/de.ts b/app/src/lib/i18n/de.ts
index 31bb7ed89e..d5a5b972b4 100644
--- a/app/src/lib/i18n/de.ts
+++ b/app/src/lib/i18n/de.ts
@@ -687,6 +687,8 @@ const messages: TranslationMap = {
'Verbindung zum Backend wird wiederhergestellt. Dein Agent wird in Kürze wieder verfügbar sein.',
'home.statusHostedDegraded':
'Verbindung zur Cloud wird wiederhergestellt… Der Chat funktioniert weiter; Integrationen und Kanäle laufen weiter, sobald sie wieder da ist.',
+ 'home.statusHostedStopped':
+ 'Die Cloud-Verbindung wurde beendet: Melde dich erneut an, um Integrationen und Kanäle wieder zu aktivieren. Der Chat funktioniert weiter.',
'home.statusCoreUnreachable':
'Der lokale Core-Sidecar reagiert nicht. Der Hintergrundprozess OpenHuman ist möglicherweise abgestürzt oder konnte nicht gestartet werden.',
'home.statusInternetOffline':
diff --git a/app/src/lib/i18n/en.ts b/app/src/lib/i18n/en.ts
index abab0a8c20..d6391e1025 100644
--- a/app/src/lib/i18n/en.ts
+++ b/app/src/lib/i18n/en.ts
@@ -480,6 +480,8 @@ const en: TranslationMap = {
'home.statusBackendOnly': 'Reconnecting to backend… your agent will be available again shortly.',
'home.statusHostedDegraded':
"Reconnecting to the cloud… chat keeps working; integrations and channels resume once it's back.",
+ 'home.statusHostedStopped':
+ 'The cloud link has stopped: sign in again to resume integrations and channels. Chat keeps working.',
'home.statusCoreUnreachable':
"The OpenHuman core isn't responding. The background process may have crashed or failed to start.",
'home.statusInternetOffline':
diff --git a/app/src/lib/i18n/es.ts b/app/src/lib/i18n/es.ts
index 863b3d0686..b642378fcb 100644
--- a/app/src/lib/i18n/es.ts
+++ b/app/src/lib/i18n/es.ts
@@ -676,6 +676,8 @@ const messages: TranslationMap = {
'Reconectando al backend… tu agente estará disponible nuevamente en breve.',
'home.statusHostedDegraded':
'Reconectando con la nube… el chat sigue funcionando; las integraciones y los canales se reanudarán en cuanto vuelva.',
+ 'home.statusHostedStopped':
+ 'La conexión con la nube se detuvo: inicia sesión de nuevo para reanudar las integraciones y los canales. El chat sigue funcionando.',
'home.statusCoreUnreachable':
'El proceso en segundo plano de OpenHuman no responde. Es posible que haya fallado o no haya podido iniciarse.',
'home.statusInternetOffline':
diff --git a/app/src/lib/i18n/fr.ts b/app/src/lib/i18n/fr.ts
index 193b23b7ca..0d79a03342 100644
--- a/app/src/lib/i18n/fr.ts
+++ b/app/src/lib/i18n/fr.ts
@@ -687,6 +687,8 @@ const messages: TranslationMap = {
'Reconnexion au backend… ton agent sera de nouveau disponible dans quelques instants.',
'home.statusHostedDegraded':
'Reconnexion au cloud… le chat continue de fonctionner ; les intégrations et les canaux reprendront dès son retour.',
+ 'home.statusHostedStopped':
+ "La liaison cloud s'est arrêtée : reconnecte-toi pour réactiver les intégrations et les canaux. Le chat continue de fonctionner.",
'home.statusCoreUnreachable':
"Le processus local OpenHuman ne répond pas. Il a peut-être planté ou n'a pas démarré correctement.",
'home.statusInternetOffline':
diff --git a/app/src/lib/i18n/hi.ts b/app/src/lib/i18n/hi.ts
index a75b336f3e..27c2620d1a 100644
--- a/app/src/lib/i18n/hi.ts
+++ b/app/src/lib/i18n/hi.ts
@@ -657,6 +657,8 @@ const messages: TranslationMap = {
'home.statusBackendOnly': 'बैकएंड से फिर से जुड़ रहे हैं… आपका एजेंट जल्द ही उपलब्ध होगा।',
'home.statusHostedDegraded':
'क्लाउड से दोबारा कनेक्ट हो रहा है… चैट काम करती रहेगी; कनेक्शन लौटते ही इंटीग्रेशन और चैनल फिर से चालू हो जाएंगे।',
+ 'home.statusHostedStopped':
+ 'क्लाउड कनेक्शन रुक गया है: इंटीग्रेशन और चैनल फिर से चालू करने के लिए दोबारा साइन इन करें। चैट काम करती रहेगी।',
'home.statusCoreUnreachable':
'लोकल कोर साइडकार रिस्पॉन्ड नहीं कर रहा। OpenHuman का बैकग्राउंड प्रोसेस क्रैश हो गया होगा या शुरू नहीं हो पाया।',
'home.statusInternetOffline':
diff --git a/app/src/lib/i18n/id.ts b/app/src/lib/i18n/id.ts
index fc9f5801ea..f5f3fab69e 100644
--- a/app/src/lib/i18n/id.ts
+++ b/app/src/lib/i18n/id.ts
@@ -666,6 +666,8 @@ const messages: TranslationMap = {
'Menghubungkan ulang ke backend... agen Anda akan segera tersedia lagi.',
'home.statusHostedDegraded':
'Menyambung kembali ke cloud… obrolan tetap berjalan; integrasi dan kanal akan berlanjut begitu koneksi kembali.',
+ 'home.statusHostedStopped':
+ 'Koneksi cloud terhenti: masuk kembali untuk melanjutkan integrasi dan kanal. Obrolan tetap berjalan.',
'home.statusCoreUnreachable':
'Core sidecar lokal tidak merespons. Proses latar OpenHuman mungkin crash atau gagal dimulai.',
'home.statusInternetOffline':
diff --git a/app/src/lib/i18n/it.ts b/app/src/lib/i18n/it.ts
index 6705446b1c..5aab7d099e 100644
--- a/app/src/lib/i18n/it.ts
+++ b/app/src/lib/i18n/it.ts
@@ -678,6 +678,8 @@ const messages: TranslationMap = {
'home.statusBackendOnly': 'Riconnessione al backend… il tuo agente sarà disponibile a breve.',
'home.statusHostedDegraded':
'Riconnessione al cloud… la chat continua a funzionare; integrazioni e canali riprenderanno appena tornerà disponibile.',
+ 'home.statusHostedStopped':
+ 'Il collegamento al cloud si è interrotto: accedi di nuovo per riattivare integrazioni e canali. La chat continua a funzionare.',
'home.statusCoreUnreachable':
'Il sidecar core locale non risponde. Il processo in background di OpenHuman potrebbe essersi bloccato o non essere partito.',
'home.statusInternetOffline':
diff --git a/app/src/lib/i18n/ko.ts b/app/src/lib/i18n/ko.ts
index 5516fb5e19..aea323650c 100644
--- a/app/src/lib/i18n/ko.ts
+++ b/app/src/lib/i18n/ko.ts
@@ -650,6 +650,8 @@ const messages: TranslationMap = {
'백엔드에 다시 연결하는 중입니다… 곧 에이전트를 다시 사용할 수 있습니다.',
'home.statusHostedDegraded':
'클라우드에 다시 연결하는 중… 채팅은 계속 사용할 수 있으며, 연결이 복구되면 통합과 채널이 다시 동작합니다.',
+ 'home.statusHostedStopped':
+ '클라우드 연결이 중단되었습니다. 통합과 채널을 다시 사용하려면 다시 로그인하세요. 채팅은 계속 사용할 수 있습니다.',
'home.statusCoreUnreachable':
'로컬 코어 사이드카가 응답하지 않습니다. OpenHuman 백그라운드 프로세스가 중단되었거나 시작하지 못했을 수 있습니다.',
'home.statusInternetOffline':
diff --git a/app/src/lib/i18n/pl.ts b/app/src/lib/i18n/pl.ts
index 12346d801a..c9980b44e6 100644
--- a/app/src/lib/i18n/pl.ts
+++ b/app/src/lib/i18n/pl.ts
@@ -672,6 +672,8 @@ const messages: TranslationMap = {
'Ponowne łączenie z backendem… Twój agent będzie dostępny ponownie za chwilę.',
'home.statusHostedDegraded':
'Ponowne łączenie z chmurą… czat nadal działa; integracje i kanały wznowią się, gdy tylko połączenie wróci.',
+ 'home.statusHostedStopped':
+ 'Połączenie z chmurą zostało zatrzymane: zaloguj się ponownie, aby wznowić integracje i kanały. Czat nadal działa.',
'home.statusCoreUnreachable':
'Rdzeń OpenHuman nie odpowiada. Proces w tle mógł ulec awarii lub nie uruchomić się.',
'home.statusInternetOffline':
diff --git a/app/src/lib/i18n/pt.ts b/app/src/lib/i18n/pt.ts
index 7b6013bf69..0a079c3fa1 100644
--- a/app/src/lib/i18n/pt.ts
+++ b/app/src/lib/i18n/pt.ts
@@ -674,6 +674,8 @@ const messages: TranslationMap = {
'Reconectando ao backend… seu agente estará disponível novamente em breve.',
'home.statusHostedDegraded':
'Reconectando à nuvem… o chat continua funcionando; integrações e canais voltam assim que ela retornar.',
+ 'home.statusHostedStopped':
+ 'A conexão com a nuvem parou: entre novamente para retomar integrações e canais. O chat continua funcionando.',
'home.statusCoreUnreachable':
'O processo em segundo plano do OpenHuman não está respondendo. Ele pode ter travado ou falhado ao iniciar.',
'home.statusInternetOffline':
diff --git a/app/src/lib/i18n/ru.ts b/app/src/lib/i18n/ru.ts
index 203eee5336..e04dcab260 100644
--- a/app/src/lib/i18n/ru.ts
+++ b/app/src/lib/i18n/ru.ts
@@ -666,6 +666,8 @@ const messages: TranslationMap = {
'home.statusBackendOnly': 'Переподключение к серверу… агент скоро снова будет доступен.',
'home.statusHostedDegraded':
'Переподключение к облаку… чат продолжает работать; интеграции и каналы возобновятся, как только связь восстановится.',
+ 'home.statusHostedStopped':
+ 'Связь с облаком остановлена: войдите снова, чтобы возобновить интеграции и каналы. Чат продолжает работать.',
'home.statusCoreUnreachable':
'Локальный процесс OpenHuman не отвечает. Возможно, он завис или не запустился.',
'home.statusInternetOffline':
diff --git a/app/src/lib/i18n/zh-CN.ts b/app/src/lib/i18n/zh-CN.ts
index a980c6d997..23c8667243 100644
--- a/app/src/lib/i18n/zh-CN.ts
+++ b/app/src/lib/i18n/zh-CN.ts
@@ -614,6 +614,7 @@ const messages: TranslationMap = {
'home.statusBackendOnly': '正在重新连接后端…你的智能体很快将再次可用。',
'home.statusHostedDegraded':
'正在重新连接云端…聊天仍可正常使用;连接恢复后,集成和频道将继续工作。',
+ 'home.statusHostedStopped': '云端连接已停止:请重新登录以恢复集成和频道。聊天仍可正常使用。',
'home.statusCoreUnreachable': '本地核心 sidecar 无响应。OpenHuman 后台进程可能已崩溃或未能启动。',
'home.statusInternetOffline': '你的设备当前处于离线状态。请检查网络或重启应用以重新连接。',
'home.restartCore': '重启核心',
diff --git a/app/src/pages/Home.tsx b/app/src/pages/Home.tsx
index e7fa823f2d..a7566782b8 100644
--- a/app/src/pages/Home.tsx
+++ b/app/src/pages/Home.tsx
@@ -65,6 +65,7 @@ const Home = () => {
ok: t('home.statusOk'),
'backend-only': t('home.statusBackendOnly'),
'hosted-degraded': t('home.statusHostedDegraded'),
+ 'hosted-stopped': t('home.statusHostedStopped'),
'core-unreachable': t('home.statusCoreUnreachable'),
'internet-offline': t('home.statusInternetOffline'),
}[blocking];
diff --git a/app/src/services/__tests__/coreHealthMonitor.test.ts b/app/src/services/__tests__/coreHealthMonitor.test.ts
index 810b3971e5..a68bd98aa1 100644
--- a/app/src/services/__tests__/coreHealthMonitor.test.ts
+++ b/app/src/services/__tests__/coreHealthMonitor.test.ts
@@ -310,6 +310,34 @@ describe('hostedStateFromDiag', () => {
expect(hostedStateFromDiag({ socket_state: 'disconnected' })).toEqual({ value: 'unknown' });
});
+ it('reports a loop that stopped on an unusable session as stopped, with its reason (#6270)', async () => {
+ const { hostedStateFromDiag } = await import('../coreHealthMonitor');
+ expect(
+ hostedStateFromDiag({
+ socket_state: 'disconnected',
+ socket_loop_active: false,
+ socket_loop_stopped_on_failure: true,
+ last_ws_error: 'session expired — please sign in again',
+ })
+ ).toEqual({ value: 'stopped', error: 'session expired — please sign in again' });
+ // A loop that is not running for any other reason is still not an outage.
+ expect(
+ hostedStateFromDiag({
+ socket_state: 'disconnected',
+ socket_loop_active: false,
+ socket_loop_stopped_on_failure: false,
+ })
+ ).toEqual({ value: 'unknown' });
+ // The failure flag only means something while the loop is not running.
+ expect(
+ hostedStateFromDiag({
+ socket_state: 'connected',
+ socket_loop_active: true,
+ socket_loop_stopped_on_failure: true,
+ })
+ ).toEqual({ value: 'connected' });
+ });
+
it('peels the handler envelope and the log envelope the RPC layer adds (#6080)', async () => {
const { hostedStateFromDiag } = await import('../coreHealthMonitor');
// Bare handler answer.
diff --git a/app/src/services/coreHealthMonitor.ts b/app/src/services/coreHealthMonitor.ts
index 61311f29d6..1b854103e6 100644
--- a/app/src/services/coreHealthMonitor.ts
+++ b/app/src/services/coreHealthMonitor.ts
@@ -63,11 +63,14 @@ function unwrapDiag(reply: unknown): Record<string, unknown> {
*
* The core says whether anyone is retrying: `socket_loop_active` is `false`
* when its reconnect loop is not running (never connected, signed out, local
- * session, stopped after a terminal failure), and that is `unknown` here — not
- * an outage — whatever `socket_state` says. While the loop is alive the status
- * passes through verbatim, including `disconnected`, which then means the
- * server closed the Socket.IO namespace on a transport it left open. A reply
- * with no `socket_state` is `unknown` too.
+ * session), and that is `unknown` here — not an outage — whatever
+ * `socket_state` says. The one exception is a loop that stopped for good on
+ * an unusable session (`socket_loop_stopped_on_failure`), which is `stopped`:
+ * integrations and channels are off until the user signs in again, and the
+ * chip must say so. While the loop is alive the status passes through
+ * verbatim, including `disconnected`, which then means the server closed the
+ * Socket.IO namespace on a transport it left open. A reply with no
+ * `socket_state` is `unknown` too.
*
* A core that predates `socket_loop_active` cannot say who is retrying, so
* its `disconnected` — most often a loop that is not running — stays
@@ -78,10 +81,12 @@ export function hostedStateFromDiag(reply: unknown): { value: HostedState; error
const record = unwrapDiag(reply);
const socketState = record.socket_state;
const loopActive = record.socket_loop_active;
+ const stoppedOnFailure = record.socket_loop_stopped_on_failure;
const lastError = record.last_ws_error;
let value: HostedState = 'unknown';
- if (
- loopActive !== false &&
+ if (loopActive === false) {
+ if (stoppedOnFailure === true) value = 'stopped';
+ } else if (
typeof socketState === 'string' &&
HOSTED_STATES.has(socketState) &&
!(loopActive === undefined && socketState === 'disconnected')
diff --git a/app/src/store/__tests__/connectivitySelectors.test.ts b/app/src/store/__tests__/connectivitySelectors.test.ts
index 2a47e57413..d28fcb3a4b 100644
--- a/app/src/store/__tests__/connectivitySelectors.test.ts
+++ b/app/src/store/__tests__/connectivitySelectors.test.ts
@@ -47,6 +47,14 @@ describe('selectBlockingState', () => {
expect(selectBlockingState(make({ hosted: 'disconnected' }))).toBe('hosted-degraded');
});
+ it('reports hosted-stopped when the core loop exited on an unusable session (#6270)', () => {
+ expect(selectBlockingState(make({ hosted: 'stopped' }))).toBe('hosted-stopped');
+ // Still below every other channel.
+ expect(selectBlockingState(make({ backend: 'disconnected', hosted: 'stopped' }))).toBe(
+ 'backend-only'
+ );
+ });
+
it('does not read a server error event on a live link as an outage', () => {
// The core keeps the transport open and emits keep working after a server
// `error` event, so "reconnecting" copy would be wrong here.
@@ -80,6 +88,7 @@ describe('isHostedDegraded', () => {
expect(isHostedDegraded('connecting')).toBe(true);
expect(isHostedDegraded('reconnecting')).toBe(true);
expect(isHostedDegraded('disconnected')).toBe(true);
+ expect(isHostedDegraded('stopped')).toBe(true);
expect(isHostedDegraded('error')).toBe(false);
expect(isHostedDegraded('connected')).toBe(false);
expect(isHostedDegraded('unknown')).toBe(false);
diff --git a/app/src/store/__tests__/connectivitySlice.test.ts b/app/src/store/__tests__/connectivitySlice.test.ts
index 0afdd1e827..b83e790f2e 100644
--- a/app/src/store/__tests__/connectivitySlice.test.ts
+++ b/app/src/store/__tests__/connectivitySlice.test.ts
@@ -89,6 +89,14 @@ describe('connectivitySlice', () => {
expect(state.hosted).toBe('disconnected');
expect(state.lastError.hosted).toBe('io server disconnect');
+ // A loop that stopped for good keeps its user-visible reason too.
+ state = connectivityReducer(
+ state,
+ setHosted({ value: 'stopped', error: 'session expired — please sign in again' })
+ );
+ expect(state.hosted).toBe('stopped');
+ expect(state.lastError.hosted).toBe('session expired — please sign in again');
+
// Recovery clears it…
state = connectivityReducer(state, setHosted({ value: 'connected' }));
expect(state.hosted).toBe('connected');
diff --git a/app/src/store/connectivitySelectors.ts b/app/src/store/connectivitySelectors.ts
index 37507b8a42..49d2c71f47 100644
--- a/app/src/store/connectivitySelectors.ts
+++ b/app/src/store/connectivitySelectors.ts
@@ -16,6 +16,9 @@ import { RootState } from './index';
* (it rides the local core bridge); webhooks, Composio
* triggers, managed-DM routing and hosted-brain runs
* pause until it heals. Soft chip only (#6256).
+ * - `hosted-stopped` : that loop exited for good because the stored session
+ * is unusable; nothing resumes until the user signs in
+ * again. Same soft chip, different copy (#6270).
* - `ok` : everything healthy.
*/
type BlockingState =
@@ -23,19 +26,23 @@ type BlockingState =
| 'core-unreachable'
| 'backend-only'
| 'hosted-degraded'
+ | 'hosted-stopped'
| 'ok';
/**
- * A hosted link that is down while the core's loop is alive: being retried
- * (`connecting` / `reconnecting`), or its Socket.IO namespace closed by the
- * server (`disconnected`). Two states are deliberately excluded: `unknown`,
- * the loop not running at all (signed out, local session, early boot) — the
- * absence of a link, not an outage — and `error`, a server `error` event on a
- * transport that stays live and keeps emitting, which is not a reconnect and
- * must not read as one.
+ * A hosted link that is down: being retried (`connecting` / `reconnecting`),
+ * its Socket.IO namespace closed by the server (`disconnected`), or its loop
+ * stopped for good on an unusable session (`stopped`). Two states are
+ * deliberately excluded: `unknown`, the loop not running at all (signed out,
+ * local session, early boot) — the absence of a link, not an outage — and
+ * `error`, a server `error` event on a transport that stays live and keeps
+ * emitting, which is not a reconnect and must not read as one.
*/
export const isHostedDegraded = (hosted: HostedState | undefined): boolean =>
- hosted === 'connecting' || hosted === 'reconnecting' || hosted === 'disconnected';
+ hosted === 'connecting' ||
+ hosted === 'reconnecting' ||
+ hosted === 'disconnected' ||
+ hosted === 'stopped';
export const selectBlockingState = (s: RootState): BlockingState => {
if (s.connectivity.internet === 'offline') return 'internet-offline';
@@ -43,6 +50,7 @@ export const selectBlockingState = (s: RootState): BlockingState => {
if (s.connectivity.backend === 'disconnected' || s.connectivity.backend === 'connecting') {
return 'backend-only';
}
+ if (s.connectivity.hosted === 'stopped') return 'hosted-stopped';
if (isHostedDegraded(s.connectivity.hosted)) return 'hosted-degraded';
return 'ok';
};
diff --git a/app/src/store/connectivitySlice.ts b/app/src/store/connectivitySlice.ts
index 4afe3c0a0f..a679b39b21 100644
--- a/app/src/store/connectivitySlice.ts
+++ b/app/src/store/connectivitySlice.ts
@@ -38,6 +38,10 @@ export type BackendState = 'connected' | 'disconnected' | 'connecting';
* - `error` — the server sent an `error` event on a transport that stays
* live and keeps emitting; not an outage, so it gets no chip until it has
* its own presentation. Stored so the state is observable.
+ * - `stopped` — the loop exited for good because the stored session is
+ * unusable (no token, or the backend rejected it and nothing fresher
+ * existed): `socket_loop_stopped_on_failure`. Integrations and channels
+ * stay off until the user signs in again (degraded, with its own copy).
*/
export type HostedState =
| 'connected'
@@ -45,6 +49,7 @@ export type HostedState =
| 'reconnecting'
| 'disconnected'
| 'error'
+ | 'stopped'
| 'unknown';
export interface ConnectivityState {
diff --git a/crates/openhuman-core/src/platform/connectivity/README.md b/crates/openhuman-core/src/platform/connectivity/README.md
index 7b2ef05acf..cc6214685b 100644
--- a/crates/openhuman-core/src/platform/connectivity/README.md
+++ b/crates/openhuman-core/src/platform/connectivity/README.md
@@ -24,7 +24,7 @@ Diagnostics for the local core's reachability and the live backend Socket.IO sta
- `connectivity::all_connectivity_controller_schemas()` / `all_connectivity_registered_controllers()` — registry entry points (re-exported from `schemas.rs`).
- `connectivity::ops::is_port_in_use(port: u16) -> bool`.
-- `connectivity::rpc::ConnectivityDiagResponse` — serialized diag payload (`socket_state`, `last_ws_error`, `sidecar_pid`, `listen_port`, `listen_port_in_use`).
+- `connectivity::rpc::ConnectivityDiagResponse` — serialized diag payload (`socket_state`, `last_ws_error`, `socket_loop_active`, `socket_loop_stopped_on_failure`, `sidecar_pid`, `listen_port`, `listen_port_in_use`). The two booleans are the core's own statement of whether its backend reconnect loop is running and, if not, whether it stopped on a terminal failure (no usable session token); the frontend's connectivity chip keys "no link wanted" vs "down, retrying" vs "stopped, sign in again" off them rather than inferring liveness from `socket_state` (#6256, #6270).
- `connectivity::rpc::snapshot() -> ConnectivityDiagResponse` and `connectivity::rpc::diag() -> Result<RpcOutcome<Value>, String>`.
- `connectivity::rpc::pick_listen_port(preferred)` / `pick_listen_port_for_host(host, preferred)` → `Result<PickListenPortResult, PickListenPortError>`.
- `connectivity::rpc::PickListenPortResult` (`listener`, `port`, `fallback_from`) and `PickListenPortError` (`WouldTakeOver` / `NoAvailablePort` / `BindFailed`).
diff --git a/crates/openhuman-core/src/platform/connectivity/rpc.rs b/crates/openhuman-core/src/platform/connectivity/rpc.rs
index 1b0cb01c4a..7170b8c336 100644
--- a/crates/openhuman-core/src/platform/connectivity/rpc.rs
+++ b/crates/openhuman-core/src/platform/connectivity/rpc.rs
@@ -44,6 +44,13 @@ pub struct ConnectivityDiagResponse {
/// Socket.IO namespace the server closed (#6256). `false` when the
/// SocketManager is not bootstrapped.
pub socket_loop_active: bool,
+ /// Whether that loop exited on a terminal failure — no usable session
+ /// token: the provider returned nothing or errored, or the backend
+ /// rejected the stored token and nothing fresher existed. Only meaningful
+ /// while `socket_loop_active` is `false`; it lets the frontend show a link
+ /// that stopped for good ("sign in again") as an outage instead of the
+ /// absence of a link. Cleared by the next connect or disconnect (#6270).
+ pub socket_loop_stopped_on_failure: bool,
/// Sidecar process id — i.e. the PID of *this* core binary handling the
/// RPC. The frontend matches this against the PID it started so it can
/// detect a stale-process scenario where the bound port belongs to an
@@ -468,10 +475,11 @@ fn resolve_listen_port() -> u16 {
DEFAULT_CORE_PORT
}
-/// Snapshot the backend socket state as `(status, last error, loop active)`.
-/// Returns `("uninitialized", None, false)` when the SocketManager singleton
-/// hasn't been registered yet — typical during early startup or in unit tests.
-fn snapshot_socket_state() -> (String, Option<String>, bool) {
+/// Snapshot the backend socket state as `(status, last error, loop active,
+/// loop stopped on failure)`. Returns `("uninitialized", None, false, false)`
+/// when the SocketManager singleton hasn't been registered yet — typical
+/// during early startup or in unit tests.
+fn snapshot_socket_state() -> (String, Option<String>, bool, bool) {
match global_socket_manager() {
Some(mgr) => {
let state = mgr.get_state();
@@ -483,9 +491,14 @@ fn snapshot_socket_state() -> (String, Option<String>, bool) {
.ok()
.and_then(|v| v.as_str().map(String::from))
.unwrap_or_else(|| "unknown".to_string());
- (status_value, state.error, mgr.is_loop_active())
+ (
+ status_value,
+ state.error,
+ mgr.is_loop_active(),
+ mgr.loop_stopped_on_failure(),
+ )
}
- None => ("uninitialized".to_string(), None, false),
+ None => ("uninitialized".to_string(), None, false, false),
}
}
@@ -494,13 +507,15 @@ fn snapshot_socket_state() -> (String, Option<String>, bool) {
pub fn snapshot() -> ConnectivityDiagResponse {
let listen_port = resolve_listen_port();
let listen_port_in_use = is_port_in_use(listen_port);
- let (socket_state, last_ws_error, socket_loop_active) = snapshot_socket_state();
+ let (socket_state, last_ws_error, socket_loop_active, socket_loop_stopped_on_failure) =
+ snapshot_socket_state();
let sidecar_pid = Some(std::process::id());
ConnectivityDiagResponse {
socket_state,
last_ws_error,
socket_loop_active,
+ socket_loop_stopped_on_failure,
sidecar_pid,
listen_port,
listen_port_in_use,
diff --git a/crates/openhuman-core/src/platform/connectivity/rpc_tests.rs b/crates/openhuman-core/src/platform/connectivity/rpc_tests.rs
index 259066b9f8..a884931646 100644
--- a/crates/openhuman-core/src/platform/connectivity/rpc_tests.rs
+++ b/crates/openhuman-core/src/platform/connectivity/rpc_tests.rs
@@ -323,10 +323,14 @@ fn snapshot_socket_state_is_uninitialized_without_manager() {
);
return;
}
- let (state, err, loop_active) = snapshot_socket_state();
+ let (state, err, loop_active, stopped_on_failure) = snapshot_socket_state();
assert_eq!(state, "uninitialized");
assert!(err.is_none());
assert!(!loop_active, "no manager means nobody is retrying");
+ assert!(
+ !stopped_on_failure,
+ "no manager means nothing has failed either"
+ );
}
#[test]
@@ -458,6 +462,12 @@ async fn diag_returns_serializable_payload() {
.is_some(),
"socket_loop_active must be a bool on the wire (#6256)"
);
+ assert!(
+ diag.get("socket_loop_stopped_on_failure")
+ .and_then(|v| v.as_bool())
+ .is_some(),
+ "socket_loop_stopped_on_failure must be a bool on the wire (#6270)"
+ );
assert!(diag.get("listen_port").is_some());
assert!(diag.get("listen_port_in_use").is_some());
}
diff --git a/crates/openhuman-core/src/platform/connectivity/schemas.rs b/crates/openhuman-core/src/platform/connectivity/schemas.rs
index 82a5589f40..4db52a839f 100644
--- a/crates/openhuman-core/src/platform/connectivity/schemas.rs
+++ b/crates/openhuman-core/src/platform/connectivity/schemas.rs
@@ -34,6 +34,7 @@ pub fn schemas(function: &str) -> ControllerSchema {
name: "diag",
ty: TypeSchema::Json,
comment: "Snapshot containing socket_state, last_ws_error, \
+ socket_loop_active, socket_loop_stopped_on_failure, \
sidecar_pid, listen_port, listen_port_in_use.",
required: true,
}],
diff --git a/crates/openhuman-core/src/platform/socket/README.md b/crates/openhuman-core/src/platform/socket/README.md
index 78fa3d46f0..6fbc2d1579 100644
--- a/crates/openhuman-core/src/platform/socket/README.md
+++ b/crates/openhuman-core/src/platform/socket/README.md
@@ -9,7 +9,7 @@ Persistent, Rust-native Socket.IO client to the OpenHuman backend. The `socket`
- Follow HTTP 3xx redirects during the upgrade (up to 3 hops) so a `http://`-configured `BACKEND_URL` behind a TLS-forcing edge connects cleanly; pin the resolved URL for subsequent reconnects and surface a one-shot "stale BACKEND_URL" warning for permanent redirects.
- Refresh the session token before every reconnect via a `TokenProvider` callback (live re-read of the profile store) instead of caching a single token — fixes the "Invalid token" retry storm (#2892 / TAURI-RUST-9C).
- Fast-fail on a definitively dead token (server "Invalid token" + no fresher token available) rather than burning the whole backoff budget.
-- Track connection status / socket id / last user-visible error / loop liveness (`SharedState::loop_active`, `SocketManager::is_loop_active`, surfaced as `connectivity_diag.socket_loop_active`) in shared state and expose it via RPC. Between attempts the loop reports `Reconnecting`; `Disconnected` means the loop is not running (signed out, session expired, shutdown), which is what the frontend's connectivity chip relies on to show "down, retrying" and stay quiet for "never wanted" (#6256).
+- Track connection status / socket id / last user-visible error / loop liveness (`SharedState::loop_active` + `loop_stopped_on_failure`, `SocketManager::is_loop_active` / `loop_stopped_on_failure`, surfaced as `connectivity_diag.socket_loop_active` / `socket_loop_stopped_on_failure`) in shared state and expose it via RPC. A loop that exits because no usable session token exists raises the failure flag so the frontend can say "sign in again" instead of showing nothing. Between attempts the loop reports `Reconnecting`; `Disconnected` means the loop is not running (signed out, session expired, shutdown), which is what the frontend's connectivity chip relies on to show "down, retrying" and stay quiet for "never wanted" (#6256).
- Parse inbound Socket.IO EVENT frames and publish them as `DomainEvent`s for other domains to consume; emit outbound events.
- Suppress reconnect-storm Sentry noise: route only the 5th consecutive failure through the observability classifier (which demotes offline/transport shapes to a breadcrumb), keep all other retries at `warn`.
diff --git a/crates/openhuman-core/src/platform/socket/event_handlers_tests.rs b/crates/openhuman-core/src/platform/socket/event_handlers_tests.rs
index 7f8fb3bad5..9eb9003afb 100644
--- a/crates/openhuman-core/src/platform/socket/event_handlers_tests.rs
+++ b/crates/openhuman-core/src/platform/socket/event_handlers_tests.rs
@@ -11,6 +11,7 @@ fn make_shared() -> Arc<SharedState> {
error: RwLock::new(None),
connection_identity: RwLock::new(None),
loop_active: std::sync::atomic::AtomicBool::new(false),
+ loop_stopped_on_failure: std::sync::atomic::AtomicBool::new(false),
})
}
diff --git a/crates/openhuman-core/src/platform/socket/manager.rs b/crates/openhuman-core/src/platform/socket/manager.rs
index b5a1cf6d8c..479c22a90e 100644
--- a/crates/openhuman-core/src/platform/socket/manager.rs
+++ b/crates/openhuman-core/src/platform/socket/manager.rs
@@ -77,6 +77,14 @@ pub(super) struct SharedState {
/// from `status`: `Disconnected` alone cannot tell a stopped loop from a
/// live transport whose Socket.IO namespace the server closed (#6256).
pub(super) loop_active: AtomicBool,
+ /// Whether the loop exited on a terminal failure: no usable session token
+ /// (provider returned nothing, or errored), or the backend rejected the
+ /// stored token and nothing fresher existed. Set by `ws_loop` on those exit
+ /// paths only, cleared by `spawn_loop` and `disconnect`. Reported by
+ /// `connectivity_diag` as `socket_loop_stopped_on_failure` so a link that
+ /// stopped for good shows as an outage ("sign in again") instead of
+ /// reading like a link that was never wanted (Codex review, #6270).
+ pub(super) loop_stopped_on_failure: AtomicBool,
}
/// The connection's readiness flag, guarded by a lock so a reader can hold the
@@ -200,6 +208,7 @@ impl SocketManager {
error: RwLock::new(None),
connection_identity: RwLock::new(None),
loop_active: AtomicBool::new(false),
+ loop_stopped_on_failure: AtomicBool::new(false),
}),
emit_tx: tokio::sync::Mutex::new(None),
shutdown_tx: tokio::sync::Mutex::new(None),
@@ -246,6 +255,14 @@ impl SocketManager {
self.shared.loop_active.load(Ordering::Acquire)
}
+ /// Whether the background loop stopped on a terminal failure (no usable
+ /// session token) — reported by `connectivity_diag` as
+ /// `socket_loop_stopped_on_failure`. Cleared by the next `connect` or
+ /// `disconnect`.
+ pub fn loop_stopped_on_failure(&self) -> bool {
+ self.shared.loop_stopped_on_failure.load(Ordering::Acquire)
+ }
+
/// True when a **live** connection is already serving exactly this `url`
/// under exactly this session token.
///
@@ -397,6 +414,9 @@ impl SocketManager {
// Raised here rather than inside the task so a `connectivity_diag`
// read racing the spawn cannot see `Connecting` with no loop behind it.
self.shared.loop_active.store(true, Ordering::Release);
+ self.shared
+ .loop_stopped_on_failure
+ .store(false, Ordering::Release);
let handle = tokio::spawn(async move {
ws_loop(
@@ -427,6 +447,9 @@ impl SocketManager {
terminate_loop(handle, Duration::from_secs(5)).await;
}
self.shared.loop_active.store(false, Ordering::Release);
+ self.shared
+ .loop_stopped_on_failure
+ .store(false, Ordering::Release);
*self.shared.status.write() = ConnectionStatus::Disconnected;
*self.shared.socket_id.write() = None;
*self.shared.error.write() = None;
diff --git a/crates/openhuman-core/src/platform/socket/manager_tests.rs b/crates/openhuman-core/src/platform/socket/manager_tests.rs
index b8207d5af9..68decaa478 100644
--- a/crates/openhuman-core/src/platform/socket/manager_tests.rs
+++ b/crates/openhuman-core/src/platform/socket/manager_tests.rs
@@ -385,6 +385,7 @@ fn emit_state_change_is_safe_to_call_on_empty_shared() {
error: RwLock::new(None),
connection_identity: RwLock::new(None),
loop_active: std::sync::atomic::AtomicBool::new(false),
+ loop_stopped_on_failure: std::sync::atomic::AtomicBool::new(false),
};
// Must not panic even with all default state.
emit_state_change(&shared);
@@ -400,6 +401,7 @@ fn emit_server_event_is_safe_without_subscribers() {
error: RwLock::new(None),
connection_identity: RwLock::new(None),
loop_active: std::sync::atomic::AtomicBool::new(false),
+ loop_stopped_on_failure: std::sync::atomic::AtomicBool::new(false),
};
// Pure logging — must not touch state or panic.
emit_server_event(&shared, "any.event", json!({}));
diff --git a/crates/openhuman-core/src/platform/socket/ws_loop/reconnect.rs b/crates/openhuman-core/src/platform/socket/ws_loop/reconnect.rs
index 60f9900c3a..9dcca032eb 100644
--- a/crates/openhuman-core/src/platform/socket/ws_loop/reconnect.rs
+++ b/crates/openhuman-core/src/platform/socket/ws_loop/reconnect.rs
@@ -70,6 +70,9 @@ pub(crate) async fn ws_loop(
// `spawn_loop` raises the flag before the task starts; a direct caller
// (tests) gets the same contract from here. The guard lowers it on exit.
shared.loop_active.store(true, Ordering::Release);
+ shared
+ .loop_stopped_on_failure
+ .store(false, Ordering::Release);
let _loop_active = LoopActiveGuard(&shared);
let mut backoff = Duration::from_millis(1000);
@@ -125,6 +128,9 @@ pub(crate) async fn ws_loop(
Ok(t) if !t.trim().is_empty() => t,
Ok(_) => {
log::warn!("[socket] ws_loop: token provider returned empty token — stopping");
+ shared
+ .loop_stopped_on_failure
+ .store(true, Ordering::Release);
*shared.error.write() =
Some("session expired — please sign in again".to_string());
*shared.status.write() = ConnectionStatus::Disconnected;
@@ -134,6 +140,9 @@ pub(crate) async fn ws_loop(
}
Err(e) => {
log::warn!("[socket] ws_loop: token provider failed — stopping: {e}");
+ shared
+ .loop_stopped_on_failure
+ .store(true, Ordering::Release);
*shared.error.write() =
Some("session expired — please sign in again".to_string());
*shared.status.write() = ConnectionStatus::Disconnected;
@@ -310,6 +319,9 @@ pub(crate) async fn ws_loop(
// on what is provably a dead token. This is the core fix
// for TAURI-RUST-9C (#2892).
log::warn!("[socket] Session expired ({reason}) — stopping reconnect loop");
+ shared
+ .loop_stopped_on_failure
+ .store(true, Ordering::Release);
*shared.error.write() =
Some("session expired — please sign in again".to_string());
*shared.status.write() = ConnectionStatus::Disconnected;
diff --git a/crates/openhuman-core/src/platform/socket/ws_loop_deadline_tests.rs b/crates/openhuman-core/src/platform/socket/ws_loop_deadline_tests.rs
index 8968e7ae8f..70f40202aa 100644
--- a/crates/openhuman-core/src/platform/socket/ws_loop_deadline_tests.rs
+++ b/crates/openhuman-core/src/platform/socket/ws_loop_deadline_tests.rs
@@ -131,6 +131,66 @@ async fn ws_loop_reports_reconnecting_between_attempts() {
.load(std::sync::atomic::Ordering::Acquire),
"loop_active must be lowered once the loop task has exited"
);
+ assert!(
+ !shared
+ .loop_stopped_on_failure
+ .load(std::sync::atomic::Ordering::Acquire),
+ "a requested shutdown is not a failure"
+ );
+}
+
+/// A loop that stops for good — the backend rejects the stored token and the
+/// provider has nothing fresher — lowers `loop_active` and raises
+/// `loop_stopped_on_failure`, so `connectivity_diag` can tell "stopped, sign
+/// in again" from "never wanted" (Codex review on #6270).
+#[tokio::test]
+async fn ws_loop_marks_a_terminal_stop_as_failure() {
+ let addr = spawn_mock_invalid_token_server().await;
+
+ let shared = make_shared();
+ *shared.status.write() = ConnectionStatus::Disconnected;
+ let (_emit_tx, emit_rx) = mpsc::unbounded_channel::<String>();
+ // Kept alive: a dropped sender would make `shutdown_rx.changed()` fire.
+ let (_shutdown_tx, shutdown_rx) = watch::channel(false);
+ let (internal_tx, _internal_rx) = mpsc::unbounded_channel::<String>();
+
+ let loop_shared = Arc::clone(&shared);
+ let handle = tokio::spawn(async move {
+ ws_loop(
+ http_base_for(addr),
+ static_token_provider("dead-token".to_string()),
+ loop_shared,
+ emit_rx,
+ shutdown_rx,
+ internal_tx,
+ Arc::new(Mutex::new(false)),
+ )
+ .await;
+ });
+
+ tokio::time::timeout(tokio::time::Duration::from_secs(10), handle)
+ .await
+ .expect("loop must stop on its own once the token is provably dead")
+ .expect("loop task must not panic");
+
+ assert_eq!(*shared.status.read(), ConnectionStatus::Disconnected);
+ assert!(!shared
+ .loop_active
+ .load(std::sync::atomic::Ordering::Acquire));
+ assert!(
+ shared
+ .loop_stopped_on_failure
+ .load(std::sync::atomic::Ordering::Acquire),
+ "a dead session token is a terminal failure"
+ );
+ assert!(
+ shared
+ .error
+ .read()
+ .as_deref()
+ .is_some_and(|e| e.contains("session expired")),
+ "the stop reason must be user-visible"
+ );
}
/// Spawn an EIO server that answers two connections and reports each client
diff --git a/crates/openhuman-core/src/platform/socket/ws_loop_tests.rs b/crates/openhuman-core/src/platform/socket/ws_loop_tests.rs
index 4ce6104a72..24547ba320 100644
--- a/crates/openhuman-core/src/platform/socket/ws_loop_tests.rs
+++ b/crates/openhuman-core/src/platform/socket/ws_loop_tests.rs
@@ -20,6 +20,7 @@ fn make_shared() -> Arc<SharedState> {
error: RwLock::new(None),
connection_identity: RwLock::new(None),
loop_active: std::sync::atomic::AtomicBool::new(false),
+ loop_stopped_on_failure: std::sync::atomic::AtomicBool::new(false),
})
}
diff --git a/docs/TEST-COVERAGE-MATRIX.md b/docs/TEST-COVERAGE-MATRIX.md
index f3810845a7..2de51d76de 100644
--- a/docs/TEST-COVERAGE-MATRIX.md
+++ b/docs/TEST-COVERAGE-MATRIX.md
@@ -312,7 +312,7 @@ End-to-end coverage of the agent harness via the web-chat RPC surface against an
| 7.2.4 | Exa BYOK search (direct API) | RU+RI+VU | `crates/openhuman-core/src/search/tools/exa_tests.rs`, `crates/openhuman-core/src/search/registry.rs`, `crates/openhuman-core/src/config/schema/tools/search.rs`, `tests/config_auth_app_state_connectivity_e2e.rs`, `app/src/components/settings/panels/SearchPanel.test.tsx` (#5137) | ✅ | `exa_search` / `exa_find_similar` / `exa_get_contents` post straight to api.exa.ai against a local stand-in; missing and 401 keys give distinct errors without echoing the response body; keyless Exa falls back to managed; key round-trips through the config RPC, secret encryption, and env overlay; panel asserts the needs-key badge and the exa.ai key link |
| 7.2.5 | Tavily BYOK search + extract (direct API) | RU+RI+VU | `crates/openhuman-core/src/search/tools/tavily_tests.rs`, `crates/openhuman-core/src/search/registry.rs`, `crates/openhuman-core/src/config/schema/tools/search.rs`, `crates/openhuman-core/src/config/ops_tests.rs` (`apply_search_settings_stores_and_clears_tavily_key`), `tests/config_auth_app_state_connectivity_e2e.rs`, `app/src/components/settings/panels/SearchPanel.test.tsx`, `app/src/utils/__tests__/toolTimelineFormatting.test.ts` | ✅ | `web_search_tool` / `tavily_search` / `tavily_extract` post straight to api.tavily.com with a Bearer key against a local stand-in; raw content, images, and the LLM answer render in markdown; missing and 401 keys give distinct errors without echoing the response body; batches over 20 URLs and keyless Tavily are rejected/fall back to managed; the `(via Tavily)` timeline marker is pinned; the panel asserts the needs-key badge and the tavily.com key link |
| 7.2.6 | Backend socket connect deadline + reconnect diagnostics | RU | `crates/openhuman-core/src/platform/socket/ws_loop_deadline_tests.rs` (`connect_with_redirects_times_out_when_upgrade_never_answers`, `connect_timeout_is_not_tighter_than_a_handshake_read`, `ws_loop_reports_reconnecting_between_attempts`, `ws_loop_reconnects_after_ping_deadline_on_a_silent_server`), `crates/openhuman-core/src/core/observability_error_classification_network_tests.rs` (`classifies_socket_connect_deadline_as_network_unreachable`) (#6256) | ✅ | One connect attempt (DNS + TCP + TLS + upgrade) is bounded at 10 s per redirect hop and fails as the `operation timed out` transport shape the Sentry classifier demotes; the loop reports `reconnecting` between attempts and `disconnected` only when stopped; the ping-timeout warning carries connection age / EIO pings received / frames sent, and a handshake after an outage logs `Reconnected after …` |
-| 7.2.7 | Connectivity chip — core↔hosted backend link | VU | `app/src/services/__tests__/coreHealthMonitor.test.ts`, `app/src/store/__tests__/connectivitySlice.test.ts`, `app/src/store/__tests__/connectivitySelectors.test.ts`, `app/src/components/__tests__/ConnectionIndicator.test.tsx` (#6256) | ✅ | `connectivity_diag.socket_state` + `socket_loop_active` are mirrored into `connectivity.hosted` by the health poll; with the loop alive, `connecting` / `reconnecting` / `disconnected` (server closed the namespace) render the amber `hosted-degraded` chip, ranked below every other channel; `socket_loop_active=false` or `uninitialized` collapse to `unknown` (no chip: signed out, local session, boot); `error` (server error event on a live transport) is stored but is not a chip state; a degraded link selects the 5 s poll so recovery shows within seconds |
+| 7.2.7 | Connectivity chip — core↔hosted backend link | VU | `app/src/services/__tests__/coreHealthMonitor.test.ts`, `app/src/store/__tests__/connectivitySlice.test.ts`, `app/src/store/__tests__/connectivitySelectors.test.ts`, `app/src/components/__tests__/ConnectionIndicator.test.tsx` (#6256) | ✅ | `connectivity_diag.socket_state` + `socket_loop_active` are mirrored into `connectivity.hosted` by the health poll; with the loop alive, `connecting` / `reconnecting` / `disconnected` (server closed the namespace) render the amber `hosted-degraded` chip, ranked below every other channel; `socket_loop_active=false` or `uninitialized` collapse to `unknown` (no chip: signed out, local session, boot) unless `socket_loop_stopped_on_failure` says the loop exited on an unusable session, which renders `hosted-stopped` with "sign in again" copy; `error` (server error event on a live transport) is stored but is not a chip state; a degraded link selects the 5 s poll so recovery shows within seconds |
---