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

Function updateConfig

client-next/src/app/settings/page.tsx:121–130  ·  view source on GitHub ↗
(updates: Partial<OpencodeConfig>)

Source from the content-addressed store, hash-verified

119 };
120
121 const updateConfig = async (updates: Partial<OpencodeConfig>) => {
122 if (!config) return;
123 try {
124 await saveConfig({ ...config, ...updates });
125 toast.success("Settings saved");
126 } catch (err: any) {
127 const msg = err.response?.data?.error || err.message || "Unknown error";
128 toast.error(`Failed to save settings: ${msg}`);
129 }
130 };
131
132 const handleSetPath = async () => {
133 try {

Callers 1

SettingsPageFunction · 0.85

Calls 1

saveConfigFunction · 0.50

Tested by

no test coverage detected