Reagan/hitl
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.
Written for commit d1fabba4925953bc9dd787dd4bf02b061fb96481. Summary will update on new commits.
⚠️ GitGuardian has uncovered 1 secret following the scan of your pull request.
Please consider investigating the findings and remediating the incidents. Failure to do so may lead to compromising the associated services or software components.
🔎 Detected hardcoded secret in your pull request
| GitGuardian id | GitGuardian status | Secret | Commit | Filename | |
|---|---|---|---|---|---|
| 33203192 | Triggered | Username Password | 4dbb65873951093cf5d6bc0bd7fc2542e1b46ed8 | app/src/renderer/hub/chat-v2/htmlBlocks.ts | View secret |
🛠 Guidelines to remediate hardcoded secrets
- Understand the implications of revoking this secret by investigating where it is used in your code.
- Replace and store your secret safely. Learn here the best practices.
- Revoke and rotate this secret.
- If possible, rewrite git history. Rewriting git history is not a trivial act. You might completely break other contributing developers' workflow and you risk accidentally deleting legitimate data.
To avoid such incidents in the future consider
- following these best practices for managing and storing secrets including API keys and other credentials
- install secret detection on pre-commit to catch secret before it leaves your machine and ease remediation.
🦉 GitGuardian detects secrets in your source code to help developers and security teams secure the modern development process. You are seeing this because you or someone else with access to this repository has authorized GitGuardian to scan your pull request.