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
Bug: Tool Calls are not shown directly if tool details are toggled off #3065
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.
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.
Activity
rekram1-node commentedon Oct 9, 2025
ah thx for pointing out
tobias-walle commentedon Oct 9, 2025
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.
tobias-walle commentedon Nov 3, 2025
As the tool detail options was removed (and I don't miss it), I will close this isue