MCPcopy Create free account
hub / github.com/winfunc/opcode / refreshOutput

Function refreshOutput

src/components/SessionOutputViewer.tsx:302–313  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

300
301
302 const refreshOutput = async () => {
303 setRefreshing(true);
304 try {
305 await loadOutput(true); // Skip cache when manually refreshing
306 setToast({ message: 'Output refreshed', type: 'success' });
307 } catch (error) {
308 console.error('Failed to refresh output:', error);
309 setToast({ message: 'Failed to refresh output', type: 'error' });
310 } finally {
311 setRefreshing(false);
312 }
313 };
314
315
316 // Load output on mount and check cache first

Callers

nothing calls this directly

Calls 1

loadOutputFunction · 0.70

Tested by

no test coverage detected