Hamas rejected extending the 6 month truce last december
Hamas never offered a legitimate ceasefire. There "ceasefire" demands were in the form of "give us everything we ever demanded without compromises and we'll consider holding fire, for a short while."
That's extortion or at best pandering to their supporters not a legitimate ceasefire.