After pausing a print to insert some nuts, the print resumes fine except that it has shifted 3mm to the right along the X axis.
What did you already try to solve it?
I tried using the pause function in Prusa Slicer, but it didn't seem to work at all. Don't know what else to try. I checked the pause/resume scripts in Octoprint and they look like the recommended settings.
do you perhaps have any gcode in octoprint under printer>>GCODE Scrips>>After print job is paused and in printer>>GCODE Scrips>>After print job is resumed?
I think your issue is a combination of things between firmware behavior and the gcode snippets you posted.
The ideal way to troubleshoot this would be to log these positions stored and returned to, but I am not aware of a simple standard feature to do this. You might get some success from Marlin SD Logging
Try to add the command to you gcode before the print and see if you get position logs collected.
Also maybe the G90 in after pause makes the G1 X0Y0 ignore offsets you have configured, this offset then causes the printer to go back to the wrong position.
Try commenting out G90 for example.
Also try out M117, it will add messages to the octoprint terminal, try to print out pause_position.x etc.