Skip to content

Clarify when reset recovery publishes replacement headers #8347

Closed

Description

@lidge-jun

Documentation problem type

Incorrect documentation

Documentation location

docs-site/src/content/docs/reference/configuration/providers.md and translated provider references.

What is wrong or missing?

The proposed #8292 documentation says a reset or EOF before the response head is returned causes the replacement to supply its own status and headers. The replacement can instead arrive after the selection deadline, when the original head is already committed.

What should the documentation explain instead?

Replacement metadata is published only if the replacement itself is selected before the head is committed. After commitment, the replacement must match the original status and complete headers or the original stream is retained. Align all translations.

Suggested wording or example

Describe the response-selection deadline in terms of when the replacement is selected, rather than only when the reset or EOF occurs.

Additional context or attachments

Independent review of #8292 at fba8261; the selection boundary is in src/server/responses/combo-stream-preflight.ts.

Checks

  • I searched existing documentation issues.
  • No secrets or personal information are included.

Activity

  1. added
    documentation
    on Nov 8, 2026
  2. lidge-jun commented on Nov 9, 2026

    @lidge-jun
    OwnerAuthor

    Status (sweep lane): still present at #8292 head cfe670c. docs-site/src/content/docs/reference/configuration/providers.md (~L447 on that head) says "If the reset or EOF happens before that head is returned, the client receives the replacement with its own status and headers". The boundary is when the replacement is selected (combo-stream-preflight.ts), not when the reset happens.

    Suggested wording: "The replacement supplies its own status and headers only if it is selected before the original head is returned. If the original head was already returned, the replacement is used only when its status, status text and complete headers match that head; otherwise the original stream and its error are kept." The seven translated providers.md pages need the same change.

    The text exists only on #8292's branch, so this is blocked on #8292 landing (or that lane folding it in).

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    documentation

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions