MCPcopy Index your code
hub / github.com/CodebuffAI/codebuff / takeOverFreebuffSession

Function takeOverFreebuffSession

cli/src/hooks/use-freebuff-session.ts:351–357  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

349}
350
351export function takeOverFreebuffSession(): Promise<void> {
352 if (!IS_FREEBUFF) return Promise.resolve()
353 const current = useFreebuffSessionStore.getState().session
354 if (current?.status !== 'takeover_prompt') return Promise.resolve()
355 useFreebuffModelStore.getState().setSelectedModel(current.model)
356 return restartFreebuffSession('rejoin')
357}
358
359/**
360 * Best-effort DELETE of the caller's session row. Used by exit paths that

Callers 1

TakeoverPromptFunction · 0.90

Calls 1

restartFreebuffSessionFunction · 0.85

Tested by

no test coverage detected