ACP v2 TypeScript SDK — EXPERIMENTAL DRAFT - v1.3.0
    Preparing search index...

    Type Alias ResumeSessionRequestExperimental

    Request parameters for resuming an existing session.

    Resumes an existing session and optionally replays prior conversation history according to replayFrom.

    type ResumeSessionRequest = {
        sessionId: SessionId;
        cwd: AbsolutePath;
        additionalDirectories?: AbsolutePath[];
        mcpServers?: McpServer[];
        replayFrom?: ReplayFrom | null;
        _meta?: { [key: string]: unknown } | null;
    }
    Index
    sessionId: SessionId

    The ID of the session to resume.

    The working directory for this session. Must be an absolute path.

    additionalDirectories?: AbsolutePath[]

    Additional workspace roots to activate for this session. Each path must be absolute.

    When omitted or empty, no additional roots are activated. When non-empty, this is the complete resulting additional-root list for the resumed session. It may differ from any previously used or reported list as long as the request cwd matches the session's cwd.

    mcpServers?: McpServer[]

    List of MCP servers to connect to for this session.

    replayFrom?: ReplayFrom | null

    Inclusive cursor describing where conversation replay should begin.

    Optional. Omitted or null both mean the Agent should resume without replaying previous conversation history. Replay cursors are inclusive: replay includes the position identified by the cursor. Supplying { "type": "start" } means the Agent should replay the whole conversation before responding.

    _meta?: { [key: string]: unknown } | null

    The _meta property is reserved by ACP to allow clients and agents to attach additional metadata to their interactions. Implementations MUST NOT make assumptions about values at these keys.

    See protocol docs: Extensibility