Skip to content

[Bug]: Browser context closes during sequential twitter reads (Windows); only daemon restart recovers #60

Description

@askadityapandey

Description

On Windows, a single webcmd read works reliably, but a burst of sequential reads (e.g. twitter timeline followed by one twitter profile per author) closes the Cloak browser context partway through. Every subsequent read then fails with browserContext.newPage: Target page, context or browser has been closed until webcmd daemon restart is run. The context does not auto-respawn.

Steps to Reproduce

  1. webcmd daemon restart
  2. webcmd browser default open https://x.com → works, returns a page
  3. webcmd twitter timeline --type for-you --limit 5 -f json → works, clean JSON
  4. Run a script that calls webcmd twitter profile <handle> for ~15 handles back to back (this is what the engagement scanner does after pulling the timeline)
  5. Context dies a few calls into the loop; every call from there errors:

Expected Behavior

The browser context survives sequential reads, or auto-reconnects when torn down, instead of erroring until a manual daemon restart.

webcmd Version

0.2.3

Node.js Version

Other

Operating System

Windows

Logs / Screenshots

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    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