Skip to content

SessionRepair

const SessionRepair: object

Defined in: packages/core/src/session/schema.ts:81

What a caller should do next. This is the “information scent” half of an error: the tag says what failed, this says where to go.

readonly alreadyExists: "Use a new session id or resume the existing session." = "Use a new session id or resume the existing session."

readonly closed: "Mount a new message; a closed session cannot be mutated." = "Mount a new message; a closed session cannot be mutated."

readonly conflict: "Re-read the session and retry against the stored version; the client heals automatically." = "Re-read the session and retry against the stored version; the client heals automatically."

readonly expired: "Start a new session; sweep may remove the expired record." = "Start a new session; sweep may remove the expired record."

readonly inconsistentStore: "Use a store with compare-and-set (SQLite or D1) for resumable sessions." = "Use a store with compare-and-set (SQLite or D1) for resumable sessions."

readonly leaseLost: "Another writer holds the session; retry after its lease expires." = "Another writer holds the session; retry after its lease expires."

readonly notFound: "Start a new session or resume from the stored message id." = "Start a new session or resume from the stored message id."

readonly store: "Check the store connection and retry the operation." = "Check the store connection and retry the operation."