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

Function handleResetPath

client-next/src/app/settings/page.tsx:146–157  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

144 };
145
146 const handleResetPath = async () => {
147 try {
148 await setConfigPath(null);
149 const newPaths = await getPaths();
150 setPathsInfo(newPaths);
151 await refreshData();
152 toast.success("Reset to auto-detect");
153 } catch (err: any) {
154 const msg = err.response?.data?.error || err.message || "Unknown error";
155 toast.error(`Failed to reset path: ${msg}`);
156 }
157 };
158
159 const handleBackup = async () => {
160 try {

Callers

nothing calls this directly

Calls 2

setConfigPathFunction · 0.90
getPathsFunction · 0.90

Tested by

no test coverage detected