deepseek-ai/deepseek-harness · error · Error
cannot resume: session persistence is not configured (load a
Error message
cannot resume: session persistence is not configured (load a dsh-session-persistence backend)
What it means
Error "cannot resume: session persistence is not configured (load a dsh-session-persistence backend)" thrown in deepseek-ai/deepseek-harness.
Source
Thrown at packages/core/agent-loop/src/index.ts:656
const setupCommit = await raceAbort(setup?.(prepared.agent.ctx), prepared.signal, id)
setupCommit?.commit()
return prepared.publish(source)
} catch (error: unknown) {
await prepared.dispose()
throw error
}
}
/**
* Resume an owned agent from the configured persistence service.
* @param ownerCtx - caller context that owns load, setup, and the live lifecycle.
* @param options - persisted identity, loop options, setup, and cancellation.
* @returns the published handle.
*/
async resume(ownerCtx: Context, options: ResumeAgentOptions): Promise<AgentHandle> {
const persistence = this.runtime.ctx.get('sessionPersistence')
if (persistence === undefined) {
throw new Error('cannot resume: session persistence is not configured (load a dsh-session-persistence backend)')
}
return this.resumeWith(ownerCtx, persistence, options)
}
/** Resume through an explicit persistence handle used by the deferred config path. */
private resumeWith(
ownerCtx: Context,
persistence: SessionPersistence,
options: ResumeAgentOptions,
): Promise<AgentHandle> {
const id = options.resumeSessionId
const published = (async () => {
// The load may outlive its owner: race it against caller cancellation,
// owner-fiber unload, and factory teardown so a never-settling backend
// cannot pin the identity.
const ownerAbort = new AbortController()
const unfollowOwner = ownerCtx.effect(() => () => {
ownerAbort.abort(new Error(`agent "${id}" setup aborted: owner disposed during setup`))View on GitHub (pinned to b150a551b8)
Solutions
- Load a dsh-session-persistence backend plugin before resuming a session.
When it happens
Trigger: Thrown at packages/core/agent-loop/src/index.ts:656 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/5ff8572db346938b.
Report an issue: GitHub.