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

Method undoSession

apps/kimi-web/src/api/daemon/client.ts:551–556  ·  view source on GitHub ↗
(sessionId: string, count = 1)

Source from the content-addressed store, hash-verified

549 // afterwards for the authoritative (un-paginated) transcript, so we only need
550 // the call to succeed here.
551 async undoSession(sessionId: string, count = 1): Promise<void> {
552 await this.http.post(
553 `/sessions/${encodeURIComponent(sessionId)}:undo`,
554 { count },
555 );
556 }
557
558 // POST /sessions/{id}:fork — fork the session into a new child session.
559 async forkSession(sessionId: string, input?: { title?: string }): Promise<AppSession> {

Callers

nothing calls this directly

Calls 1

postMethod · 0.65

Tested by

no test coverage detected