lumbda/wasm/repl
russell@unturf.com 6bcc20cb27
repl: asm tier auto-pause uses replay mode — env reconstructs on resume
Asm tier has no in-eval poll site (the WAT interpreter doesn't read
the SAB atomic), so SAB-pause + portal-snapshot don't apply. Until
the asm interpreter grows its own poll, fall back to the same
replay pattern the manual asm portal-save already uses: stash every
successful prior input from the transcript on tab.autoPause.replayInputs.

autoResumeTab now always reboots the tier first, then:
  * replayInputs set        — re-eval each in order so env rebuilds,
    log a "; resumed asm tier — replayed N prior inputs" entry, then
    sendInput re-fires the active input.
  * blob set (c / python)   — round-trip through portal-load! as before.
  * neither (no SAB, lost)  — bare sendInput, env starts cold.

Now switching away from a tab mid-asm-eval and switching back
re-establishes every (define …) the user had before, then re-fires
the loop. Same UX shape as the C/Python path.
2026-06-15 11:18:26 -04:00
..
crypto.js repl: /repl/ page with encrypted multi-tab sessions 2026-06-14 12:50:35 -04:00
index.html repl: auto-pause + portal-save when leaving a tab mid-eval, resume on return 2026-06-15 09:02:53 -04:00
repl.css repl: auto-pause + portal-save when leaving a tab mid-eval, resume on return 2026-06-15 09:02:53 -04:00
repl.js repl: asm tier auto-pause uses replay mode — env reconstructs on resume 2026-06-15 11:18:26 -04:00