Auto-merge with nearby strokes seems to only implemented for stroke drawing. Code has been copied from `on_stroke_done()` that handles the auto-merging, this will allow to join the primitive shape with nearest stroke. Pull Request: https://projects.blender.org/blender/blender/pulls/133420