Skip to content

Add Responses WebSocket support for Codex continuations #72

Description

@franciscojavierarceo

Parent tracker: #69
Design context: #65

Summary

Add a Responses WebSocket adapter in agentic-api so Codex-style continuations can use previous_response_id plus marginal input and reach the same replay path as HTTP continuations.

Scope

  • Accept Codex-style response.create frames.
  • Map previous_response_id into the response-store continuation path.
  • Normalize HTTP and WebSocket requests into the same internal Responses request model.
  • Emit Responses stream events back over the socket.
  • Preserve Codex fallback semantics when a request is not a valid continuation.

Acceptance criteria

  • First-turn and continuation WebSocket flows are covered by tests.
  • WebSocket continuation reaches the same replay planner as HTTP continuation.
  • Invalid continuation requests fall back or fail in a documented way.
  • vLLM itself does not need to expose a Responses WebSocket endpoint for the first implementation.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions