I would not do use any oils inside the cage. You can remove the plants, treat them, quarantine them and then replace them. I would also remove the carpet asap it can harbor bacteria.
When I get new plants for the enclosure I repot all soil and do a mini quarantine for a week or so. A gnat here and there should not harm your chameleon.