MCPcopy Create free account
hub / github.com/diillson/chatcli / buildSessionData

Method buildSessionData

cli/cli_session.go:213–218  ·  view source on GitHub ↗

buildSessionData builds a SessionData from the current CLI state. Uses ChatHistory field to store the unified history for backwards compatibility.

()

Source from the content-addressed store, hash-verified

211// buildSessionData builds a SessionData from the current CLI state.
212// Uses ChatHistory field to store the unified history for backwards compatibility.
213func (cli *ChatCLI) buildSessionData() *SessionData {
214 return &SessionData{
215 Version: 2,
216 ChatHistory: cli.history,
217 }
218}
219
220// restoreSessionData restores history from a SessionData.
221// Merges legacy separate histories into the unified history for backwards compatibility.

Callers 1

handleSaveSessionMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected