(cwd?: string | null)
| 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(); |
no test coverage detected