MCPcopy Create free account
hub / github.com/Work-Fisher/code-claw / openFile

Function openFile

ai-code-studio/src/components/MemoryPanel.tsx:45–52  ·  view source on GitHub ↗
(filename: string)

Source from the content-addressed store, hash-verified

43 }, [open, workspaceDir, loadOverview]);
44
45 async function openFile(filename: string) {
46 try {
47 const file = await api<MemoryFile>(`/api/memory/file/${encodeURIComponent(filename)}`);
48 setActiveFile(file);
49 setEditContent(file.content);
50 setActiveView('file');
51 } catch { /* ignore */ }
52 }
53
54 async function handleSaveFile() {
55 if (!activeFile) return;

Callers 1

MemoryPanelFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected