-
Notifications
You must be signed in to change notification settings - Fork 2.4k
Description
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:
With tool details enabled:
Once the response is complete the tool calls are shown, but after the text response:
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.