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

Function handleSetPath

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

Source from the content-addressed store, hash-verified

130 };
131
132 const handleSetPath = async () => {
133 try {
134 await setConfigPath(manualPath || null);
135 const newPaths = await getPaths();
136 setPathsInfo(newPaths);
137 await refreshData();
138 toast.success(manualPath ? "Config path updated" : "Reset to auto-detect");
139 setManualPath("");
140 } catch (err: any) {
141 const msg = err.response?.data?.error || err.message || "Unknown error";
142 toast.error(`Failed to set config path: ${msg}`);
143 }
144 };
145
146 const handleResetPath = async () => {
147 try {

Callers

nothing calls this directly

Calls 2

setConfigPathFunction · 0.90
getPathsFunction · 0.90

Tested by

no test coverage detected