Skip to content

Reasoning text infinitely repeats #33135

Closed as not planned
Closed as not planned

Description

@affanali2k3

Description

In some providers (e.g Kimi 2.6) the reasoning part gets stuck in an infinitely loop of adding the same new token repeatedly. This adds unnecessary cost and is a weird behavior. I added a circuit breaker so its caught when it happens.

Happens both in CLI and desktop app as the underlying server is the same

Plugins

None

OpenCode version

1.17.8

Steps to reproduce

  1. Type a prompt
  2. The inference from the model sometimes gets stuck in reasoning loop
  3. Keep on receiving same token in the reasoning part

Screenshot and/or share link

Image Image

Operating System

macOS 26.2

Terminal

Macos Default Terminal

Activity

  1. github-actions commented on Jun 20, 2026

    @github-actions
    Contributor

    This issue might be a duplicate of existing issues. Please check:

    If your issue is distinct, please clarify how it differs from the above.

  2. github-actions commented on Aug 20, 2026

    @github-actions
    Contributor

    To stay organized issues are automatically closed after 60 days of no activity. If the issue is still relevant please open a new one.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions