Skip to content

Bug: /event replay semantics are implicit and conflict with SSE backpressure handling #19584

Description

@AndresCdo

Description

When using the /event endpoint with after_seq, replay failures are not clearly signaled to SSE consumers. This makes reconnect/recovery logic inconsistent, especially when clients are slow or reconnecting.

OpenCode version

v1.3.4

Steps to reproduce

  1. Start server (opencode serve).
  2. Produce some events.
  3. Call /event?after_seq=bad.
  4. Call /event?after_seq=0 with replay unavailable/expired cursor.

Expected behavior

SSE consumers should receive explicit replay/backpressure control signals so recovery logic is deterministic.

Screenshot and/or share link

N/A (server-side behavior)

Operating System

Linux x64

Terminal

Ghostty

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions