Cursor unable to edit graphql schema. in chatgpt same model edits in split second

Cursor kept complaining about edit_file function not working and having to use sed. He kept deleting rows from the graphqls schema and was not able to do a simple edit of about 5 lines. When pasting the schema to chatgpt with the same o3-mini it worked great