@@ -7,7 +7,6 @@ import type {
77} from "../../../packages/gateway-protocol/src/index.js" ;
88import type { SessionObserverDigest } from "../../../packages/gateway-protocol/src/schema/sessions.js" ;
99import { isSessionRouteId , pathForRoute } from "../app-route-paths.ts" ;
10- import type { ApplicationGateway } from "../app/gateway.ts" ;
1110import { beginNativeWindowDragFromTopInset } from "../app/native-window-drag.ts" ;
1211import { t } from "../i18n/index.ts" ;
1312import { BoardAvailabilityController } from "../lib/board/availability-controller.ts" ;
@@ -67,10 +66,6 @@ import {
6766} from "./lobster-pet-contract.ts" ;
6867import { SessionOrganizerController } from "./session-organizer-controller.ts" ;
6968import { SidebarMenusController } from "./sidebar-menus-controller.ts" ;
70- import {
71- publishSidebarSessionRows ,
72- unpublishSidebarSessionRows ,
73- } from "./sidebar-session-row-registry.ts" ;
7469// The shared loader retries transient chunk failures online; a deploy-pruned
7570// chunk still stays off until reload when that retry fails, by design.
7671const sidebarChromeImport = createIdleImport ( ( ) =>
@@ -143,7 +138,6 @@ class AppSidebar extends AppSidebarSessionNavigationElement implements SessionLi
143138 private narrationLoad : Promise < void > | null = null ;
144139 private sessionNavigationState : SidebarSessionNavigationState | undefined ;
145140 private projectedSessionRows : SidebarRecentSession [ ] | undefined ;
146- private publishedSessionRowsGateway : ApplicationGateway | null = null ;
147141 private readonly narrationSubscriptions = this . createNarrationSubscriptions ( ) ;
148142 private readonly nativeGatewaysChanged = ( ) => this . requestUpdate ( ) ;
149143 private readonly refreshAppearanceSettings = ( ) => this . context ?. theme . refresh ( ) ;
@@ -224,15 +218,13 @@ class AppSidebar extends AppSidebarSessionNavigationElement implements SessionLi
224218 ) ;
225219 this . narration ?. disconnect ( ) ;
226220 this . catalogRendererImport . dispose ( ) ;
227- this . unpublishSessionRows ( ) ;
228221 super . disconnectedCallback ( ) ;
229222 }
230223
231224 protected override willUpdate ( changed : PropertyValues < this> ) {
232225 super . willUpdate ( changed ) ;
233226 this . sessionNavigationState = super . getSessionNavigationState ( ) ;
234227 this . projectedSessionRows = super . selectedAgentSessionRows ( this . sessionNavigationState ) ;
235- this . publishSessionRows ( this . projectedSessionRows ) ;
236228 const chip = this . activeChipAgent ( ) ;
237229 // An open switcher tracks roster/reconnect updates; otherwise only hydrate
238230 // the active card and avoid background RPCs for every configured agent.
@@ -243,24 +235,6 @@ class AppSidebar extends AppSidebarSessionNavigationElement implements SessionLi
243235 this . ensureAgentIdentities ( identityIds ) ;
244236 }
245237
246- private publishSessionRows ( rows : readonly SidebarRecentSession [ ] ) : void {
247- const gateway = this . context ?. gateway ?? null ;
248- if ( this . publishedSessionRowsGateway && this . publishedSessionRowsGateway !== gateway ) {
249- unpublishSidebarSessionRows ( this . publishedSessionRowsGateway , this ) ;
250- }
251- this . publishedSessionRowsGateway = gateway ;
252- if ( gateway ) {
253- publishSidebarSessionRows ( gateway , this , rows ) ;
254- }
255- }
256-
257- private unpublishSessionRows ( ) : void {
258- if ( this . publishedSessionRowsGateway ) {
259- unpublishSidebarSessionRows ( this . publishedSessionRowsGateway , this ) ;
260- this . publishedSessionRowsGateway = null ;
261- }
262- }
263-
264238 ensureAgentIdentities ( agentIds : readonly string [ ] ) : void {
265239 if ( this . connected ) {
266240 void this . context ?. agentIdentity . ensure ( agentIds ) ;
0 commit comments