@@ -42,6 +42,7 @@ import {
4242 partitionSidebarVisibleSections ,
4343 promoteSidebarSessionCreatedOrder ,
4444 resolveSidebarAgentChipSubtitle ,
45+ resolveSidebarHomeAttention ,
4546 resolveSidebarAgentResumeKey ,
4647 resolveSidebarMainSessionKey ,
4748 toggleSidebarSessionSelection ,
@@ -50,13 +51,12 @@ import {
5051} from "./app-sidebar-session-navigation-logic.ts" ;
5152import { SessionPullRequestIndicatorsController } from "./app-sidebar-session-pr-indicators.ts" ;
5253import { projectSessionTree } from "./app-sidebar-session-tree.ts" ;
54+ import { loadStoredHiddenSessionCatalogIds } from "./app-sidebar-session-types.ts" ;
5355import {
54- loadStoredHiddenSessionCatalogIds ,
5556 loadStoredSidebarSessionStatusFilter ,
5657 loadStoredSidebarSessionsGrouping ,
5758 loadStoredSidebarSessionsShowCron ,
5859 loadStoredSidebarSessionsShowSystem ,
59- SIDEBAR_SESSION_NO_ATTENTION ,
6060 type SidebarRecentSession ,
6161 type SidebarSessionSortMode ,
6262 type SidebarSessionStatusFilter ,
@@ -273,10 +273,6 @@ export class AppSidebarSessionNavigationElement extends AppSidebarBase {
273273 ) ;
274274 }
275275
276- outboxCountForSessionKey ( sessionKey : string ) : number {
277- return this . outboxCountForSession ( sessionKey ) ;
278- }
279-
280276 getSessionNavigationState ( ) : SidebarSessionNavigationState {
281277 const routeSessionKey = this . getRouteSessionKey ( ) ;
282278 return buildSidebarSessionNavigationState ( {
@@ -292,7 +288,7 @@ export class AppSidebarSessionNavigationElement extends AppSidebarBase {
292288 highlightCurrentSession : isSessionRouteId ( this . activeRouteId ) ,
293289 runtimeSampledAtByRow : this . runtimeSampledAtByRow ,
294290 loadingChildSessionKeys : this . sessionData . loadingChildSessionKeys ,
295- outboxCountForSessionKey : ( sessionKey ) => this . outboxCountForSessionKey ( sessionKey ) ,
291+ outboxCountForSessionKey : ( sessionKey ) => this . outboxCountForSession ( sessionKey ) ,
296292 hasSessionDraft : ( sessionKey ) => this . hasSessionDraft ( sessionKey ) ,
297293 resolveAttention : ( row ) => this . attention . resolveSessionAttention ( row ) ,
298294 resolveAgentStatusNote : ( row ) => this . attention . resolveSessionAgentStatus ( row ) ?. note ,
@@ -727,13 +723,7 @@ export class AppSidebarSessionNavigationElement extends AppSidebarBase {
727723 }
728724
729725 resolveHomeSessionAttention ( sessionKey : string , row : GatewaySessionRow | null ) {
730- const known = this . attention
731- . knownSessionAttention ( )
732- . find ( ( entry ) => areUiSessionKeysEquivalent ( entry . sessionKey , sessionKey ) ) ;
733- return (
734- known ?. attention ??
735- ( row ? this . attention . resolveSessionAttention ( row ) : SIDEBAR_SESSION_NO_ATTENTION )
736- ) ;
726+ return resolveSidebarHomeAttention ( this . attention , sessionKey , row ) ;
737727 }
738728
739729 /** Gateway row backing the identity card (unread/running state), if loaded. */
0 commit comments