Subworkflow wait issue still present in AI tool call

Shortly summarized I want to have an AI agent node call a subworkflow as a tool where that subworkflow contains a wait (for a human-in-the-loop element).

This does not work because as soon as the wait is hit the parent workflow resumes and the AI agent tries to call the tool again. This behaviour was described in a ticket The "send and wait respond" node in a sub-workflow, when called as an agent tool, causes the agent to return directly without waiting. · Issue #18373 · n8n-io/n8n · GitHub

That ticket was closed as a duplicate of the more general subworkflow-wait problems that have now been fixed in N8N 2.0. But I can still reproduce the AI tool specific problem behaviour on n8n 2.1.1 prerelease.

Not sure what to do here because I can’t re-open the Github issue