Skip to content

Remove "assistant turn failed before producing content" log prefix from chat history #91503

Description

@covisualize

This is a cosmetic/logging issue — not a functional failure.

What happens:
Every assistant turn in the chat history shows a system message prefix:

[assistant turn failed before producing content]

...followed by the actual response content which arrives normally.

Example from chat history:

Expected:
The log prefix shouldn't appear in user-visible chat history. It's a streaming-layer artifact (marks turn start before content streams) that leaks into the conversation view.

Context:

Component: Gateway streaming/logging layer

Metadata

Metadata

Assignees

No one assigned

    Labels

    P3Low-priority cleanup, docs, polish, ergonomics, or speculative work.clawsweeper:linked-pr-openClawSweeper found an open linked pull request for this issue.clawsweeper:no-new-fix-prClawSweeper does not recommend queueing a new automated fix PR for this issue.clawsweeper:source-reproClawSweeper found a high-confidence source-level issue reproduction.impact:otherThis issue has meaningful maintainer-visible impact outside the owned taxonomy.issue-rating: 🦞 diamond lobsterVery strong issue quality with high-confidence source-level or clear reproduction.

    Type

    No type

    Fields

    Priority

    None yet

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions