[GH-ISSUE #112] bug: Response output repeats infinitely due to missing stream termination #54

Open
opened 2026-10-18 14:02:25 +00:00 by bsakaguchi · 13 comments
Owner

Originally created by @JKGeovision on GitHub (Jul 8, 2026).
Original GitHub issue: https://github.com/open-webui/computer/issues/112

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

Originally created by @JKGeovision on GitHub (Jul 8, 2026). Original GitHub issue: https://github.com/open-webui/computer/issues/112 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
Author
Owner

@owui-terminator[bot] commented on GitHub (Jul 8, 2026):

🔍 Related Issues Found

I found some existing issues that might be related. Please check if any of these are duplicates or contain helpful solutions:

  1. 🟣 #96 bug: OpenAI-compatible streaming usage can end responses early
    This issue is about streaming lifecycle handling in the same chat_task path. Although it reports early termination on usage events rather than infinite repetition, both involve incorrect stream end detection and response finalization in streaming responses.
    by sandrogauci

💡 If your issue is a duplicate, please close it and add any additional details to the existing issue instead.

This comment was generated automatically. React with 👍 if helpful, 👎 if not.

<!-- gh-comment-id:4919492781 --> @owui-terminator[bot] commented on GitHub (Jul 8, 2026): <!-- terminator-bot:related-issues-reply --> 🔍 **Related Issues Found** I found some existing issues that might be related. Please check if any of these are duplicates or contain helpful solutions: 1. 🟣 [#96](https://github.com/open-webui/computer/issues/96) **bug: OpenAI-compatible streaming usage can end responses early** *This issue is about streaming lifecycle handling in the same chat_task path. Although it reports early termination on `usage` events rather than infinite repetition, both involve incorrect stream end detection and response finalization in streaming responses.* *by sandrogauci* --- 💡 If your issue is a duplicate, please close it and add any additional details to the existing issue instead. *This comment was generated automatically.* React with 👍 if helpful, 👎 if not.
Author
Owner

@tjbck commented on GitHub (Jul 9, 2026):

Should be addressed!

<!-- gh-comment-id:4930086840 --> @tjbck commented on GitHub (Jul 9, 2026): Should be addressed!
Author
Owner

@JKGeovision commented on GitHub (Jul 10, 2026):

Hello,
I have tested the changes but noticed that the model still executes the same tool multiple times even though it confirms it is done.

Image

Thanks again for your work and have a great day,
Joshua Krimmer

<!-- gh-comment-id:4939374051 --> @JKGeovision commented on GitHub (Jul 10, 2026): Hello, I have tested the changes but noticed that the model still executes the same tool multiple times even though it confirms it is done. <img width="493" height="1085" alt="Image" src="https://github.com/user-attachments/assets/d047fc8a-b0ea-4602-b65d-76f94f22f57f" /> Thanks again for your work and have a great day, Joshua Krimmer
Author
Owner

@tjbck commented on GitHub (Jul 12, 2026):

@JKGeovision which model/ai agent are you using here? any other details you think are relevant that you can provide us with?

<!-- gh-comment-id:4949413874 --> @tjbck commented on GitHub (Jul 12, 2026): @JKGeovision which model/ai agent are you using here? any other details you think are relevant that you can provide us with?
Author
Owner

@JKGeovision commented on GitHub (Jul 12, 2026):

Hello,
thanks for the fast response. I am using a local llama.cpp connection and use Qwen3.6 35B with Q6 as the model. I am also using the same model on other harnesses or chat apps like Open WebUI and never observed the model repeating itself like this before. Is there a log or something like that which could contain useful information?
Thanks again for your work and have a great day,
Joshua Krimmer

<!-- gh-comment-id:4952776543 --> @JKGeovision commented on GitHub (Jul 12, 2026): Hello, thanks for the fast response. I am using a local llama.cpp connection and use Qwen3.6 35B with Q6 as the model. I am also using the same model on other harnesses or chat apps like Open WebUI and never observed the model repeating itself like this before. Is there a log or something like that which could contain useful information? Thanks again for your work and have a great day, Joshua Krimmer
Author
Owner

@tjbck commented on GitHub (Jul 21, 2026):

@JKGeovision are you still facing this issue?

<!-- gh-comment-id:5037551873 --> @tjbck commented on GitHub (Jul 21, 2026): @JKGeovision are you still facing this issue?
Author
Owner

@cclecle commented on GitHub (Jul 23, 2026):

Same problem here, confirmed with 6 different models. These models are running on llamacpp, working perfectly through OWUI. Seeing many repeatition loops using 'computer'.

<!-- gh-comment-id:5061004198 --> @cclecle commented on GitHub (Jul 23, 2026): Same problem here, confirmed with 6 different models. These models are running on llamacpp, working perfectly through OWUI. Seeing many repeatition loops using 'computer'.
Author
Owner

@tjbck commented on GitHub (Jul 23, 2026):

@cclecle could you confirm with the latest release?

<!-- gh-comment-id:5061560443 --> @tjbck commented on GitHub (Jul 23, 2026): @cclecle could you confirm with the latest release?
Author
Owner

@cclecle commented on GitHub (Jul 23, 2026):

I just tried, and it was still happening, but it was a continuation of a previously broken chat. I am trying with new chat(s) now.. !
I also configured the connexion as 'llamacpp' now, it was left to default.

<!-- gh-comment-id:5061827160 --> @cclecle commented on GitHub (Jul 23, 2026): I just tried, and it was still happening, but it was a continuation of a previously broken chat. I am trying with new chat(s) now.. ! I also configured the connexion as 'llamacpp' now, it was left to default.
Author
Owner

@cclecle commented on GitHub (Jul 23, 2026):

Image Image

Still happening :-/
It has something to do with tool calls I think.
Analysing the issue with an agent atm...

Edit: ChatGPT Diagnosis, I let the maintainers use it or not.

Repeated Assistant Responses After Tool Calls.pdf

Edit 2: I was running in non-thinking mode, now with thinking enabled (no code change), I am not seeing repetition anymore.. will try more and update here.

<!-- gh-comment-id:5061919468 --> @cclecle commented on GitHub (Jul 23, 2026): <img width="1198" height="846" alt="Image" src="https://github.com/user-attachments/assets/09a959b3-8095-47c5-9496-b6bfd180e697" /> <img width="750" height="480" alt="Image" src="https://github.com/user-attachments/assets/2eca20ec-19c5-4f42-8e60-05fde677b633" /> Still happening :-/ It has something to do with tool calls I think. Analysing the issue with an agent atm... Edit: ChatGPT Diagnosis, I let the maintainers use it or not. [Repeated Assistant Responses After Tool Calls.pdf](https://github.com/user-attachments/files/30318402/Repeated.Assistant.Responses.After.Tool.Calls.pdf) Edit 2: I was running in non-thinking mode, now with thinking enabled (no code change), I am not seeing repetition anymore.. will try more and update here.
Author
Owner

@tjbck commented on GitHub (Jul 23, 2026):

@cclecle could you confirm with the latest?

<!-- gh-comment-id:5063849023 --> @tjbck commented on GitHub (Jul 23, 2026): @cclecle could you confirm with the latest?
Author
Owner

@cclecle commented on GitHub (Jul 23, 2026):

Not able to reproduce anymore, both in thinking and non-thinking mode :)
Will test more during the weekend, but it looks very promising.
thank you !

<!-- gh-comment-id:5064378979 --> @cclecle commented on GitHub (Jul 23, 2026): Not able to reproduce anymore, both in thinking and non-thinking mode :) Will test more during the weekend, but it looks very promising. thank you !
Author
Owner

@cclecle commented on GitHub (Jul 24, 2026):

hum, not 100% sure its Computer or my llamacpp or model, but I am seeing a new different behaviour .
Sometime the model think, but does not send the final answer.
I will try to talk with the model using normal owui or llamacpp web to check if it has the same behaviour.

<!-- gh-comment-id:5073601738 --> @cclecle commented on GitHub (Jul 24, 2026): hum, not 100% sure its Computer or my llamacpp or model, but I am seeing a new different behaviour . Sometime the model think, but does not send the final answer. I will try to talk with the model using normal owui or llamacpp web to check if it has the same behaviour.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
open-webui/computer#54
No description provided.