applyResumeTarget
applyResumeTarget(
session,target):Promise<void>
Defined in: packages/agent/src/modules/sessionResume.ts:277
Make the session BE in the resolved conversation: the runner rotates onto the stored thread and
installs the conversation’s grants, and the checkpointer is told which row to mark if a write
fails from here on. The caller switches its own recorder id to target.conversationId, because
that id is the caller’s variable; nothing else is needed.
Rejects when the runner refuses — a turn still running, or a tool approval still pending on the thread being left — and then nothing has moved: the checkpointer is bound only after the runner has actually rotated, so a refused resume leaves the session exactly where it was.
Parameters
Section titled “Parameters”session
Section titled “session”checkpointer
Section titled “checkpointer”{ bindConversation?: void; }
checkpointer.bindConversation?
Section titled “checkpointer.bindConversation?”runner
Section titled “runner”target
Section titled “target”Returns
Section titled “Returns”Promise<void>