Chat is stuck on a Conversation Summary loop when using OpenRouter #101

Closed
opened 2026-02-16 17:25:12 -05:00 by yindo · 5 comments
Owner

Originally created by @albertilagan on GitHub (Jun 17, 2025).

Originally assigned to: @thdxr on GitHub.

Originally created by @albertilagan on GitHub (Jun 17, 2025). Originally assigned to: @thdxr on GitHub.
yindo closed this issue 2026-02-16 17:25:12 -05:00
Author
Owner

@tdido commented on GitHub (Jun 17, 2025):

I'm seeing this as well. First message works fine. After the first reply, a further message from the user doesn't get echoed and the system enters a loop of "Conversation summary" replies (it's aware of the loop, but it keeps going).

@tdido commented on GitHub (Jun 17, 2025): I'm seeing this as well. First message works fine. After the first reply, a further message from the user doesn't get echoed and the system enters a loop of "Conversation summary" replies (it's aware of the loop, but it keeps going).
Author
Owner

@albertilagan commented on GitHub (Jun 17, 2025):

I'm seeing this as well. First message works fine. After the first reply, a further message from the user doesn't get echoed and the system enters a loop of "Conversation summary" replies (it's aware of the loop, but it keeps going).

yes, same.

@albertilagan commented on GitHub (Jun 17, 2025): > I'm seeing this as well. First message works fine. After the first reply, a further message from the user doesn't get echoed and the system enters a loop of "Conversation summary" replies (it's aware of the loop, but it keeps going). yes, same.
Author
Owner

@GitMurf commented on GitHub (Jun 17, 2025):

I had this happen when I tried to proxy to another provider from the OpenAI provider. It looked like maybe it was using the newer OpenAI response api instead of the chat completions api. The solution was to properly add it as a new provider using the OpenAI compatible “template” from the ai-sdk @ai-sdk/openai-compatible (as the opencode README shows).

@GitMurf commented on GitHub (Jun 17, 2025): I had this happen when I tried to proxy to another provider from the OpenAI provider. It looked like maybe it was using the newer OpenAI response api instead of the chat completions api. The solution was to properly add it as a new provider using the OpenAI compatible “template” from the ai-sdk `@ai-sdk/openai-compatible` (as the opencode README shows).
Author
Owner

@tdido commented on GitHub (Jun 17, 2025):

In our case the problem is with the OpenRouter setup, following the instructions on the README (https://github.com/sst/opencode?tab=readme-ov-file#how-do-i-use-this-with-openrouter)

@tdido commented on GitHub (Jun 17, 2025): In our case the problem is with the OpenRouter setup, following the instructions on the README (https://github.com/sst/opencode?tab=readme-ov-file#how-do-i-use-this-with-openrouter)
Author
Owner

@thdxr commented on GitHub (Jun 17, 2025):

this happened when limit.context was not specified for the model - i fixed this in v0.1.70

@thdxr commented on GitHub (Jun 17, 2025): this happened when limit.context was not specified for the model - i fixed this in v0.1.70
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#101