You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Runtime App teardown acknowledgement lost under slow Node 26 CI runners #23
Recurring CI failure (Node 26 Verify on #18, #20, #22; also one Node 22 run): packages/workbench/tests/mcp-app-real.e2e.test.ts > opens the real RSC runtime timeline App from provider-owned run evidence fails at line ~1362 with Matcher did not succeed in 60000ms on expect.poll(thirdAcknowledgement, { timeout: 15_000 * timeScale }).
Sequence: the third Runtime App binding is created, window.location.hash = '#mcp' navigates away, the ui/resource-teardown request is observed reaching the third frame, but the frame's JSON-RPC acknowledgement never arrives. Passes locally with CI=1 time scaling, and the same flow passes on Node 22/24 most of the time.
Hypothesis: on slow runners the sandboxed App frame is unmounted by the navigation before it posts its teardown response, so the lifecycle owner waits on an acknowledgement that can no longer be delivered (the design's teardown contract awaits the exact ack before DELETE). If so this is a race in the close path, not a budget shortfall - raising the wait will not fix it. Worth a deterministic repro that delays the frame's ack past unmount.
Evidence: run 33228321926 job 99036290040 (attempt 1), annotations and log excerpt in the job.
Flake burn-in: packages/workbench/tests/mcp-app-real.e2e.test.ts :: opens the real RSC runtime timeline App from provider-owned run evidence (the failing test from this issue) ran 5/5 green on af1c1855 (prebuilt integration pool).
Activity
fix(docs,test): closed-issue audit G4 — correct stale claims and pin …
ScriptedAlchemy commentedon Sep 3, 2026
Closed-issue re-audit (lane G4) — VERIFIED on
mainc94df11c, with one test gap filled.cf02915d) is intact:packages/agent-bundle/src/dev/runtime-client-surface-proxy.tsqueues host→App messages during the handshake (maxPendingHostMessages = 32, L204; queue at L334–343; flush onui/notifications/initializedat L355–359). Teardown-ack budget isgracefulTeardownTimeoutMs = 10_000with theteardownAckTimeoutMstest seam (packages/workbench/src/mcp/runtime-app-bridge.tsL60, L133, L564–569); no commits touched the bridge since fix: stop watched-file write races in e2e suites and host message drops in the Runtime App relay #35.packages/workbench/tests/mcp-app-real.e2e.test.ts :: opens the real RSC runtime timeline App from provider-owned run evidence(the failing test from this issue) ran 5/5 green onaf1c1855(prebuilt integration pool).c94df11c) addsruntime-client-surface-proxy.test.ts :: queues host requests relayed during the App handshake and flushes them once the App reports initialized, driving the served shell deterministically: early/teardown requests queue, foreign-origin and non-RPC traffic is still rejected, the queue is bounded at 32, everything flushes in order oninitialized, post-init traffic relays immediately. 27/27 in the file; CI Verify/Release/Examples green.