Parties partially agree on ceasefire