diff --git a/packages/electron/main.mjs b/packages/electron/main.mjs index aec816cc..100532e0 100644 --- a/packages/electron/main.mjs +++ b/packages/electron/main.mjs @@ -2074,10 +2074,6 @@ const dispatchDeepLink = (link) => { emitToAllWindows('openchamber:open-session', { sessionId: link.value }); return; } - if (link.type === 'project' && link.value) { - emitToAllWindows('openchamber:open-project', { projectPath: link.value }); - return; - } if (link.type === 'host' && link.value) { void switchToHostById(link.value); return; diff --git a/packages/ui/src/App.tsx b/packages/ui/src/App.tsx index 7ec3db74..4c16cce7 100644 --- a/packages/ui/src/App.tsx +++ b/packages/ui/src/App.tsx @@ -668,26 +668,6 @@ function App({ apis }: AppProps) { return () => window.removeEventListener('openchamber:open-draft-session', handler as EventListener); }, []); - React.useEffect(() => { - if (typeof window === 'undefined') return; - - const handler = (event: Event) => { - const detail = (event as CustomEvent<{ projectPath?: string }>).detail; - const projectPath = typeof detail?.projectPath === 'string' ? detail.projectPath.trim() : ''; - if (!projectPath) return; - const projectsStore = useProjectsStore.getState(); - const existing = projectsStore.projects.find((project) => project.path === projectPath); - if (existing) { - projectsStore.setActiveProject(existing.id); - } else { - projectsStore.addProject(projectPath); - } - }; - - window.addEventListener('openchamber:open-project', handler as EventListener); - return () => window.removeEventListener('openchamber:open-project', handler as EventListener); - }, []); - React.useEffect(() => { if (typeof window === 'undefined') return; if (!isInitialized || isSwitchingDirectory) return;