MCPcopy
hub / github.com/opentrace/opentrace / handleClear

Function handleClear

ui/src/appComponents/SettingsDrawer.tsx:112–124  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

110 };
111
112 const handleClear = async () => {
113 setClearing(true);
114 setError(null);
115 try {
116 await store.clearGraph();
117 setConfirmOpen(false);
118 onGraphCleared();
119 } catch (err) {
120 setError(err instanceof Error ? err.message : 'Failed to clear graph');
121 } finally {
122 setClearing(false);
123 }
124 };
125
126 const handleStrategyChange = (strategy: SummarizationStrategyType) => {
127 setSummaryStrategy(strategy);

Callers

nothing calls this directly

Calls 1

clearGraphMethod · 0.65

Tested by

no test coverage detected