Skip to content

The thinking content of the model cannot be viewed in real-time and must be stopped before it can be seen. #57262

Closed as not planned

Description

@Jerry-ojk

Description

I executed './opencode serve -- hostname 0.0.0.0' on wezterm in CentOS Linux release 8.5.2111 and connected to it using Chrome 142.0.7444.135 on Windows (my browser on CentOS 8 is too old to display opencode's web pages)

I am using locally deployed qwen3.8, which often loops through thinking. When it loops through thinking, I will stop it and send 'continue'. From this point on, after I input the content, the opencode will continue to display "working" (in fact, the model is currently outputting the thinking content, but I cannot view it in real time). After a long time, it will not display its thinking content (it only displays content when the thinking is truly completed or the output reaches its limit, but due to its frequent cycle of thinking, all thoughts are not displayed). Only when I stop it, does opencode show that it used one thought, and then I can view its thought content.
Please note that before the loop thinking occurs, when I ask a question, the opencode will immediately display "1 thought used" and allow me to view my thoughts in real-time. The bug of thinking unable to view content in real-time only occurs after loop thinking occurs.

In the last conversation, it was thinking in a loop, so I stopped it and sent a '直接回答'.
Image

I waited for about a minute, but the opencode still showed '工作中' and I couldn't view its thoughts in real-time.
So I stopped it.
Image

After I stopped it, it showed that 1 thought was used, and now I can view its thought content.
Image

Plugins

No response

OpenCode version

2.0.31

Steps to reproduce

  1. Trigger model loop thinking
  2. Stop it
  3. continue the conversation
  4. At this point, the opencode will display that it is working and cannot display the thinking content in real time

Screenshot

No response

Operating System

CentOS Linux release 8.5.2111

Terminal

wezterm

Activity

  1. opencode-agent commented on Oct 20, 2026

    @opencode-agent
    Contributor

    Thanks for the detailed report and screenshots.

    I looked into this, and the web UI is behaving as designed rather than hitting a bug. With the detailed and compact timeline presets, thinking is grouped together with tool calls. While a turn has produced only thinking so far, the timeline deliberately shows just Working and holds back the "Used 1 Thought" group. That group appears once the model produces text or a tool call, or once the turn ends. There are tests that check for exactly this (added in #51090).

    This explains what you saw. In a normal turn, the model soon follows its thinking with a tool call or an answer, so the thought shows up almost at once. When qwen loops in its thinking, it never produces anything else, so only Working shows until you press stop. Stopping and then sending "continue" is most likely not the cause. A looping turn would show only Working even if it were the first message.

    Workaround: switch the timeline detail setting to the everything preset. It shows thinking in its own row, which updates live while the model is thinking.

    If you'd like grouped mode to also show thinking live while a turn is still only thinking, that would be a feature request, and you're welcome to open one. If you still don't see thinking live with the everything preset, please reply here and say which preset you are using.

  2. Hona commented on Oct 23, 2026

    @Hona
    Member

    Agreed - will make this visible

  3. opencode-agent commented on Oct 23, 2026

    @opencode-agent
    Contributor

    Closing this for now, since we haven't heard back. As explained above, with the detailed and compact timeline presets, thinking is grouped with tool calls. While a turn is still only thinking, the timeline shows just Working. The thought appears once the model produces text or a tool call, or the turn ends. A model stuck in a thinking loop therefore shows only Working until you stop it. To watch thinking live, switch the timeline detail setting to the everything preset.

    If you still can't see thinking live with the everything preset, please comment here with the preset you're using and we can take another look. If you'd like grouped mode to show live thinking too, feel free to open a feature request.

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

Metadata

Metadata

Assignees

No one assigned

    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