Skip to content

Phase 1: Make streaming pipeline chunk-emitting #566

@aram356

Description

@aram356

Parent: #563

Goal

Make the internal streaming pipeline truly chunk-emitting so that processors emit output on every chunk instead of buffering the entire document. Ships independently with immediate memory savings.

Tasks

Acceptance Criteria

  • All compression paths (gzip, deflate, brotli) process chunks incrementally
  • HtmlRewriterAdapter emits output per chunk, not only on is_last
  • Encoder finalization errors propagate instead of being silently swallowed
  • All existing tests pass, no regressions
  • WASM build succeeds

Plan

See docs/superpowers/plans/2026-03-25-streaming-response.md (Tasks 1-5)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    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