MCPcopy Create free account
hub / github.com/Gan-Xing/CodexBridge / handleCreateDraftThread

Function handleCreateDraftThread

apps/web/components/session-sidebar.tsx:248–255  ·  view source on GitHub ↗
(cwd?: string | null)

Source from the content-addressed store, hash-verified

246 }
247
248 function handleCreateDraftThread(cwd?: string | null) {
249 const targetCwd = cwd?.trim() || preferredLaunchCwd || null;
250 setOpenGroupMenu(null);
251 onStartDraftThread({ cwd: targetCwd });
252 persistSidebarScroll();
253 onCloseSidebar?.();
254 router.push('/sessions', { scroll: false });
255 }
256
257 function navigateToThread(href: string) {
258 persistSidebarScroll();

Callers 2

createThreadForFolderFunction · 0.85
SessionSidebarFunction · 0.85

Calls 1

persistSidebarScrollFunction · 0.85

Tested by

no test coverage detected