Feature Request: Add Method to Manually Close/Kill a Session
还没有人认领这个 Issue。
评估
调研方向
首先,追踪 Python SDK 如何暴露 Browserbase 会话,以及其面向 Playwright 的 API 如何处理会话超时。将请求的关闭或终止操作与现有的会话生命周期和 API 能力进行比较;完成的标准是有一种文档化的编程方式可以立即结束会话,并覆盖相关行为。
由索引模型根据 Issue 内容生成。
描述
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!
- 主要语言
- Python
- 星标
- 93
- 派生
- 16
- 平均合并
- 11 分钟
- 30 天内合并 PR
- 3
贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
browserbase/sdk-python 的其他 Issue
-
难度 2/5 1-3 小时 新手友好度 82/100
browserbase/sdk-python#182 ·
-
难度 2/5 1-3 小时 新手友好度 84/100
browserbase/sdk-python#180 ·
-
难度 2/5 1-3 小时 新手友好度 82/100
browserbase/sdk-python#179 ·
-
难度 2/5 1-3 小时 新手友好度 78/100
browserbase/sdk-python#178 ·
-
难度 2/5 1-3 小时 新手友好度 82/100
browserbase/sdk-python#176 ·
查看 browserbase/sdk-python 的全部 Issue
相似的 Issue
-
难度 2/5 1-3 小时 新手友好度 75/100
anthropics/skills#1811 · 1 条评论 ·
-
难度 2/5 1-3 小时 新手友好度 75/100
speaches-ai/speaches#678 ·
-
bug
难度 2/5 1-3 小时 新手友好度 75/100
datalayer/mcp-compose#42 ·
-
难度 2/5 1-3 小时 新手友好度 75/100
conda-forge/spacy-feedstock#177 ·
-
难度 2/5 1-3 小时 新手友好度 70/100
UKGovernmentBEIS/inspect_evals#2523 ·