CoAgent8
    Preparing search index...

    Function cancelSession

    • Cancels the active turn of a session owned by this CoAgent8 server process, or recovers a stale turn lease left by a dead owner process.

      Parameters

      • handle: string
      • Optionalworkspace: string

      Returns Promise<{ cancelled: boolean; message: string }>

      activePid on the session record identifies the CoAgent8 server process that owns the turn lease, not the backend CLI child process. If activePid belongs to another live CoAgent8 server process, cancellation is refused rather than signalling a foreign process.