@@ -170,7 +170,7 @@ export class HomeWebviewProvider implements WebviewProvider<State, State, HomeWe
170170 this . container . subscription . onDidChange ( this . onSubscriptionChanged , this ) ,
171171 onDidChangeContext ( this . onContextChanged , this ) ,
172172 this . container . integrations . onDidChange ( this . onIntegrationsChanged , this ) ,
173- this . container . walkthrough . onDidChangeProgress ( this . onWalkthroughProgressChanged , this ) ,
173+ this . container . walkthrough ? .onDidChangeProgress ( this . onWalkthroughProgressChanged , this ) ?? emptyDisposable ,
174174 configuration . onDidChange ( this . onDidChangeConfig , this ) ,
175175 this . container . launchpad . onDidChange ( this . onLaunchpadChanged , this ) ,
176176 this . container . ai . onDidChangeModel ( this . onAIModelChanged , this ) ,
@@ -729,7 +729,9 @@ export class HomeWebviewProvider implements WebviewProvider<State, State, HomeWe
729729 }
730730
731731 private getWalkthroughDismissed ( ) {
732- return this . container . storage . get ( 'home:walkthrough:dismissed' ) ?? false ;
732+ return (
733+ this . container . walkthrough == null || ( this . container . storage . get ( 'home:walkthrough:dismissed' ) ?? false )
734+ ) ;
733735 }
734736
735737 private getPreviewCollapsed ( ) {
@@ -806,13 +808,14 @@ export class HomeWebviewProvider implements WebviewProvider<State, State, HomeWe
806808 integrations : integrations ,
807809 ai : ai ,
808810 hasAnyIntegrationConnected : anyConnected ,
809- walkthroughProgress : ! this . getWalkthroughDismissed ( )
810- ? {
811- allCount : this . container . walkthrough . walkthroughSize ,
812- doneCount : this . container . walkthrough . doneCount ,
813- progress : this . container . walkthrough . progress ,
814- }
815- : undefined ,
811+ walkthroughProgress :
812+ ! this . getWalkthroughDismissed ( ) && this . container . walkthrough != null
813+ ? {
814+ allCount : this . container . walkthrough . walkthroughSize ,
815+ doneCount : this . container . walkthrough . doneCount ,
816+ progress : this . container . walkthrough . progress ,
817+ }
818+ : undefined ,
816819 previewEnabled : this . getPreviewEnabled ( ) ,
817820 newInstall : getContext ( 'gitlens:install:new' , false ) ,
818821 amaBannerCollapsed : this . getAmaBannerCollapsed ( ) ,
@@ -1205,6 +1208,8 @@ export class HomeWebviewProvider implements WebviewProvider<State, State, HomeWe
12051208 }
12061209
12071210 private notifyDidChangeProgress ( ) {
1211+ if ( this . container . walkthrough == null ) return ;
1212+
12081213 void this . host . notify ( DidChangeWalkthroughProgress , {
12091214 allCount : this . container . walkthrough . walkthroughSize ,
12101215 doneCount : this . container . walkthrough . doneCount ,
0 commit comments