(sessionId: string, input?: { title?: string })
| 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 |
nothing calls this directly
no test coverage detected