Dark Dreams of Furiae - a new module for NWN:EE! Buy now
Detect Illusion does not work on Neutral illusions
Standing next to Kirian in the undercellars without her having turned hostile (another, unrelated bug), it becomes apparent that Detect Illusion is not dispelling her invisibility as expected.
One would expect Detect Illusion and similar spells and abilities to target all non-friendly illusions, not solely hostile ones.