@runloop/remote-agents-sdk
    Preparing search index...

    Function resolveReplayTarget

    • Resolves the replay target sequence number from the replay option. Shared by the ACP, Claude, and Codex connection classes.

      The target is independent of afterSequence: with both set, the subscription starts after afterSequence and replay semantics apply to the events in (afterSequence, head].

      Parameters

      Returns Promise<number | undefined>

      The current head sequence, or undefined if replay is disabled (replay: false) or the axon has no events.