But as news of the political agreement filtered out on Sunday, some protesters gathered at the gates of the palace where Mr. Hamdok was signing the deal with General al-Burhan, apparently infuriated that he had compromised with the military they despised.
Inside the hall, Mr. Hamdok, dressed in a suit and tie, appeared remarkably phlegmatic beside the military officers who had imprisoned him at his home for nearly a month. When he accepted the job of interim prime minister, Mr. Hamdok said, “I realized that the road would not be strewn with roses.”
But he spoke only obliquely of his ordeal, preferring to point to the path ahead. “By joining hands, we can all reach a peaceful shore,” Mr. Hamdok said.
In brief remarks, General al-Burhan, who stood up clutching a baton, paid tribute to Mr. Hamdok for his “confidence and trust,” and promised Sudanese citizens that he would continue with the political transition “until your dreams of democracy, peace and justice are realized.”
Under the terms of the deal, Mr. Hamdok would be allowed to form a new government, said a Western official who spoke on the condition of anonymity to discuss sensitive negotiations.
But important points of contention between the two sides have not been finalized, the official said. They included crucial arrangements for sharing power and making key appointments, such as attorney general.
Critics said that they feared the deal would allow the military to retain its decades-long dominance over Sudan, and it was rejected out of hand by the Umma Party, Sudan’s largest, and the Forces of Freedom and Change, a major coalition of civil society and political groups.