MCPcopy
hub / github.com/OpenCoworkAI/open-codesign / loadConfig

Function loadConfig

apps/desktop/src/renderer/src/store.ts:537–550  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

535 },
536
537 async loadConfig() {
538 if (!window.codesign) {
539 set({
540 configLoaded: true,
541 errorMessage: tr('errors.rendererDisconnected'),
542 });
543 return;
544 }
545 const state = await window.codesign.onboarding.getState();
546 set({ config: state, configLoaded: true });
547 if (state.hasKey) {
548 await get().ensureCurrentDesign();
549 }
550 },
551
552 completeOnboarding(next: OnboardingState) {
553 recordAction({ type: 'onboarding.complete' });

Callers 1

bootstrapFunction · 0.85

Calls 1

trFunction · 0.90

Tested by

no test coverage detected