Immutable solution version
Anchor Browser agent.task() blocks with no timeout; browser_task() returns a Future plus Playwright access
Complete solution
Anchor Browser agent.task() blocks with no timeout; browser_task() returns a Future plus Playwright access: Pick the right Anchor agent call for the job. Use when hitting this exact issue. Not for unrelated errors.
TL;DR
Pick the right Anchor agent call for the job. client.agent.task() blocks until the natural-language task finishes server-side - it sets no HTTP timeout and does no retries because tasks run for minutes, so wrap it in your own timeout if you need one. client.agent.browsertask() returns immediately with the session identifier, a Future for the result, and a Playwright connection to the same session - use it when your code needs to drive the browser in parallel with the agent (filling a form the agent cannot see, watching progress). task() for fire-and-forget, browsertask() when you want to participate.
Pick the right Anchor agent call for the job. client.agent.task() blocks until the natural-language task finishes server-side - it sets no HTTP timeout and does no retries because tasks run for minutes, so wrap it in your own timeout if you need one. client.agent.browsertask() returns immediately with the session identifier, a Future for the result, and a Playwright connection to the same session - use it when your code needs to drive the browser in parallel with the agent (filling a form the agent cannot see, watching progress). task() for fire-and-forget, browsertask() when you want to participate.
Context: Official Anchor Browser Python SDK README (anchor-browser-sdk-python): client.agent.task('...') creates a session (or reuses one when you pass its session identifier) and runs a natural-language task in it server-side through the perform-web-task API, then waits for the result - with no HTTP timeout and no retries, since agent tasks can run for many minutes. client.agent.browser_task(...) instead starts the task and returns immediately with the session identifier, a concurrent.futures.Future for the result, and a Playwright connection to the same session, so your code can drive the browser while the agent works.
Matched source
Source: Source: https://github.com/anchorbrowser/anchorbrowser-sdk-python/blob/HEAD/README.md Original query: "Anchor Browser agent.task() blocks with no timeout; browser_task() returns a Future plus Playwright access" Key terms: access, agent, anchor, blocks, browser, future, playwright, plus, returns, task, timeout
When to use
- You hit this exact issue.
- The symptom matches: Anchor Browser agent.task() blocks with no timeout; browser_task() returns a Future plus Playwright access.
When NOT to use
- A different error or symptom; the cause here is specific to this one.
Compatibility
Per the linked source.
Edge cases
- If your error message differs even slightly, this is probably a different issue; search the exact text.
- If the fix does not help, capture the full error output and check the source link for updates.
Source
https://github.com/anchorbrowser/anchorbrowser-sdk-python/blob/HEAD/README.md
Evidence
Source: Official Anchor Browser Python SDK README (anchor-browser-sdk-python): client.agent.task('...') creates a session (or reuses one when you pass its session identifier) and runs a natural-language task in it server-side through the perform-web-task API, then waits for the result - with no HTTP timeout and no retries, since agent tasks can run for many minutes. client.agent.browser_task(...) instead starts the task and returns immediately with the session identifier, a concurrent.futures.Future for the result, and a Playwright connection to the same session, so your code can drive the browser while the agent works.
Verified resolution: Pick the right Anchor agent call for the job. client.agent.task() blocks until the natural-language task finishes server-side - it sets no HTTP timeout and does no retries because tasks run for minutes, so wrap it in your own timeout if you need one. client.agent.browsertask() returns immediately with the session identifier, a Future for the result, and a Playwright connection to the same session - use it when your code needs to drive the browser in parallel with the agent (filling a form the agent cannot see, watching progress). task() for fire-and-forget, browsertask() when you want to participate.
Source URL: https://github.com/anchorbrowser/anchorbrowser-sdk-python/blob/HEAD/README.md
By @issueatlas · Version 3 · Exact version
Embed this skill
Add this card to a website or documentation page. It links to the current skill on Vectle.
<a href="https://vectle.com/skills/skl_PNuQYGN01sbAro3qAP4V3A" style="display:inline-block;padding:12px 16px;border:1px solid #d8ddd3;border-radius:8px;color:#194d35;text-decoration:none;font:14px/1.5 system-ui,sans-serif">Anchor Browser agent.task() blocks with no timeout; browser_task() returns a Future plus Playwright access <span>— Vectle</span></a>