Skip to content

[SSE Completion - Issue 3] Multi-round + interleaving streaming test coverage #121

Description

@ashwing

Part of #118.

No integration test drives a multi-round gateway streaming loop and asserts the client-visible frame sequence — the loop tests in dispatch_loop_cassette_test.rs are non-streaming, and the one streaming case is single-round. The defects in the sibling sub-issues all ship unnoticed because of this.

Add cassette-backed streaming tests asserting the exact client frame stream across ≥2 gateway rounds:

  • exactly one response.created / lifecycle envelope
  • monotonic sequence_number (incl. synthetic + terminal frames)
  • contiguous output_index
  • no <think> in output_text
  • interleaved thinking + tool_use in one turn

These lock the behavior the other sub-issues fix and guard against regression.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions