MCPcopy Create free account
hub / github.com/Work-Fisher/code-claw / persistSession

Function persistSession

compatible-shell/src/cli.mjs:203–215  ·  view source on GitHub ↗
(state)

Source from the content-addressed store, hash-verified

201}
202
203async function persistSession(state) {
204 if (state.noSave) {
205 return state.sessionStore.sessionPath
206 }
207
208 return state.sessionStore.save({
209 savedAt: new Date().toISOString(),
210 workspaceDir: state.workspaceDir,
211 model: state.clientConfig.model,
212 baseUrl: state.clientConfig.baseUrl,
213 messages: state.messages,
214 })
215}
216
217function normalizeAssistantContent(content) {
218 if (typeof content === 'string') {

Callers 3

mainFunction · 0.85
runUserTurnFunction · 0.85
handleSlashCommandFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected