MCPcopy Create free account
hub / github.com/DeusData/codebase-memory-mcp / changeWorkspace

Function changeWorkspace

graph-ui/src/App.tsx:773–780  ·  view source on GitHub ↗
(value: Workspace)

Source from the content-addressed store, hash-verified

771 } catch { return 'architecture'; }
772 });
773 const changeWorkspace = (value: Workspace): void => {
774 value = allowedWorkspace(value);
775 if (value !== workspace) {
776 setProactiveSelection(undefined); setChatGraphSelection(undefined); setChatAttachment(undefined);
777 }
778 setWorkspace(value);
779 try { localStorage.setItem('cbm.workspace', value); } catch { /* Session-only preference. */ }
780 };
781 // The address always names the workspace in view, also one carried over a project switch, so a reload keeps it (A5).
782 useParamInAddress('workspace', workspace);
783 const [welcomeOpen, setWelcomeOpen] = useState(() => {

Callers 3

ProjectWindowViewFunction · 0.85
exploreEvidenceFunction · 0.85
showInspectorGraphFunction · 0.85

Calls 2

allowedWorkspaceFunction · 0.90
setItemMethod · 0.65

Tested by

no test coverage detected