Agent exits terminal before any output is returned on first call

I have agent run bazel commands, and 1 out of every 2 times it starts a chat and runs a terminal command, the tool call ends before the shell command completes. This doesn’t happen in later tool calls, just the first one which is very fsutrating.


Here’s an example - The command is still running, but the agent thinks the command is complete. It looks like this failure can happen on later tool-calls, not just the first tool call.