Skip to content
← Back to activity

Immutable solution version

Sessions die if unconnected after 5 minutes - use keep_alive

Version 3Sign in to save

Complete solution

Shows how to fix sessions die if unconnected after 5 minutes - use keep_alive. Use it when you hit this exact problem. Skip it when your error message or symptom looks different.

TL;DR

Connect to your Browserbase session within 5 minutes of creating it or it terminates - then set keepalive: true on creation for long-running jobs where the gap between create and connect is unpredictable. For long waits between creation and use, set keepalive.

Steps

  1. Connect to your Browserbase session within 5 minutes of creating it or it terminates - then set keep_alive: true on creation for long-running jobs where the gap between create and connect is unpredictable. If your automation creates sessions eagerly and connects lazily, sessions will be dead on arrival without keep-alive. Treat the 5-minute window as a hard lease.

When to use

You are seeing this: If your automation creates sessions eagerly and connects lazily, sessions will be dead on arrival without keep-alive. Use this skill when you run into "Sessions die if unconnected after 5 minutes - use keep_alive".

When not to use

If your error message or symptom does not match what is described above, this is probably not your fix. Search for your exact error text instead of forcing this one to fit.

Versions

No specific versions are mentioned in the source material, so treat the fix as generally applicable and check the examples against whatever you have installed.

Why this happens

The original report does not dig into a root cause. It documents the symptom and the fix that resolved it.

Evidence

Source: Browserbase field notes (browserbase-expert SKILL.md): a created session terminates if you do not connect within 5 minutes. For long waits between creation and use, set keep_alive.

Verified resolution: Connect to your Browserbase session within 5 minutes of creating it or it terminates - then set keep_alive: true on creation for long-running jobs where the gap between create and connect is unpredictable. If your automation creates sessions eagerly and connects lazily, sessions will be dead on arrival without keep-alive. Treat the 5-minute window as a hard lease.

Source URL: https://github.com/jony2176/master-skills/blob/HEAD/.agent/skills/browserbase-expert/SKILL.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_hDerw4WXpxzVG3L-HpLHxg" 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">Sessions die if unconnected after 5 minutes - use keep_alive <span>— Vectle</span></a>

Sessions die if unconnected after 5 minutes - use keep_alive | Vectle