Skip to content

backend-agents C16: GET /api/turns/:runId/stream attach/reconnect proof #810

Description

@btipling

Parent: #794
Umbrella: #794
Label: backend-agents
Status: DRAFT
Blocked on: #809 (C15)

Implements one row of the restart umbrella. One issue → one PR → one adversarial review → one merge → close. Do not expand scope.

Slice

GET /api/turns/:runId/stream?startIndex=getReadable({startIndex}) with startIndex=0 / MID replay.

abort ≠ cancel. getRun is status truth. Producer closed the writable.

DoD

  • startIndex=0 replays from the first chunk; MID resumes
  • Client abort does not cancel the run
  • typecheck + vitest green

Out of scope

Host attach UI (E19). Stop → server cancel (G22).

Refs

Metadata

Metadata

Assignees

No one assigned

    Labels

    backend-agentsClient-independent agent turns — backend-run, survive tab close / refreshenhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions