mirror of
https://github.com/penpot/penpot.git
synced 2026-11-10 20:10:37 +00:00
The client calls the duplicate-file command in two places, the dashboard and in the plugin API. In both places the :data is dropped via `(dissoc file :data)`, so the client never uses that field. However the file data takes a while to send over the wire and decode. When duplicating penpot-app there's a roughly 1s freeze whenever the response is returned from the server with the file data. We can avoid it by dropping the data from the response. I also did a quick check and neither the MCP server nor any public client of the API on GitHub seem to use the :data field. Co-authored-by: Andrey Antukh <niwi@niwi.nz>