You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Add config options to cap max number of open tabs #1804
It is very easy for agents to keep opening tabs without closing them. I know there are an inactive timeout option to keep the number of daemon sessions from growing up, however, the total number of tabs should also be capped and i don't find a way to do this. Any ideas?
New global option --max-tabs <n> (plus AGENT_BROWSER_MAX_TABS env), 0/unset = unlimited, applies per daemon session like the other launch options.
Enforced daemon-side so both CLI and MCP surfaces are covered: tab new and any action that would create an additional tab fail with a clear error stating the current count, the cap, and pointing at tab close / close to free a slot.
Deliberately no automatic tab killing: silently closing the agent's pages would be worse than a refusal, so the cap refuses instead.
Activity
holny commentedon Sep 7, 2026
Taking this. Proposed shape:
--max-tabs <n>(plusAGENT_BROWSER_MAX_TABSenv),0/unset = unlimited, applies per daemon session like the other launch options.tab newand any action that would create an additional tab fail with a clear error stating the current count, the cap, and pointing attab close/closeto free a slot.PR to follow.
feat: add --max-tabs to cap open tabs per session