ResumeSessionContext
Defined in: packages/agent/src/modules/sessionResume.ts:126
What resolveResumeTarget needs from the session asking.
Properties
Section titled “Properties”checkpointer
Section titled “checkpointer”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
Section titled “durable”durable:
boolean
saver:
BaseCheckpointSaver
config
Section titled “config”config:
HistoryConfigView
Defined in: packages/agent/src/modules/sessionResume.ts:127
current?
Section titled “current?”
optionalcurrent?: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
Section titled “workspace”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.