import assert from "node:assert/strict"; import { readFile } from "node:fs/promises"; import test from "node:test"; test("Quick Pane polls snapshots, renders answers, and gates handoff", async () => { const source = await readFile( new URL("../ui/src/quick-pane/QuickPane.tsx", import.meta.url), "utf8", ); assert.match(source, /get_session_runtime_snapshot/); assert.match(source, /setInterval\(\(\) => void refresh\(\), 800\)/); assert.match( source, /
\{answer\}<\/pre>/,
  );
  assert.match(
    source,
    /\{\(escalation \|\| error\) && \(\s*