Files
t3code/apps
Cursor Agent e42d1b3d4e Fix reload race: use main-process webContents.reload() instead of renderer window.location.reload()
The renderer-side window.location.reload() inside executeJavaScript schedules a
navigation task asynchronously — the IIFE completes and executeJavaScript resolves
before the reload actually starts. This causes waitForDidFinishLoad to see
isLoadingMainFrame() as false and resolve immediately, allowing the automation to
proceed before the page has reloaded with the seeded state.

Move the reload back to the main process via window.webContents.reload(), which
synchronously puts the frame into a loading state from the main process perspective.
2026-02-17 23:44:24 +00:00
..
2026-02-16 17:38:02 -08:00