After adding an artifact when a collection is "open", this artifact appears to be invisible and is already selected "in the background". It is not displayed because it is not yet assigned to the currently open collection.
Although this allows the newly added artifact to be assigned directly to a collection, it is extremely confusing because you are working with an artifact that is not visible.
My suggestion here would be that if you are already in a collection, this collection should also be automatically assigned when artifacts are added. Then this current artifact can also be displayed and the confusion is eliminated.