CoAgent8
    Preparing search index...

    Interface CodexAppSessionOptions

    interface CodexAppSessionOptions {
        collector: {
            beginTurn: (id: string) => void;
            initialize: (id: string) => void;
            isTerminal: () => boolean;
            line: (raw: string) => void;
            notify: (method: string, value: unknown) => void;
            snapshot: () => {
                denials: { operation?: string; path?: string; reason?: string }[];
                error: ExecutionError | undefined;
                initialized: boolean;
                interrupted: boolean;
                output: string;
                terminal: boolean;
                threadId: string | null;
                truncated: boolean;
                turnId: string | null;
                usage: TokenUsage | undefined;
            };
        };
        cwd: string;
        effort: string;
        model: string;
        onEvent?: (event: AdapterEvent) => void;
        threadId?: string | null;
    }
    Index
    collector: {
        beginTurn: (id: string) => void;
        initialize: (id: string) => void;
        isTerminal: () => boolean;
        line: (raw: string) => void;
        notify: (method: string, value: unknown) => void;
        snapshot: () => {
            denials: { operation?: string; path?: string; reason?: string }[];
            error: ExecutionError | undefined;
            initialized: boolean;
            interrupted: boolean;
            output: string;
            terminal: boolean;
            threadId: string | null;
            truncated: boolean;
            turnId: string | null;
            usage: TokenUsage | undefined;
        };
    }

    Type Declaration

    • beginTurn: (id: string) => void
    • initialize: (id: string) => void
    • isTerminal: () => boolean
    • line: (raw: string) => void
    • notify: (method: string, value: unknown) => void
    • snapshot: () => {
          denials: { operation?: string; path?: string; reason?: string }[];
          error: ExecutionError | undefined;
          initialized: boolean;
          interrupted: boolean;
          output: string;
          terminal: boolean;
          threadId: string | null;
          truncated: boolean;
          turnId: string | null;
          usage: TokenUsage | undefined;
      }
    cwd: string
    effort: string
    model: string
    onEvent?: (event: AdapterEvent) => void
    threadId?: string | null

    Thread to resume; a new thread is started when absent.