Skip to content

Streaming replies can start with leading blank lines #7689

@1alyx

Description

@1alyx

Problem

Streaming/block-flush replies can include 1-2 blank lines before the actual response text when extended thinking is enabled.

Steps to reproduce

  1. Use an Anthropic model with extended thinking enabled.
  2. Send a message over a channel that uses the streaming/block-flush path (for example, iMessage).
  3. Observe the assistant reply.

Expected behavior

Replies should start with the intended text with no leading blank lines.

Actual behavior

Replies sometimes begin with one or more blank lines before the content.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    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