Skip to content

bug: Response output repeats infinitely due to missing stream termination #112

Description

@JKGeovision

Hello,

I discovered a bug where the ai response output repeats the same text block dozens of times in a single turn. This happens when the model finishes generating a response but the streaming connection is not properly terminated.

Steps to reproduce:

  1. Start a conversation with cptr
  2. Ask a question that triggers a multi-step response (e.g. running commands, creating files)
  3. After the model finishes generating, the last response block repeats infinitely
  4. The chat becomes unusable until manually stopped

I suspect the issue is that the harness does not correctly detect or signal stream termination.

Thank you again for your work and I wish you all a great day,
Joshua Krimmer

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    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