{"content":"Task 5 development journal\n\nCommit: c642a99 fix: gate Browser intents on runtime ready\n\n- Added tests/botBrowserSurfaceStatic.test.mjs as a static regression test to lock parent-side browser intent gating.\n- Changed BotBrowserSurface so openUri() and refreshRuntime() queue pending intent work until browser-ready instead of posting as soon as iframe.contentWindow exists.\n- Guarded flushPendingOpenUris() and flushPendingRefreshRuntime() behind readyRef, and removed iframe onLoad-based flushing so pending work only drains after browser-ready.\n- Reset readyRef when rebuilding srcDoc and when a post attempt fails, so stale ready state cannot leak across iframe reload or bridge loss.\n- Verification run:\n 1. /Users/tusm/.nvm/versions/node/v24.13.1/bin/node --test tests/browserIframeBridge.test.mjs tests/botBrowserSurfaceStatic.test.mjs\n 2. /Users/tusm/.nvm/versions/node/v24.13.1/bin/npm run build","contentType":"text/plain;utf-8","attachments":[],"quotePin":""}