MCPcopy Create free account
hub / github.com/Zoo-Code-Org/Zoo-Code / overwriteApiConversationHistory

Method overwriteApiConversationHistory

src/core/task/Task.ts:915–918  ·  view source on GitHub ↗
(newHistory: ApiMessage[])

Source from the content-addressed store, hash-verified

913 // so rewind/edit behavior can still reference original message boundaries.
914
915 async overwriteApiConversationHistory(newHistory: ApiMessage[]) {
916 this.apiConversationHistory = newHistory
917 await this.saveApiConversationHistory()
918 }
919
920 /**
921 * Flush any pending tool results to the API conversation history.

Calls 1

Tested by

no test coverage detected