MCPcopy Create free account
hub / github.com/Microck/opencode-studio / checkAutoSync

Function checkAutoSync

client-next/src/lib/context.tsx:141–151  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

139 };
140
141 const checkAutoSync = async () => {
142 if (autoSyncCheckedRef.current) return;
143 autoSyncCheckedRef.current = true;
144 try {
145 const result = await syncAuto();
146 if (result.action === 'pulled') {
147 console.log('[AutoSync] Pulled newer config from cloud');
148 await refreshData();
149 }
150 } catch {}
151 };
152
153 const pollHealth = async () => {
154 try {

Callers 2

pollHealthFunction · 0.85
AppProviderFunction · 0.85

Calls 1

syncAutoFunction · 0.90

Tested by

no test coverage detected