The issue with the wp_discourse_publish_categories
filter has been fixed in WP Discourse version 2.0.6. That filter should now work correctly with either the Classic or the Block editor.
I also updated the code example here so that the example’s custom post type is configured in a way that will work with the Block Editor.