CoAgent8 - Source API
    Preparing search index...

    Interface SessionRecord

    Represents a persistent multi-turn agent conversation session.

    interface SessionRecord {
        activePid: number | null;
        activeTurnAt: number | null;
        backend: string;
        cliVersion?: string;
        createdAt: string;
        lastErrorCode?: string;
        lastReview?: CompletedReview;
        lastUsedAt: string;
        model?: string;
        reasoningEffort?: string;
        safetyProfile?: string;
        schemaVersion?: 2;
        sessionHandle: string;
        state?: "idle" | "running" | "invalidated" | "closed";
        threadId: string | null;
        turnCount?: number;
        turnToken?: string | null;
        workspace: string;
    }
    Index
    activePid: number | null

    CoAgent8 owner-process PID for the active turn, not the native CLI child's PID.

    activeTurnAt: number | null

    Timestamp when the currently active turn started execution.

    backend: string

    Concrete CLI provider used for this session: codex, claude or agy.

    cliVersion?: string
    createdAt: string

    ISO timestamp when the session was created.

    lastErrorCode?: string
    lastReview?: CompletedReview

    Identity and server verdict of this session's last completed review turn (AX-007c).

    lastUsedAt: string

    ISO timestamp when the session was last accessed or updated.

    model?: string
    reasoningEffort?: string

    Reasoning effort of the last turn; a continuation reuses it with the session's model.

    safetyProfile?: string
    schemaVersion?: 2
    sessionHandle: string

    Public session handle identifier.

    state?: "idle" | "running" | "invalidated" | "closed"
    threadId: string | null

    CLI-native thread ID or conversation token for resuming turns.

    turnCount?: number
    turnToken?: string | null
    workspace: string

    Canonical workspace path bound to this session.