MCPcopy Create free account
hub / github.com/MoonshotAI/kimi-code / forkSession

Method forkSession

apps/kimi-web/src/api/daemon/client.ts:559–567  ·  view source on GitHub ↗
(sessionId: string, input?: { title?: string })

Source from the content-addressed store, hash-verified

557
558 // POST /sessions/{id}:fork — fork the session into a new child session.
559 async forkSession(sessionId: string, input?: { title?: string }): Promise<AppSession> {
560 const body: Record<string, unknown> = {};
561 if (input?.title !== undefined) body['title'] = input.title;
562 const data = await this.http.post<WireSession>(
563 `/sessions/${encodeURIComponent(sessionId)}:fork`,
564 body,
565 );
566 return toAppSession(data);
567 }
568
569 // POST /sessions/{id}/children — create a child ("side chat") session. The
570 // daemon forks the parent (so the child inherits its context) and tags it with

Callers

nothing calls this directly

Calls 1

toAppSessionFunction · 0.90

Tested by

no test coverage detected