MCPcopy Index your code
hub / github.com/winfunc/opcode / loadProjects

Function loadProjects

src/App.tsx:152–164  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

150 * Loads all projects from the ~/.claude/projects directory
151 */
152 const loadProjects = async () => {
153 try {
154 setLoading(true);
155 setError(null);
156 const projectList = await api.listProjects();
157 setProjects(projectList);
158 } catch (err) {
159 console.error("Failed to load projects:", err);
160 setError("Failed to load projects. Please ensure ~/.claude directory exists.");
161 } finally {
162 setLoading(false);
163 }
164 };
165
166 /**
167 * Handles project selection and loads its sessions

Callers 1

AppContentFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected