> After all, the best time to look for a new job is while you are still employed.
That advice comes from people with no other leverage other than the fact that they can remain in a (in a case like this one) miserable job indefinitely if needed…doesn’t sound like much in the way of leverage to me.
Better to have some other leverage, like real skill or financial independence.