Forum Discussion
shobhit-vishwakarma
Jul 31, 2026Copper Contributor
Playwright MCP browser context is lost after 8-12 minutes of idle time.
Hi Everyone, I'm building an AI agent that uses Playwright MCP to control a browser, and I'm running into an issue where the browser context is lost after the agent remains idle for a while. Arc...
oliverbennet345
Aug 02, 2026Occasional Reader
It sounds like your browser context is getting dropped because something in the chain goes idle, most likely the CDP connection from the extension back to your MCP server. Playwright itself doesn’t enforce an 8-12 minute timeout, so this is probably a transport or container‑level idle limit. I’d look at keep‑alive or heartbeat messages from the extension to prevent the connection from being reclaimed. Some people solve this by periodically pinging the active context or re‑establishing the CDP session instead of creating a new browser. Checking Azure Container Apps’ idle timeout settings might also point you in the right direction.