The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.
Rust agent-orchestrationai-agentsai-assistantdesktopllmlocal-firstmcppersonal-aiprivacyrustsecond-braintauri
fix(aui): handle missing connection state in banner
Steven Enamakel10193a6f9639
diff --git a/app/src/features/conversations/aui/ConnectionStateBanner.tsx b/app/src/features/conversations/aui/ConnectionStateBanner.tsxindex f24dd322a8..e44a6a2b62 100644--- a/app/src/features/conversations/aui/ConnectionStateBanner.tsx+++ b/app/src/features/conversations/aui/ConnectionStateBanner.tsx@@ -84,14 +84,20 @@ function reconnect() {socketService.connect(token);}-function ConnectedConnectionStateBanner() {+/** The element with translated captions, for a given phase (also the dev gallery's fixture). */+export function ConnectionStateNotice({+ phase,+ onRetry,+}: {+ phase: ConnectionPhase;+ onRetry?: () => void;+}) {const { t } = useT();- const phase = useConnectionPhase(useAppSelector(selectSocketStatus));return (<ConnectionStatedata-testid="connection-state-banner"phase={phase}- onRetry={reconnect}+ onRetry={onRetry}droppedLabel={t('chat.connectionState.dropped')}retryLabel={t('chat.connectionState.reconnect')}reconnectingLabel={t('chat.connectionState.reconnecting')}@@ -100,6 +106,11 @@ function ConnectedConnectionStateBanner() {);}+function ConnectedConnectionStateBanner() {+ const phase = useConnectionPhase(useAppSelector(selectSocketStatus));+ return <ConnectionStateNotice phase={phase} onRetry={reconnect} />;+}+/*** Renders nothing when there is no Redux store above it: the thread is also* mounted standalone (dev demo, component tests), with no socket to report on.