Skip to content

Commit 93366be

Browse files
parsakhazrunpane
authored andcommitted
fix: mark missing hosted profiles as connection errors
1 parent 6bf64f7 commit 93366be

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

main/src/services/cloudVmManager.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -377,7 +377,7 @@ describe('CloudVmManager', () => {
377377
});
378378
});
379379

380-
it('keeps a hosted workspace connectable when its linked remote profile is missing', async () => {
380+
it('reports an error when a hosted workspace linked remote profile is missing', async () => {
381381
const remoteDaemonConfig = createDefaultRemoteDaemonConfig();
382382
remoteDaemonConfig.client.profiles = [];
383383
vi.spyOn(remotePaneClientController, 'getConnectionState').mockReturnValue({
@@ -404,7 +404,7 @@ describe('CloudVmManager', () => {
404404
daemonBaseUrl: 'https://pane.example.com/daemon/',
405405
linkedRemoteProfileId: 'remote-profile-1',
406406
linkedRemoteProfileLabel: null,
407-
remoteConnectionStatus: 'available',
407+
remoteConnectionStatus: 'error',
408408
});
409409
});
410410

main/src/services/cloudVmManager.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -761,7 +761,7 @@ export class CloudVmManager extends EventEmitter {
761761
}
762762

763763
if (!linkedProfile) {
764-
return 'available';
764+
return 'error';
765765
}
766766

767767
const connectionState = remotePaneClientController.getConnectionState();

0 commit comments

Comments
 (0)