Skip to content

Auth wall detection closes browser but fails to open headed checkpoint #67

@avifenesh

Description

@avifenesh

Problem

When goto detects an auth wall, it closes the headless browser and calls canLaunchHeaded(). On the first attempt, canLaunchHeaded() returns false even when a display is available, causing the auth flow to abort with:

{ "authWallDetected": true, "checkpointCompleted": false, "message": "Auth wall detected but no display for headed checkpoint." }

The user must then manually run checkpoint --vnc as a separate step to authenticate, which defeats the purpose of automatic auth wall handling.

Expected Behavior

When an auth wall is detected and a display is available, the headed checkpoint should open automatically in a single goto call - without requiring a separate checkpoint invocation.

Likely Cause

canLaunchHeaded() may be checking display availability too early or caching a stale result from the initial headless launch context. After the headless browser is closed, the display check should re-evaluate.

Workaround

Run checkpoint --vnc manually after the failed goto, then re-navigate.

Impact

Breaks the single-command auth flow. Users need 3 commands (goto, checkpoint, goto) instead of 1.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions