diff --git a/tests/playwright/sx-inspect.js b/tests/playwright/sx-inspect.js index ea5c0866..2159b291 100644 --- a/tests/playwright/sx-inspect.js +++ b/tests/playwright/sx-inspect.js @@ -1391,10 +1391,9 @@ async function modeSandbox(page, expr, files, setup, stack, bytecode) { if (typeof fn === 'function' && fn.__sx_handle === undefined) return fn; if (fn && fn.__sx_handle !== undefined) { return function() { - // Do NOT call _driveAsync here — the suspension propagates through - // the normal CEK/VM return path. The outer callFn handles it. - // Calling _driveAsync would create a duplicate resume chain. - return K.callFn(fn, Array.from(arguments)); + const r = K.callFn(fn, Array.from(arguments)); + window._driveAsync(r); + return r; }; } return function() {};