Resume after pause failing to move printhead to correct resume position

What is the problem?

Printer does not resume correctly after a GCODE pause. I set a pause to insert a nut at a specific layer in Prusaslicer. Printer properly pauses at the layer that was set. Hotend moves away from the print object. I insert the nut and am ready to resume. I click "Resume" in Octoprint. Print head moves to correct X-Y position but prints a layer "in the air" before then moving down to the position of the next layer. So the print fails.

What did you already try to solve it?

Print pauses and resumes correctly if using a SD card.

I tried changing the GCODE scripts following old threads. I reviewed older threads that were similar but not quite the same, and nothing in those threads I've tried has worked so far.

I believe I have the scripts back to their original state, with anything I tried so far either removed or commented out.

I also tried creating a new printer from an unchanged factory default printer in Prusaslicer and adding the Octoprint connection to it. My original printer had some changes where it didn't heat the nozzle until after the bed levelling check.

Have you tried running in safe mode?

Yes

Did running in safe mode solve the problem?

No, same behavior

Systeminfo Bundle

octoprint-systeminfo-20250617134900.zip (97.4 KB)

Additional information about your setup

OctoPrint version, OctoPi version, printer, firmware, browser, operating system, ... as much data as possible

OctoPrint 1.11.2 Python 3.9.2 OctoPi* 1.0.0cam (build 2024.11.05.100055)

Prusa MK3S+
Prusaslicer 2.9.2
Prusa-Firmware 3.14.1+8237_74a577bc0 based on Marlin FIRMWARE_URL:GitHub - prusa3d/Prusa-Firmware: Firmware for Original Prusa i3 3D printer by PrusaResearch PROTOCOL_VERSION:1.0 MACHINE_TYPE:Prusa i3 MK3S+R

Test files attached.
TestRing_PETG_2.gcode (58.4 KB)
TestRing_PETG_1.gcode (69.4 KB)