Reagan/hitl
CH
5mo ago+2511+2511+0123456789012345678901234567890123456789-14-14-01234567890123456789
Summary by cubic
Adds three human-in-the-loop blocks: login for credential entry, capture for reCAPTCHA tile selection, and iframe for embedding a live URL inline. This lets agents pause, collect input safely in chat, or let users complete a remote step, then resume browser automation.
-
New Features
- Renderer: added
LoginForm,CaptureBlock, andIframeBlockwith transcript-based hydration. - Parser:
htmlBlocksnow recognizeslogin,capture, andiframefences with strict JSON validation (LoginPayload,CapturePayload,IframePayload+ parsers). - Engine prompts: added
loginBlockGuidanceLines()and wired intobrowsercode,claude-code, andcodex. - Chat wiring:
ChatTurndispatches all new blocks;ChatPanelistens forchatv2:open-browser; CSP updated to allowframe-src 'self' https:. - Docs: added
capture-block.md(per-tile-union recipe, cross-origin bframe viasession.use(), verification) andiframe-block.md(when to use, limits). - Tests: unit tests for capture parsing/UI and iframe streaming/parser (
CaptureBlock.spec.tsx,captureBlocks.test.ts,iframeBlocks.test.ts).
- Renderer: added
-
UI Improvements
CaptureBlock: reCAPTCHA-style banner (lead/bold/trailer, optionaltargetImage), NxM CSS tiling, clear submitted state; guarded submit when the sessions IPC bridge is missing.IframeBlock: sandboxed frame with “I’m done”/“Skip” foot actions; read-only (no DOM access).OptionList: restored outer card chrome and added streaming skeleton cards.- Scoped styles (
captureBlock.css,loginForm.css,iframeBlock.css) and minor polish across blocks.