Hey. I have a slight problem. I have a LangGraph agent that does some tool calls and then makes an interrupt to get some data from user. I'm playing around with useCopilotAction, however for some reason this 'triggers' resolve function of useLangGraphInterrupt.
So here is the basic flow without useCopilotAction : User makes a prompt -> Agent uses tools which end up being ActionExecutionMessage on frontend when I log visibleMessages -> Agent does an interrupt and a custom UI element with resolve button is shown on frontend -> User accepts -> custom interrupt element dissapears -> Agent proceeds and sends a message something along the line: "Prompt accepted I will continue..."
If I try to incorporate useCopilotAction into the flow to essentially visualize tool calls it does that, however Agent acts as if interrupt was resolved and proceeds to send a message "Prompt not accepted..." (in chat, this message is above the actual interrupt UI element, but it starts 'streaming' after the interrupt UI element shows, before its the loading dots). On the frontend side of things the interrupt UI element remains and the "send message" button is gone from input field so its impossible to send further messages. And when I press the resolve button, the custom UI dissapears and thats it.
Basically as if resolve happens on the agent side, but not on the frontend side.
Am I using useCopilotAction wrong? All I want to do is make custom UI for tool calls to make UX better.