I assume that when a user attempts to get tag suggestions, this first saves the node (the module's custom button is submitting the node form); hence, a node ID will be available on the next step.
If my assumption is wrong (re-save and then generate), the patch fixes the issue but makes the "Generate references with AI" unusable on node creation. If that's the case, I think that even without the patch, this is a broader issue, as this probably breaks the new node form? The submission form likely does not let the user save a new node in general.
Hmmm I wonder how we hit here in the first place? I guess my concern here is then:
Is this the case now with this change?
I assume that when a user attempts to get tag suggestions, this first saves the node (the module's custom button is submitting the node form); hence, a node ID will be available on the next step.
If my assumption is wrong (re-save and then generate), the patch fixes the issue but makes the "Generate references with AI" unusable on node creation. If that's the case, I think that even without the patch, this is a broader issue, as this probably breaks the new node form? The submission form likely does not let the user save a new node in general.