MCPcopy Index your code
hub / github.com/continuedev/continue / hasSessionContent

Function hasSessionContent

extensions/cli/src/session.ts:264–274  ·  view source on GitHub ↗

* Check if a session has meaningful content for saving

(session: Session)

Source from the content-addressed store, hash-verified

262 * Check if a session has meaningful content for saving
263 */
264function hasSessionContent(session: Session): boolean {
265 if (!session.history || session.history.length === 0) {
266 return false;
267 }
268
269 const nonSystemMessages = session.history.filter(
270 (item) => item.message.role !== "system",
271 );
272
273 return nonSystemMessages.length > 0;
274}
275
276/**
277 * Save the current session to file

Callers 1

saveSessionFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected