SessionRepair
constSessionRepair: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.
Type Declaration
Section titled “Type Declaration”alreadyExists
Section titled “alreadyExists”
readonlyalreadyExists:"Use a new session id or resume the existing session."="Use a new session id or resume the existing session."
closed
Section titled “closed”
readonlyclosed:"Mount a new message; a closed session cannot be mutated."="Mount a new message; a closed session cannot be mutated."
conflict
Section titled “conflict”
readonlyconflict:"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."
expired
Section titled “expired”
readonlyexpired:"Start a new session; sweep may remove the expired record."="Start a new session; sweep may remove the expired record."
inconsistentStore
Section titled “inconsistentStore”
readonlyinconsistentStore:"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."
leaseLost
Section titled “leaseLost”
readonlyleaseLost:"Another writer holds the session; retry after its lease expires."="Another writer holds the session; retry after its lease expires."
notFound
Section titled “notFound”
readonlynotFound:"Start a new session or resume from the stored message id."="Start a new session or resume from the stored message id."
readonlystore:"Check the store connection and retry the operation."="Check the store connection and retry the operation."