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

Function checkServerVersion

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

Source from the content-addressed store, hash-verified

130
131 useEffect(() => {
132 const checkServerVersion = async () => {
133 if (versionCheckedRef.current) return;
134 const result = await checkVersion();
135 setVersionInfo(result);
136 if (result.connected) {
137 versionCheckedRef.current = true;
138 }
139 };
140
141 const checkAutoSync = async () => {
142 if (autoSyncCheckedRef.current) return;

Callers 2

pollHealthFunction · 0.85
AppProviderFunction · 0.85

Calls 1

checkVersionFunction · 0.90

Tested by

no test coverage detected