You don’t think Pelosi has done anything to advance the Democratic agenda? I don’t live in her district, so I’m not sure about locally, but I do think she’s been highly influential nationally, and I personally think she has done a good job.
That being said, her district is safe Democratic even if she doesn’t run. She should retire, enjoy the rest of her life with her family and leave feeling good about her accomplishments. It’s someone else’s job to carry on the work.