MCPcopy Create free account
hub / github.com/anus-dev/ANUS / checkModelChange

Function checkModelChange

packages/cli/src/ui/App.tsx:373–378  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

371 // Watch for model changes (e.g., from Flash fallback)
372 useEffect(() => {
373 const checkModelChange = () => {
374 const configModel = config.getModel();
375 if (configModel !== currentModel) {
376 setCurrentModel(configModel);
377 }
378 };
379
380 // Check immediately and then periodically
381 checkModelChange();

Callers 1

AppFunction · 0.85

Calls 1

getModelMethod · 0.80

Tested by

no test coverage detected