Skip to content

[enhancement] Plan 40: Human-in-the-Loop for Account Setup #283

Description

@Delqhi

Problem

New Heypiggy profiles require manual Google OAuth login. CAPTCHAs during login need human solve. Bot either crashes or loops forever when hitting these walls.

Browser-use has a formal HITL pattern: pause agent → human interacts in live browser → agent continues.

Plan

plans/40-human-in-the-loop.md

Key Changes

  1. HITL pause pointslogin_required, captcha_blocked, account_setup, 2fa_required
  2. Pause for human — Print message + wait for Enter (with configurable timeout, default 300s)
  3. Login status detection — Heypiggy-specific check for avatar/user-menu/logged-in indicator
  4. Screenshot on pause — Save screenshot so human can see what's happening
  5. Auto-continue detection — Poll for login completion instead of only waiting for Enter
  6. CLI flag--hitl (enable) / --no-hitl (disable, current default)

Validation

  • New profile → bot pauses for login → human logs in → bot continues
  • CAPTCHA appears → HITL pause → human solves → bot continues
  • Auto-detect login after human action within 10s

Files

  • survey-cli/survey/skills/hitl.py — NEW
  • survey-cli/survey/skills/deterministic_solver.py
  • survey-cli/survey_cli_entry.py

Source

browser-use "Human in the Loop" (pause agent, human acts, agent continues)

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requestscope-lockAllowed under Plan 26 §0b scope-lock

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions