MCPcopy Create free account
hub / github.com/IgorWarzocha/howcode / startNewThread

Function startNewThread

desktop/runtime/composer-service.ts:549–562  ·  view source on GitHub ↗
(request: ComposerStateRequest = {})

Source from the content-addressed store, hash-verified

547}
548
549export async function startNewThread(request: ComposerStateRequest = {}) {
550 const projectId = request.projectId ?? getDesktopWorkingDirectory()
551 const composer = await buildComposerStateSnapshot({ ...request, projectId, sessionPath: null })
552 const draft = createLocalThreadDraft(projectId, undefined, { chatGroupId: request.chatGroupId })
553
554 publishComposerUpdate(composer, { projectId, sessionPath: null })
555
556 return {
557 composer,
558 projectId,
559 sessionPath: draft.sessionPath,
560 threadId: draft.threadId,
561 }
562}
563
564export async function selectProjectRuntime(
565 request: ComposerStateRequest = {},

Callers 1

thread-actions.tsFile · 0.90

Calls 4

createLocalThreadDraftFunction · 0.90
publishComposerUpdateFunction · 0.90

Tested by

no test coverage detected