Skip to content

Steps aren't shown in the web UI despite being in the JSON #11867

Closed

Description

@spykr

Description

I'm having a recurring issue where only the text response is shown and not the tool calls, here's a small example:

Image

I can see the tool calls in the JSON response, although they show up before my message in the array:

Image

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.

  1. Write a prompt that should definitely trigger a tool call (e.g. run npm install)
  2. 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.

Activity

  1. added
    bugSomething isn't working
    on Feb 3, 2026
  2. github-actions commented on Feb 3, 2026

    @github-actions
    Contributor

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

    Feel free to ignore if none of these address your specific case.

  3. 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
  4. spykr commented on Feb 6, 2026

    @spykr
    Author

    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.

  5. github-actions commented on Apr 7, 2026

    @github-actions
    Contributor

    To stay organized issues are automatically closed after 90 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

bugSomething isn't workingwebRelates to opencode on web / desktop

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions