Skip to content

feat(webbrowser): add storage_state support to reuse authenticated Playwright sessions#35

Open
fede03billy wants to merge 3 commits intoconvergence-ai:mainfrom
fede03billy:browser-state-storage
Open

feat(webbrowser): add storage_state support to reuse authenticated Playwright sessions#35
fede03billy wants to merge 3 commits intoconvergence-ai:mainfrom
fede03billy:browser-state-storage

Conversation

@fede03billy
Copy link

This PR lets proxy-lite load an existing Playwright storage_state file (cookies + local/sessionStorage) so agents can start from an already-authenticated context instead of repeating the login flow.

Example:

from proxy_lite import Runner, RunnerConfig

cfg = RunnerConfig.from_dict({
    "environment": {
        "name": "webbrowser",
        "homepage": "https://www.giponext.it/Agende/Classic",
        "headless": False,
        # NEW: point to the JSON produced by playwright.storage_state()
        "storage_state": "/abs/path/to/state.json",
    },
    "solver": {
        "name": "simple",
        "agent": {
            "name": "proxy_lite",
            "client": { "name": "convergence" }
        },
    },
})
runner = Runner(config=cfg)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant