You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Steps aren't shown in the web UI despite being in the JSON #11867
I'm having a recurring issue where only the text response is shown and not the tool calls, here's a small example:
I can see the tool calls in the JSON response, although they show up before my message in the array:
It appears the bug might be in the logic that session-turn.tsx uses to determine whether a turn has steps or not.
Plugins
None
OpenCode version
1.1.48
Steps to reproduce
This is tricky because it doesn't seem to happen every time, but it does happen often enough in my testing that I only just started using OpenCode yesterday and I've seen it a number of times already.
Write a prompt that should definitely trigger a tool call (e.g. run npm install)
See that no tool calls are displayed in the UI
Screenshot and/or share link
See above.
Operating System
Ubuntu 24.04.1
Terminal
I'm running opencode serve on a Linux server and then accessing it via the web UI.
This issue might be a duplicate of existing issues. Please check:
Bug: Tool Calls are not shown directly if tool details are toggled off #3065: Bug: Tool Calls are not shown directly if tool details are toggled off - While that issue is for TUI, it describes the same core problem of tool calls appearing in the JSON but not rendering properly in the UI, with similar symptoms of tool calls appearing after the text response completes.
Feel free to ignore if none of these address your specific case.
changed the title [-]Steps aren't shown in the UI despite being in the JSON[/-][+]Steps aren't shown in the web UI despite being in the JSON[/+]on Feb 3, 2026
I investigated this and it seems to be an ordering bug: messages are sorted lexicographically by ID, which doesn't always match chronological order. In the example above, my user message started with msg_c22f27bd, while the tool call message created 2ms later started with msg_c22f2793. Since 2793 sorts before 27bd, the tool call message is placed before my user message and isn’t shown.
I tested sorting by time.created and that fixed the issue locally. Is there a reason ordering is ID-based today? If not, I'm happy to open a PR with this change.
Activity
github-actions commentedon Feb 3, 2026
This issue might be a duplicate of existing issues. Please check:
Feel free to ignore if none of these address your specific case.
[-]Steps aren't shown in the UI despite being in the JSON[/-][+]Steps aren't shown in the web UI despite being in the JSON[/+]spykr commentedon Feb 6, 2026
I investigated this and it seems to be an ordering bug: messages are sorted lexicographically by ID, which doesn't always match chronological order. In the example above, my user message started with
msg_c22f27bd, while the tool call message created 2ms later started withmsg_c22f2793. Since2793sorts before27bd, the tool call message is placed before my user message and isn’t shown.I tested sorting by
time.createdand that fixed the issue locally. Is there a reason ordering is ID-based today? If not, I'm happy to open a PR with this change.github-actions commentedon Apr 7, 2026
To stay organized issues are automatically closed after 90 days of no activity. If the issue is still relevant please open a new one.