Representative Nancy Pelosi, the former House speaker, has been working hard on behalf of Connie Chan, a San Francisco supervisor with a relatively low profile in California.
With an unpopular war and high prices agitating voters, members of both parties see parallels to an election cycle when Democrats romped. But a lot has changed.