Skip to content

SessionStore

reference
1 min readUpdated

Kind: Class

Source: atloria-monorepo/libs/agent-core/src/session/session-store.ts

Methods

MethodSignatureReturns
savesave(snapshot: SessionSnapshot)void
loadload(id: string)`SessionSnapshot
listlist()SessionMeta[]
deletedelete(id: string)boolean
latestlatest()`SessionMeta
getMetagetMeta(id: string)`SessionMeta

Where it refuses work

  • SessionStore stops the work with an early return when !fs.existsSync(sessionPath).
  • SessionStore stops the work with an early return when !fs.existsSync(p).

When something fails

  • SessionStore handles failure in 5 places: it turns it into a return value in 2, discards it silently in 2, and lets it reach the caller in 1. A failure discarded silently leaves no trace for whoever debugs this later.

Was this page helpful?

Download as PDF