diff --git a/src/main/AryxAppService.ts b/src/main/AryxAppService.ts index 8fc9f0f..4171705 100644 --- a/src/main/AryxAppService.ts +++ b/src/main/AryxAppService.ts @@ -233,7 +233,9 @@ export class AryxAppService extends EventEmitter { this.sidecarCapabilitiesPromise = undefined; this.didScheduleInitialProjectGitRefresh = false; - return this.loadWorkspace(); + const workspace = await this.loadWorkspace(); + this.emit('workspace-updated', workspace); + return workspace; } async addProject(): Promise { diff --git a/src/renderer/App.tsx b/src/renderer/App.tsx index a2cbfae..7247755 100644 --- a/src/renderer/App.tsx +++ b/src/renderer/App.tsx @@ -350,7 +350,10 @@ export default function App() { onSetTheme={(theme) => void api.setTheme(theme)} onOpenAppDataFolder={() => void api.openAppDataFolder()} onResetLocalWorkspace={async () => { - await api.resetLocalWorkspace(); + const fresh = await api.resetLocalWorkspace(); + setWorkspace(fresh); + setSessionActivities({}); + setShowSettings(false); }} patterns={workspace.patterns} sidecarCapabilities={sidecarCapabilities}