Issues with boolean switch nodes not switching back to previous node behaviour

This is my current node setup to trim along the X-axis and allowing the user to fill or remove the hole that the boolean operation makes.

I managed to get it to work as it should at one point, but I don’t know why it isn’t working now.

Before:

Running the operator the first time:

Works when switching the first time:

Mesh disappears when toggling off +/-:

Same thing when toggling “Close Hole”:

Toggling it back off:

Any ideas about what’s causing it? I’m in Sculpt Mode when I run this tool. When I sit in Edit Mode everything seems to be working fine.

That sounds like a bug to report to whatever addon it is that lets you execute geonode graphs as custom operators. That looks like it’s sometimes applying the result again, iteratively, after settings changes; instead of always using the pre-operator mesh. Contact the addon author.

Possibly the addon just doesn’t interact well with Sculpt mode; entering Sculpt and Edit modes both convert and/or annotate the mesh data into different optimization structures, so the addon might not be accounting properly for being in Sculpt mode if it was written only with Object and Edit modes in mind.