Palestinians upbeat about agreement in crisis talks