issue: grok coder runs and logs a lot of </xai:function_call> tool calls #1518

Closed
opened 2026-02-16 17:31:21 -05:00 by yindo · 2 comments
Owner

Originally created by @luis-juicebox on GitHub (Aug 28, 2025).

issue:

When asking Grok to grep it started making a lot of tool calls, then output the following without stopping

Image

I had to interrupt the process

steps to reproduce:

Ask Grok Coder to grep files with <code snippet> until it has a good idea of the shape of the schema

expected behavior:

Grok Coder would not show its tool call tags

Originally created by @luis-juicebox on GitHub (Aug 28, 2025). issue: When asking Grok to grep it started making a lot of tool calls, then output the following without stopping <img width="608" height="907" alt="Image" src="https://github.com/user-attachments/assets/1ef5f83d-a438-4e28-9e11-44993be1fd01" /> I had to interrupt the process steps to reproduce: Ask Grok Coder to `grep files with <code snippet> until it has a good idea of the shape of the schema` expected behavior: Grok Coder would not show its tool call tags
yindo closed this issue 2026-02-16 17:31:21 -05:00
Author
Owner

@github-actions[bot] commented on GitHub (Aug 28, 2025):

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

  • #527: Similar Grok coder function display issue where tool calls were being shown as response text instead of being executed properly
  • #2052: Subagents getting stuck in tool usage loops, which could be related to the excessive tool call behavior you're experiencing
  • #2005: Tool call display bug in TUI where tool calls aren't being shown properly in certain cases

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

@github-actions[bot] commented on GitHub (Aug 28, 2025): This issue might be a duplicate of existing issues. Please check: - #527: Similar Grok coder function display issue where tool calls were being shown as response text instead of being executed properly - #2052: Subagents getting stuck in tool usage loops, which could be related to the excessive tool call behavior you're experiencing - #2005: Tool call display bug in TUI where tool calls aren't being shown properly in certain cases Feel free to ignore if none of these address your specific case.
Author
Owner

@luis-juicebox commented on GitHub (Aug 28, 2025):

Closing this, probably just grok coder not being good at tool calling.

@luis-juicebox commented on GitHub (Aug 28, 2025): Closing this, probably just grok coder not being good at tool calling.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#1518