File tree Expand file tree Collapse file tree 2 files changed +11
-2
lines changed
DotPilot.Tests/Workspace/Services
DotPilot/Presentation/Chat/ViewModels Expand file tree Collapse file tree 2 files changed +11
-2
lines changed Original file line number Diff line number Diff line change @@ -46,7 +46,7 @@ public async Task EnsureHydratedAsyncKeepsHydrationRetryableAfterATransientWorks
4646 var databasePath = Path . Combine ( blockedDirectoryPath , "dotpilot-agent-sessions.db" ) ;
4747
4848 Directory . CreateDirectory ( rootPath ) ;
49- await File . WriteAllTextAsync ( blockedDirectoryPath , "blocked" ) ;
49+ Directory . CreateDirectory ( blockedDirectoryPath ) ;
5050
5151 try
5252 {
@@ -56,6 +56,9 @@ public async Task EnsureHydratedAsyncKeepsHydrationRetryableAfterATransientWorks
5656 } ) ;
5757 var hydration = fixture . Provider . GetRequiredService < IStartupWorkspaceHydration > ( ) ;
5858
59+ Directory . Delete ( blockedDirectoryPath ) ;
60+ await File . WriteAllTextAsync ( blockedDirectoryPath , "blocked" ) ;
61+
5962 await hydration . EnsureHydratedAsync ( CancellationToken . None ) ;
6063
6164 hydration . IsHydrating . Should ( ) . BeFalse ( ) ;
Original file line number Diff line number Diff line change @@ -94,7 +94,13 @@ public async ValueTask Refresh(CancellationToken cancellationToken)
9494 return ;
9595 }
9696
97- fleetProviderSnapshotStale = true ;
97+ if ( refresh . TryGetValue ( out var workspace ) )
98+ {
99+ fleetProviderSnapshot = [ .. workspace . Providers ] ;
100+ hasFleetProviderSnapshot = true ;
101+ fleetProviderSnapshotStale = false ;
102+ }
103+
98104 _workspaceRefresh . Raise ( ) ;
99105 _sessionRefresh . Raise ( ) ;
100106 await EnsureSelectedChatAsync ( cancellationToken ) ;
You can’t perform that action at this time.
0 commit comments