When tool calls happen, the original TTMSMCPCloudAI.FBusyCount is incremented but never decremented — DoExecuted is skipped some lines bellow because lToolReq = true, and the recursive FToolsRequest instance decrements its own counter, not the parent's.
The result is that FBusyCount remains 1 and GetBusy returns True and all is stuck.
I’am doing something wrong?
I’am calling OpenAI and the issue I observed is in TTMSMCPCloudAI.DoOpenAIRequest(). At the end it checks if not lToolReg before calling DoExecuted() to decrement FBusyCount.
if not lToolReq then
DoExecuted(AResponse, ARequestResult.ResponseCode, ARequestResult.ResultString);
I see that DoClaudeRequest() do not check lToolReq. There is lToolUse…
Today regardless if TTMSMCPCloudAI.Busy = True (FBusyCount = 3 and increasing), if I call Execute() it works if I ignore Busy.
Yesterday it didn’t worked.
We have seen an issue with internal flag FBusyCount when tool calls were involved.
We have now fixed this and next update of TMS AI Studio will have this fix.
1 Like