When that's the case, get the h-ll out!
When it's not that bad, evaluation the pro's and con's and make sure you have a plan forward -- your plan forward, not theirs.
It may -- perhaps even likely won't -- work out just the way you plan. But, you'll be making progress and trying to get somewhere.
If you don't have a lot of personal responsibilities to others (e.g. family) and want to learn more, a different environment is very likely a better bet.
Sometimes one can end up on a... "blessed" -- or ignored -- team in a larger corporation, where corresponding autonomy combined with a good manager leads to a good, productive, educational experience.
(In my experience, this is when the team members are so valuable and rare that Management has realized/decide that they can't afford to do without them, and maybe is even respectful of or afraid of disrupting the environment, balance, or "magic" that makes the team work.)
But that seems to be somewhat the exception. And from cycle to cycle, year to year, you don't know when a critical person is going to move on, or Management is going to "notice you all" and make things crap.