desktop icon indicating copy to clipboard operation
desktop copied to clipboard

Reagan/hitl

Open Cheggin opened this issue 6 months ago • 1 comments

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, and IframeBlock with transcript-based hydration.
    • Parser: htmlBlocks now recognizes login, capture, and iframe fences with strict JSON validation (LoginPayload, CapturePayload, IframePayload + parsers).
    • Engine prompts: added loginBlockGuidanceLines() and wired into browsercode, claude-code, and codex.
    • Chat wiring: ChatTurn dispatches all new blocks; ChatPane listens for chatv2:open-browser; CSP updated to allow frame-src 'self' https:.
    • Docs: added capture-block.md (per-tile-union recipe, cross-origin bframe via session.use(), verification) and iframe-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).
  • UI Improvements

    • CaptureBlock: reCAPTCHA-style banner (lead/bold/trailer, optional targetImage), 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.

Review in cubic

Cheggin avatar May 27 '26 07:05 Cheggin

⚠️ 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
  1. Understand the implications of revoking this secret by investigating where it is used in your code.
  2. Replace and store your secret safely. Learn here the best practices.
  3. Revoke and rotate this secret.
  4. 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


🦉 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.

gitguardian[bot] avatar May 27 '26 07:05 gitguardian[bot]