Skip to content

Bug: Tool Calls are not shown directly if tool details are toggled off #3065

Closed

Description

@tobias-walle

Then I hide tool call details (either with <leader>+d or via /details), I don't see the tool calls anymore until the end of the response. If I enable the details again, I see all tool calls immediately.

OpenCode Version: 0.14.6
Model: openrouter/gpt-5-codex
Recorded Example Session: https://opencode.ai/s/SuQygOUJ

With tool details disabled:

Image

With tool details enabled:

Image

Once the response is complete the tool calls are shown, but after the text response:

Image

Result of an analysis I did with opencode:

Findings

The TUI chat renderer skips every ToolPart while showToolDetails is false. In packages/tui/internal/components/chat/messages.go the case opencode.ToolPart branch (around lines 584-588) immediately continues when tool details are hidden, so no placeholder block is rendered for the running tool. When that
happens and there is still no assistant text, the fallback block later in the same function (renderView, lines 667-681) renders only a "Generating..." stub without passing along any of the pending tool calls. Because the abbreviated tool titles are only appended inside renderText when toolCalls are
provided, nothing is drawn until an actual text part arrives, which is typically after the tool finishes. Once the tool completes and the assistant emits text, the queued tool call titles are finally appended, making them appear “all at once” after the response completes.

Likely Regression Commit

The behavior was introduced when the tool-detail toggle was added in commit 5e777fd (“feat: toggle tool details visible”, Aug 11 2025). That change added the early continue for tool parts when details are hidden and the "Generating..." fallback, so it is the most
recent commit (within the last few weeks) that can explain the delayed appearance you’re seeing.

Activity

  1. rekram1-node commented on Oct 9, 2025

    @rekram1-node
    Contributor

    ah thx for pointing out

  2. tobias-walle commented on Oct 9, 2025

    @tobias-walle
    ContributorAuthor

    This fixes the immediate issue: #3069

    There is still the problem of the order of the tool calls. All tool calls are always rendered on the bottom.

  3. tobias-walle commented on Nov 3, 2025

    @tobias-walle
    ContributorAuthor

    As the tool detail options was removed (and I don't miss it), I will close this isue

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