Copilot generates HTML with iframes to simulate the OS. On each click a diff for the HTML is generated and applied.