lumbda/wasm
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
..
app repl: auto-pause + portal-save when leaving a tab mid-eval, resume on return 2026-06-15 09:02:53 -04:00
asm asm streaming: recycle the 64 KB output buffer after each flush 2026-06-15 06:36:00 -04:00
c repl: auto-pause + portal-save when leaving a tab mid-eval, resume on return 2026-06-15 09:02:53 -04:00
dist-repl repl: asm tier auto-pause uses replay mode — env reconstructs on resume 2026-06-15 11:18:26 -04:00
python python tier: SAB-backed pause poll — auto-pause now works on python too 2026-06-15 11:16:50 -04:00
repl repl: asm tier auto-pause uses replay mode — env reconstructs on resume 2026-06-15 11:18:26 -04:00
tests wasm asm: stream output line-by-line via new emit_chunk env import 2026-06-14 20:35:13 -04:00
Makefile repl: auto-pause + portal-save when leaving a tab mid-eval, resume on return 2026-06-15 09:02:53 -04:00
serve-coop.py repl: auto-pause + portal-save when leaving a tab mid-eval, resume on return 2026-06-15 09:02:53 -04:00