Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

Feature Request: Add Method to Manually Close/Kill a Session

Open
#146 1 comment 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
35/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Stale
Tech stack
python
Domain
api

Research direction

Start by tracing how the Python SDK exposes Browserbase sessions and how its Playwright-oriented API handles session timeouts. Compare the requested close or terminate operation with the existing session lifecycle and API capabilities; done means a documented programmatic way to end a session immediately, with coverage for the relevant behavior.

Written by the indexing model from the issue text.

Description

Currently, there is no available method to explicitly kill or close a session after a desired operation has been completed using the Browserbase SDK or API that is designed for Playwright.

While it is possible to set an timeout as a workaround, it is not an optimal solution. This approach lacks precision and does not offer the control that a direct method (e.g., session.close() or session.terminate()) would provide.

Why this is important:

  • Allows developers to gracefully end sessions immediately after their task is done.
  • Helps manage session usage and API costs more effectively.
  • Reduces unnecessary wait times or reliance on time-based workarounds.

Request: Please consider adding a dedicated method to manually close or kill sessions programmatically.

Thanks!

Dominant language
Python
Stars
93
Forks
16
Avg merge
11m
Merged PRs (30d)
3

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from browserbase/sdk-python

All issues in browserbase/sdk-python

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.