Skip to content

Sometimes replies to the previous turn (stale context): keeps repeating an earlier command/answer instead of responding to the latest input #16612

@leo512zy

Description

@leo512zy

Description

When using OpenCode, sometimes the assistant responds to the previous user message/command instead of the most recent one.

In many cases, re-sending the same question/command once makes it recover and respond correctly. However, sometimes it gets “stuck” and keeps repeating the same action/response, as if it’s still processing or replying to an earlier turn in the conversation (stale context / wrong message).

This feels like the latest input is not being applied, or the model is receiving / the UI is displaying an older turn.

Plugins

No response

OpenCode version

v1.2.21

Steps to reproduce

No response

Screenshot and/or share link

No response

Operating System

Ubuntu 24.04.4 LTS

Terminal

No response

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingcoreAnything pertaining to core functionality of the application (opencode server stuff)

Type

No type
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