Skip to content

ResumeSessionContext

Defined in: packages/agent/src/modules/sessionResume.ts:126

What resolveResumeTarget needs from the session asking.

checkpointer: object

Defined in: packages/agent/src/modules/sessionResume.ts:129

The session’s checkpointer — the saver the thread is looked up in, and whether it is durable.

durable: boolean

saver: BaseCheckpointSaver


config: HistoryConfigView

Defined in: packages/agent/src/modules/sessionResume.ts:127


optional current?: number

Defined in: packages/agent/src/modules/sessionResume.ts:146

The conversation this session is recording under, when it has one. A run id cannot be compared with it before it is resolved, so the seam makes that comparison itself; the surfaces keep their own integer check for the form they can compare up-front.


workspace: string

Defined in: packages/agent/src/modules/sessionResume.ts:140

This session’s PROJECT ROOT — getProjectDir(), the same accessor the conversation’s stored project was written from, compared with it below.

It is not the directory the session works in, and the two differ whenever config discovery matched above the session or a --config override moved the root. Both sides of the comparison answering the same question is what makes the refusal coherent; feeding a working directory in on one side and a project root on the other would change which conversations resume reopens.