(state)
| 201 | } |
| 202 | |
| 203 | async 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 | |
| 217 | function normalizeAssistantContent(content) { |
| 218 | if (typeof content === 'string') { |
no outgoing calls
no test coverage detected