A 20-year-old contract to house state prisoners here is set to end this summer, but city officials are hopeful that talks with Fresno County and city law-enforcement leaders might yield a reprieve for their jail.