MCPcopy Index your code
hub / github.com/Microck/opencode-studio / loadConfig

Function loadConfig

server/index.js:970–983  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

968};
969
970const loadConfig = () => {
971 const configPath = getConfigPath();
972 if (!configPath || !fs.existsSync(configPath)) return null;
973 try {
974 const config = JSON.parse(fs.readFileSync(configPath, 'utf8'));
975 const studioConfig = loadStudioConfig();
976 if (studioConfig.activeGooglePlugin === 'antigravity' && !config.small_model) {
977 config.small_model = "google/gemini-3-flash";
978 }
979 return config;
980 } catch {
981 return null;
982 }
983};
984
985const saveConfig = (config) => {
986 const configPath = getConfigPath();

Callers 3

index.jsFile · 0.85
buildBackupDataFunction · 0.85
getGeminiClientIdFunction · 0.85

Calls 2

getConfigPathFunction · 0.85
loadStudioConfigFunction · 0.85

Tested by

no test coverage detected