Skip to content
This repository was archived by the owner on Mar 20, 2026. It is now read-only.

Fix tool calls disappearing from UI#136

Merged
alexkroman merged 1 commit into
mainfrom
fix/tool-call-ui-persistence
Mar 17, 2026
Merged

Fix tool calls disappearing from UI#136
alexkroman merged 1 commit into
mainfrom
fix/tool-call-ui-persistence

Conversation

@alexkroman
Copy link
Copy Markdown
Owner

Summary

  • Replace complex tool call grouping/interleaving with a single linear pass — each message renders followed by its tool calls, remaining tool calls always shown at the end
  • Add detailed error extraction for LLM API errors (status codes, response bodies, URLs)
  • Add request/response logging for gateway failures

Test plan

  • deno task check passes
  • Deploy agent with tools, verify tool calls persist between user turn and assistant response
  • Verify tool calls remain visible across multiple turns
  • Verify tool calls don't disappear when assistant starts speaking

🤖 Generated with Claude Code

Tool calls could vanish when their afterMessageIndex didn't align with
the trailing-only render path. Replace the grouping/special-casing logic
with a single linear pass that renders each message followed by its tool
calls, with remaining tool calls always shown at the end.

Also adds detailed error extraction for LLM API errors (status codes,
response bodies) and request logging for gateway failures.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@alexkroman alexkroman merged commit ad0bbe8 into main Mar 17, 2026
1 check passed
@alexkroman alexkroman deleted the fix/tool-call-ui-persistence branch March 17, 2026 00:09
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants