open-webui / open-webui/computer

bug: Response output repeats infinitely due to missing stream termination

Open
#112 13 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Python
Stars
569
Forks
79
PR merge metrics
No merged PRs in 30d

Description

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

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce the issue by starting a cptr conversation that triggers a multi-step response, then inspect the harness handling of stream termination. Done means the final response block appears only once and the chat remains usable after generation finishes.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
backend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
48/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.