Closes https://github.com/zed-industries/zed/issues/39294 This PR implements the ability to undo the "reject all" action from the agent panel (and the other places where this button is surfaced). Effectively, this allows to recuperate the edits an agent has introduced in case you either accidentally clicked the button or regretted the decision to reject all. https://github.com/user-attachments/assets/6f048b95-dd0a-4a45-8b4f-cd8f99d45cb3 Release Notes: - Agent: Introduced the ability to undo the "reject all" action from agent-made changes. --------- Co-authored-by: Bennet Bo Fenner <bennetbo@gmx.de>