deepseek-ai/deepseek-harness · error · Error
session " " is not live in this store
Error message
session "${session.id}" is not live in this store What it means
A SessionForkError guard in the session store reporting that the Session object passed to a live-session operation is not an instance held live by this store. The store mints one live Session per id; a stale, projected, or foreign Session object fails this identity check even if its id is known.
Solutions
- Resolve the session fresh from the store (e.g. store.get(id)) instead of reusing a Session object captured earlier
- If holding a long-lived reference, re-fetch it after store reloads or disposals
- Do not pass serialized/reconstructed Session objects where a live one is required
Defensive patterns
Strategy: validation
When it happens
Trigger: Thrown at packages/core/session/src/index.ts:1045 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of deepseek-ai/deepseek-harness@b150a551b8 (2026-08-24).
Data as JSON: /api/errors/7b9b1ffe3f0f2293.
Report an issue: GitHub.
Appendix: source
Thrown at packages/core/session/src/index.ts:1045
try {
return callback(...callbackArgs)
} catch (error: unknown) {
// Preserve the listener's exact rejection value; flush is a caller-owned
// failure boundary, and Cordis listeners may throw arbitrary values.
// oxlint-disable-next-line typescript/prefer-promise-reject-errors
return Promise.reject(error)
}
}))
const failure = results.find((result): result is PromiseRejectedResult => result.status === 'rejected')
if (failure !== undefined) throw failure.reason
return callbacks.length > 0
}
/** Return the exact live entry; detached/prepared objects reject. */
private liveEntryFor(session: Session): SessionEntry {
const entry = attachments.get(session)
if (entry === undefined || this.store.get(entry.id) !== entry) {
throw new Error(`session "${session.id}" is not live in this store`)
}
return entry
}
/**
* Look up a live session.
* @param id - the session id to look up.
* @returns the session, or undefined when no live session has that id.
*/
get(id: SessionId): Session | undefined {
return this.store.get(id)?.session
}
/**
* All live sessions, in creation order.
* @returns a fresh array; mutating it does not affect the store.
*/
list(): Session[] {View on GitHub (pinned to b150a551b8)